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

Commit 76cda858 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Fix a NPE" into nyc-dev

parents 6e6c6470 819c2f8f
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);
            }