Merge "Qualify the uid with the userId when granting permissions" into mnc-dev

This commit is contained in:
Amith Yamasani
2015-07-08 23:44:53 +00:00
committed by Android (Google) Code Review

View File

@@ -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);