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

Commit bb62fa63 authored by Patrick Baumann's avatar Patrick Baumann Committed by Automerger Merge Worker
Browse files

Merge "Allow start of explicit intents" into rvc-dev am: 7a7590dc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12130189

Change-Id: I41145cbb8856b534a8652bedaa8a37e2bd8fc7ea
parents 9006230a 7a7590dc
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -7161,7 +7161,8 @@ public class PackageManagerService extends IPackageManager.Stub
                        && ((!matchInstantApp && !isCallerInstantApp && isTargetInstantApp)
                                || (matchVisibleToInstantAppOnly && isCallerInstantApp
                                        && isTargetHiddenFromInstantApp));
                final boolean blockNormalResolution = !isTargetInstantApp && !isCallerInstantApp
                final boolean blockNormalResolution =
                        !resolveForStart && !isTargetInstantApp && !isCallerInstantApp
                                && shouldFilterApplicationLocked(
                                getPackageSettingInternal(ai.applicationInfo.packageName,
                                        Process.SYSTEM_UID), filterCallingUid, userId);
@@ -7255,8 +7256,8 @@ public class PackageManagerService extends IPackageManager.Stub
                final PackageSetting setting =
                        getPackageSettingInternal(pkgName, Process.SYSTEM_UID);
                result = null;
                if (setting != null && setting.pkg != null
                        && !shouldFilterApplicationLocked(setting, filterCallingUid, userId)) {
                if (setting != null && setting.pkg != null && (resolveForStart
                        || !shouldFilterApplicationLocked(setting, filterCallingUid, userId))) {
                    result = filterIfNotSystemUser(mComponentResolver.queryActivities(
                            intent, resolvedType, flags, setting.pkg.getActivities(), userId),
                            userId);