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

Commit 6d4e3123 authored by Chad Brubaker's avatar Chad Brubaker Committed by android-build-merger
Browse files

Merge "Throw an error if no package name is provided by the app when needed" into oc-dev

am: dedfcaf5

Change-Id: Ic1db3c20fc38504e1fc223c268cae7b8c2eb6d35
parents 4a2a9a3c dedfcaf5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18277,6 +18277,10 @@ public class ActivityManagerService extends IActivityManager.Stub
            return record.info.isInstantApp();
        }
        // Otherwise check with PackageManager.
        if (callerPackage == null) {
            Slog.e(TAG, "isInstantApp with an application's uid, no record, and no package name");
            throw new IllegalArgumentException("Calling application did not provide package name");
        }
        mAppOpsService.checkPackage(uid, callerPackage);
        try {
            IPackageManager pm = AppGlobals.getPackageManager();