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

Commit 67b1e543 authored by Howard Ro's avatar Howard Ro
Browse files

Add apex packages to uid_mapping

StatsCompanionService currently only pulls on MATCH_KNOWN_PACKAGES but
we also need to add MATCH_APEX flag option to get apex modules in the
installed packages list.

Bug: 130773130
Test: make + cts
Change-Id: I7205cd58fb3276981f7a6c765e82b39dfb7af7ec
parent cc0e418a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -455,7 +455,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        // Add in all the apps for every user/profile.
        for (UserInfo profile : users) {
            List<PackageInfo> pi =
                    pm.getInstalledPackagesAsUser(PackageManager.MATCH_KNOWN_PACKAGES, profile.id);
                    pm.getInstalledPackagesAsUser(PackageManager.MATCH_KNOWN_PACKAGES
                            | PackageManager.MATCH_APEX, profile.id);
            for (int j = 0; j < pi.size(); j++) {
                if (pi.get(j).applicationInfo != null) {
                    String installer;