diff --git a/services/privacymanager/src/active/state_change_callback_proxy.cpp b/services/privacymanager/src/active/state_change_callback_proxy.cpp index 7b9809d6135e3157b49796896dd376425cc7ff72..87eba3cf74528610ac69aecb17b187fc0bf386e7 100644 --- a/services/privacymanager/src/active/state_change_callback_proxy.cpp +++ b/services/privacymanager/src/active/state_change_callback_proxy.cpp @@ -44,7 +44,7 @@ void StateChangeCallbackProxy::StateChangeNotify(AccessTokenID tokenId, bool isS } MessageParcel reply; - MessageOption option(MessageOption::TF_SYNC); + MessageOption option(MessageOption::TF_ASYNC); sptr remote = Remote(); if (remote == nullptr) { LOGE(PRI_DOMAIN, PRI_TAG, "Remote service null."); diff --git a/services/privacymanager/src/record/permission_record_manager.cpp b/services/privacymanager/src/record/permission_record_manager.cpp index 9dfd852a01548233fb30863b5cfdede8c8e5da2d..36fac081b13d37fba019ccb057022d1aa6b38bc1 100644 --- a/services/privacymanager/src/record/permission_record_manager.cpp +++ b/services/privacymanager/src/record/permission_record_manager.cpp @@ -1070,7 +1070,7 @@ int32_t PermissionRecordManager::RemoveRecordFromStartList( .pid = pid, .callerPid = callerPid, }; - if (!ToRemoveRecord(record, &ContinusPermissionRecord::IsEqualRecord, false)) { + if (!ToRemoveRecord(record, &ContinusPermissionRecord::IsEqualRecord, true)) { LOGE(PRI_DOMAIN, PRI_TAG, "No records started, tokenId=%{public}u, pid=%{public}d, " \ "opCode=%{public}d, callerPid=%{public}d", tokenId, pid, opCode, callerPid); return PrivacyError::ERR_PERMISSION_NOT_START_USING;