!1126 FIX: 更换获取CallingAppID的接口

Merge pull request !1126 from 居凯/master
This commit is contained in:
openharmony_ci 2024-11-15 02:08:13 +00:00 committed by Gitee
commit 023389cf41
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -359,8 +359,8 @@ bool IpcCommon::GetCallingAppID(IPCObjectStub &stub, std::string &callingAppID)
return false;
}
HapTokenInfo hapTokenInfo;
int result = AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo);
HapTokenInfoExt hapTokenInfo;
int result = AccessTokenKit::GetHapTokenInfoExtension(tokenId, hapTokenInfo);
if (result != SUCCESS) {
IAM_LOGE("failed to get hap token info, result = %{public}d", result);
return false;