fix: 修改appID获取方式

Signed-off-by: 居凯 <shun0304@126.com>
Change-Id: Ie4eb929224745303c6ce68e1bcf2e74f0d8d946a
This commit is contained in:
居凯 2024-11-13 16:20:07 +08:00
parent 2861f24053
commit 20c481a277

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;