Merge "[PackageManagerService]:Fix system app can't uninstall apps silently" into oc-dev am: 975ee1f25a
am: e406d52628
Change-Id: I090dfd872aa04c2c1af8e30c5faf834db05ba61e
This commit is contained in:
@@ -18425,7 +18425,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
||||
private boolean isCallerAllowedToSilentlyUninstall(int callingUid, String pkgName) {
|
||||
if (callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID
|
||||
|| callingUid == Process.SYSTEM_UID) {
|
||||
|| UserHandle.getAppId(callingUid) == Process.SYSTEM_UID) {
|
||||
return true;
|
||||
}
|
||||
final int callingUserId = UserHandle.getUserId(callingUid);
|
||||
|
||||
Reference in New Issue
Block a user