Fix an issue LauncherApps couldn’t get onPackageRemoved Callback
The system apps which registered listener in LauncherApps couldn't get
ACTION_PACKAGE_REMOVED_INTERNAL broadcast because they are not in
allowlist of package visibility. They must see all applications so
modify the code if the appId is smaller than 10000 it should be always
allowed.
Bug: 196910947
Test: Register a listener of a system app to LauncherAppsService and
verify if can get the broadcast.
Change-Id: I39f4365cfa09ffa9afeccd13a8703846db357cbf
Loading
Please register or sign in to comment