Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92e0459c authored by Jackal Guo's avatar Jackal Guo
Browse files

Get visibility allow list before uninstalling package

The package removed broadcast should be only sent to the packages in
visibility allow list. However, current broadcast allow list is null
when uninstalling. This indicates that every package could receive
this broadcast.

Fix: 184010320
Test: atest PackageManagerTests AppsFilterTest AppEnumerationTests
Change-Id: I140bfa093dcc82980f671c60c973882546eaf899
parent 948bd864
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21463,6 +21463,8 @@ public class PackageManagerService extends IPackageManager.Stub
        synchronized (mLock) {
            if (outInfo != null) {
                outInfo.uid = ps.appId;
                outInfo.broadcastAllowList = mAppsFilter.getVisibilityAllowList(ps,
                        allUserHandles, mSettings.getPackagesLocked());
            }
        }