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

Commit d51b363c authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Fix caller validation on secondary user." into nyc-dev

parents 04efe9e5 3ee7f71d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -194,9 +194,10 @@ public class LauncherAppsService extends SystemService {
        void verifyCallingPackage(String callingPackage) {
            int packageUid = -1;
            try {
                packageUid = mPm.getPackageUid(callingPackage,
                packageUid = mPm.getPackageUidAsUser(callingPackage,
                        PackageManager.MATCH_ENCRYPTION_AWARE_AND_UNAWARE
                                | PackageManager.MATCH_UNINSTALLED_PACKAGES);
                                | PackageManager.MATCH_UNINSTALLED_PACKAGES,
                        UserHandle.getUserId(getCallingUid()));
            } catch (NameNotFoundException e) {
                Log.e(TAG, "Package not found: " + callingPackage);
            }