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

Commit 38f8688b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Return ApplicationInfo with requested userId.

Return ApplicationInfo with requested userId instead of trying to
infer it from calling UID.

Bug: 7334712
Change-Id: I9ce0061e2d020b0d74c7c9cd22d89c5ff2466a6c
parent 8f55d112
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1835,7 +1835,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                PackageSetting ps = mSettings.mPackages.get(packageName);
                if (ps == null) return null;
                // Note: isEnabledLP() does not apply here - always return info
                return PackageParser.generateApplicationInfo(p, flags, ps.readUserState(userId));
                return PackageParser.generateApplicationInfo(
                        p, flags, ps.readUserState(userId), userId);
            }
            if ("android".equals(packageName)||"system".equals(packageName)) {
                return mAndroidApplication;