diff --git a/services/bundlemgr/src/bundle_permission_mgr.cpp b/services/bundlemgr/src/bundle_permission_mgr.cpp index 704f9e225..04c6c7ee3 100644 --- a/services/bundlemgr/src/bundle_permission_mgr.cpp +++ b/services/bundlemgr/src/bundle_permission_mgr.cpp @@ -587,7 +587,11 @@ void BundlePermissionMgr::AddPermissionUsedRecord( AccessToken::AccessTokenID callerToken = IPCSkeleton::GetCallingTokenID(); AccessToken::ATokenTypeEnum tokenType = AccessToken::AccessTokenKit::GetTokenTypeFlag(callerToken); if (tokenType == AccessToken::ATokenTypeEnum::TOKEN_HAP) { - AccessToken::PrivacyKit::AddPermissionUsedRecord(callerToken, permission, successCount, failCount); + int32_t ret = AccessToken::PrivacyKit::AddPermissionUsedRecord(callerToken, permission, + successCount, failCount); + if (ret != AccessToken::AccessTokenKitRet::RET_SUCCESS) { + APP_LOGE("AddPermissionUsedRecord failed, ret = %{public}d", ret); + } } }