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

Commit 4858132f authored by Ivan Chiang's avatar Ivan Chiang Committed by Android (Google) Code Review
Browse files

Merge "[PM] Send ACTION_PACKAGE_CHANGED when the app is installed" into 24D1-dev

parents a7fc4310 2182702a
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -6278,10 +6278,14 @@ public class PackageManagerService implements PackageSender, TestUtilityService
                    final int[] userIds = resolveUserIds(UserHandle.USER_ALL);
                    final String reason = "The mimeGroup is changed";
                    for (int i = 0; i < userIds.length; i++) {
                        final PackageUserStateInternal pkgUserState =
                                packageState.getUserStates().get(userIds[i]);
                        if (pkgUserState != null && pkgUserState.isInstalled()) {
                            final int packageUid = UserHandle.getUid(userIds[i], appId);
                            mBroadcastHelper.sendPackageChangedBroadcast(snapShot, packageName,
                                    true /* dontKillApp */, components, packageUid, reason);
                        }
                    }
                });
            }