mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-19 18:13:32 -04:00
@@ -70,6 +70,11 @@ bool DeviceManagerImpl::isSystemAppCalling(void)
|
||||
|
||||
LOGI("get bundle manager proxy success.");
|
||||
sptr<IBundleMgr> iBundleMgr = iface_cast<IBundleMgr>(remoteObject);
|
||||
if (iBundleMgr == nullptr) {
|
||||
LOGI("iBundleMgr is nullptr, caller may be a process");
|
||||
return true;
|
||||
}
|
||||
|
||||
return iBundleMgr->CheckIsSystemAppByUid(uid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user