Merge "Allow start of explicit intents" into rvc-dev am: 7a7590dc9b am: 0c67708c60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12130189 Change-Id: I0de5d0bee4ca327dde17ba80d8f28101bb155792
This commit is contained in:
@@ -7161,8 +7161,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
&& ((!matchInstantApp && !isCallerInstantApp && isTargetInstantApp)
|
||||
|| (matchVisibleToInstantAppOnly && isCallerInstantApp
|
||||
&& isTargetHiddenFromInstantApp));
|
||||
final boolean blockNormalResolution = !isTargetInstantApp && !isCallerInstantApp
|
||||
&& shouldFilterApplicationLocked(
|
||||
final boolean blockNormalResolution =
|
||||
!resolveForStart && !isTargetInstantApp && !isCallerInstantApp
|
||||
&& shouldFilterApplicationLocked(
|
||||
getPackageSettingInternal(ai.applicationInfo.packageName,
|
||||
Process.SYSTEM_UID), filterCallingUid, userId);
|
||||
if (!blockInstantResolution && !blockNormalResolution) {
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user