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

Commit 817ee20d authored by Todd Kennedy's avatar Todd Kennedy Committed by gitbuildkicker
Browse files

send broadcast to the right users

Change-Id: Ibda2d922cd58d6ca1c1a4ecdccaa25e5c71c6320
Fixes: 37192695
Test: manual; create restricted profile and see that users haven't been removed
(cherry picked from commit 4efa14c7)
parent 53badc02
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -13391,6 +13391,7 @@ public class PackageManagerService extends IPackageManager.Stub {
        final PackageRemovedInfo info = new PackageRemovedInfo();
        info.removedPackage = packageName;
        info.removedUsers = new int[] {userId};
        info.broadcastUsers = new int[] {userId};
        info.uid = UserHandle.getUid(userId, pkgSetting.appId);
        info.sendPackageRemovedBroadcasts(true /*killApp*/);
    }
@@ -18432,6 +18433,7 @@ public class PackageManagerService extends IPackageManager.Stub {
            outInfo.isStaticSharedLib = pkg != null && pkg.staticSharedLibName != null;
            outInfo.removedAppId = ps.appId;
            outInfo.removedUsers = userIds;
            outInfo.broadcastUsers = userIds;
        }
        return true;