From 3c3cc59c1b3f0698a95f2ba14c41c4b3df36d03b Mon Sep 17 00:00:00 2001 From: zhaowenli Date: Sat, 16 Mar 2024 07:26:29 +0000 Subject: [PATCH] =?UTF-8?q?AT=20GetNativeTokenInfo=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaowenli Change-Id: Ib544ba032878871c961afa7b2bf8fd2b3c0e259b --- services/src/sensor_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/src/sensor_manager.cpp b/services/src/sensor_manager.cpp index dcfbb3fe..00e4d12c 100644 --- a/services/src/sensor_manager.cpp +++ b/services/src/sensor_manager.cpp @@ -200,12 +200,12 @@ void SensorManager::GetPackageName(AccessTokenID tokenId, std::string &packageNa } case ATokenTypeEnum::TOKEN_NATIVE: case ATokenTypeEnum::TOKEN_SHELL: { - NativeTokenInfo tokenInfo; - if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != 0) { + std::string processName; + if (AccessTokenKit::GetNativeTokenName(tokenId, processName) != 0) { SEN_HILOGE("Get native token info fail"); return; } - packageName = tokenInfo.processName; + packageName = processName; break; } default: { -- Gitee