CheckPermission返回值修改

Signed-off-by: wangyb0625 <wangyibo38@huawei.com>
This commit is contained in:
wangyb0625
2022-04-27 13:37:07 +08:00
parent 81b3359e96
commit 0d9fdabedd
@@ -64,7 +64,7 @@ bool PermissionManager::CheckPermission(void)
sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID);
if (remoteObject == nullptr) {
LOGE("failed to get bundle manager proxy.");
return true;
return false;
}
LOGI("get bundle manager proxy success.");