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

Commit 3b28c897 authored by Svet Ganov's avatar Svet Ganov Committed by android-build-merger
Browse files

Merge "Fix a NPE" into nyc-dev

am: 76cda858

* commit '76cda858':
  Fix a NPE

Change-Id: Id1009015e1035f16b04d6245df900494e3c8751b
parents d6ab9043 76cda858
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10590,14 +10590,14 @@ public final class ActivityManagerService extends ActivityManagerNative
    private boolean requestTargetProviderPermissionsReviewIfNeededLocked(ProviderInfo cpi,
            ProcessRecord r, final int userId) {
        if (getPackageManagerInternalLocked().isPermissionsReviewRequired(
                cpi.packageName, r.userId)) {
                cpi.packageName, userId)) {
            final boolean callerForeground = r != null ? r.setSchedGroup
                    != ProcessList.SCHED_GROUP_BACKGROUND : true;
            final boolean callerForeground = r == null || r.setSchedGroup
                    != ProcessList.SCHED_GROUP_BACKGROUND;
            // Show a permission review UI only for starting from a foreground app
            if (!callerForeground) {
                Slog.w(TAG, "u" + r.userId + " Instantiating a provider in package"
                Slog.w(TAG, "u" + userId + " Instantiating a provider in package"
                        + cpi.packageName + " requires a permissions review");
                return false;
            }
@@ -10608,7 +10608,7 @@ public final class ActivityManagerService extends ActivityManagerNative
            intent.putExtra(Intent.EXTRA_PACKAGE_NAME, cpi.packageName);
            if (DEBUG_PERMISSIONS_REVIEW) {
                Slog.i(TAG, "u" + r.userId + " Launching permission review "
                Slog.i(TAG, "u" + userId + " Launching permission review "
                        + "for package " + cpi.packageName);
            }