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

Commit 16bc4c0c authored by Nicholas Sauer's avatar Nicholas Sauer
Browse files

Fix setInstallerPackageName for secondary users.

bug: 122472091
Test: run cts-dev -a arm64-v8a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert
On both user 0 and user 10

Change-Id: I28bd72abef8c69ab7d86cddff206bdbd893b7fce
parent c9fd5fc4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13562,7 +13562,8 @@ public class PackageManagerService extends IPackageManager.Stub
            }
            Signature[] callerSignature;
            Object obj = mSettings.getSettingLPr(callingUid);
            final int appId = UserHandle.getAppId(callingUid);
            final Object obj = mSettings.getSettingLPr(appId);
            if (obj != null) {
                if (obj instanceof SharedUserSetting) {
                    callerSignature =