mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-26 18:30:47 +00:00
1120
Signed-off-by: 姚望 <yaopwang@huawei.com>
This commit is contained in:
parent
bb4b1fb9be
commit
95f452ddb7
@ -119,7 +119,13 @@ static int32_t CheckAndRecordAccessToken(const char *permission)
|
||||
int32_t successCnt = (int32_t)(ret == Security::AccessToken::PERMISSION_GRANTED);
|
||||
int32_t failCnt = JUDG_CNT - successCnt;
|
||||
if (type == Security::AccessToken::TOKEN_HAP) {
|
||||
(void)Security::AccessToken::PrivacyKit::AddPermissionUsedRecord(tokenCaller, permission, successCnt, failCnt);
|
||||
int32_t tmp =
|
||||
Security::AccessToken::PrivacyKit::AddPermissionUsedRecord(tokenCaller, permission, successCnt, failCnt);
|
||||
if (tmp != Security::AccessToken::RET_SUCCESS) {
|
||||
COMM_LOGW(COMM_SVC,
|
||||
"AddPermissionUsedRecord failed, permissionName=%{public}s, successCnt=%{public}d, failCnt=%{public}d, "
|
||||
"tmp=%{public}d", permission, successCnt, failCnt, tmp)
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user