Merge "Fix an issue LauncherApps couldn’t get onPackageRemoved Callback"

This commit is contained in:
TreeHugger Robot
2021-10-20 00:04:16 +00:00
committed by Android (Google) Code Review

View File

@@ -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;