diff --git a/services/camera_service/src/hcapture_session.cpp b/services/camera_service/src/hcapture_session.cpp index ece3a125d4692ac1318bb7cb5f1b5c57bc40dc7d..54cefe0d07fc7e17fe6edcda5520e9a82198a011 100644 --- a/services/camera_service/src/hcapture_session.cpp +++ b/services/camera_service/src/hcapture_session.cpp @@ -1098,6 +1098,14 @@ void HCaptureSession::StartUsingPermissionCallback(const uint32_t callingTokenId if (res != CAMERA_OK) { MEDIA_ERR_LOG("StartUsingPermissionCallback failed."); } + int32_t successCount = 1; + int32_t failCount = 0; + res = Security::AccessToken::PrivacyKit::AddPermissionUsedRecord(callingTokenId, permissionName, + successCount, failCount); + MEDIA_INFO_LOG("AddPermissionUsedRecord tokenId:%{public}d", callingTokenId); + if (res != CAMERA_OK) { + MEDIA_ERR_LOG("AddPermissionUsedRecord failed."); + } } void HCaptureSession::StopUsingPermissionCallback(const uint32_t callingTokenId, const std::string permissionName)