Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b53c162 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Qualify the uid with the userId when granting permissions

Calls to remountUid() for secondary users was not using the
correct uid. This would prevent providing the required
storage permissions to default apps.

Discovered when investigating bug: 22356546

Change-Id: I98c8f6da724e46331c1c90b95969ca0871ef4fe9
parent 4f5630e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);