diff options
| author | 2020-02-28 15:16:16 -0800 | |
|---|---|---|
| committer | 2020-03-05 01:07:04 +0000 | |
| commit | cd0d8dab5d53beedd09d1129f88cb5d6478aee00 (patch) | |
| tree | 40644b1139d676b25c5a9e1bb5bb698cec7c24b5 | |
| parent | 78481dce89de96f866d2dc004d140f765d990d6a (diff) | |
Blocks explicit activity starts when not visible
This change blocks explicit launches of packages the caller does not
have access to, while continuing to allow implicit launches.
Test: atest AppEnumerationTests android.appsecurity.cts.EphemeralTest
Fixes: 148657387
Change-Id: Ie7641619ab6e8d153cf4f923cbc1e7c5f2bb8e97
| -rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index 16069386b575..0a544195c704 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -6839,7 +6839,7 @@ public class PackageManagerService extends IPackageManager.Stub || (matchVisibleToInstantAppOnly && isCallerInstantApp && isTargetHiddenFromInstantApp)); final boolean blockNormalResolution = !isTargetInstantApp && !isCallerInstantApp - && !resolveForStart && shouldFilterApplicationLocked( + && shouldFilterApplicationLocked( getPackageSettingInternal(ai.applicationInfo.packageName, Process.SYSTEM_UID), filterCallingUid, userId); if (!blockInstantResolution && !blockNormalResolution) { |