!1354 【huks】适配定义事件改为系统事件

Merge pull request !1354 from wuXin/master
This commit is contained in:
openharmony_ci 2024-10-23 06:30:02 +00:00 committed by Gitee
commit b28259d539
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
"ohos.permission.MANAGE_LOCAL_ACCOUNTS",
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"ohos.permission.REQUEST_ANONYMOUS_ATTEST",
"ohos.permission.START_RESTORE_NOTIFICATION",
"ohos.permission.UPDATE_MIGRATE"
],
"start-mode" : "condition",

View File

@ -91,7 +91,7 @@ namespace Security {
namespace Hks {
std::shared_ptr<SystemEventSubscriber> SystemEventObserver::systemEventSubscriber_ = nullptr;
std::shared_ptr<SystemEventSubscriber> SystemEventObserver::backUpEventSubscriber_ = nullptr;
const static std::string RESTORE_EVENT_NAME = "COMMON_EVENT_RESTORE_START";
const static std::string RESTORE_EVENT_NAME = "usual.event.RESTORE_START";
const int32_t BACKUP_UID = 1089;
void SystemEventSubscriber::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data)