diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java index 375ffc497eadb..9c11cd4811b4e 100644 --- a/services/core/java/com/android/server/pm/LauncherAppsService.java +++ b/services/core/java/com/android/server/pm/LauncherAppsService.java @@ -1263,7 +1263,7 @@ public class LauncherAppsService extends SystemService { /** Returns whether or not the given appId is in allow list */ private static boolean isCallingAppIdAllowed(int[] appIdAllowList, @AppIdInt int appId) { - if (appIdAllowList == null) { + if (appIdAllowList == null || appId < Process.FIRST_APPLICATION_UID) { return true; } return Arrays.binarySearch(appIdAllowList, appId) > -1;