Merge "Qualify the uid with the userId when granting permissions" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
705ba96063
@@ -3383,7 +3383,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
enforceDeclaredAsUsedAndRuntimePermission(pkg, bp);
|
||||
|
||||
uid = pkg.applicationInfo.uid;
|
||||
uid = UserHandle.getUid(userId, pkg.applicationInfo.uid);
|
||||
sb = (SettingBase) pkg.mExtras;
|
||||
if (sb == null) {
|
||||
throw new IllegalArgumentException("Unknown package: " + packageName);
|
||||
|
||||
Reference in New Issue
Block a user