am 370c27c7: am 705ba960: Merge "Qualify the uid with the userId when granting permissions" into mnc-dev
* commit '370c27c7fe308e351d375295d422df76f7ede164':
Qualify the uid with the userId when granting permissions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index 124214c..fb0054f 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -3383,7 +3383,7 @@
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);