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

Commit 73468a04 authored by Todd Kennedy's avatar Todd Kennedy Committed by android-build-merger
Browse files

Merge "Send broadcast to verifier" into pi-dev am: 7d386fb5

am: a898ee82

Change-Id: Ie8af447c849151b237302a76b6a3c1c3b968167a
parents b27269e8 a898ee82
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -2075,6 +2075,16 @@ public class PackageManagerService extends IPackageManager.Stub
                            installerPackageName, null /*finishedReceiver*/,
                            updateUserIds, instantUserIds);
                }
                // if the required verifier is defined, but, is not the installer of record
                // for the package, it gets notified
                final boolean notifyVerifier = mRequiredVerifierPackage != null
                        && !mRequiredVerifierPackage.equals(installerPackageName);
                if (notifyVerifier) {
                    sendPackageBroadcast(Intent.ACTION_PACKAGE_ADDED, packageName,
                            extras, 0 /*flags*/,
                            mRequiredVerifierPackage, null /*finishedReceiver*/,
                            updateUserIds, instantUserIds);
                }
                // Send replaced for users that don't see the package for the first time
                if (update) {
@@ -2088,6 +2098,12 @@ public class PackageManagerService extends IPackageManager.Stub
                                installerPackageName, null /*finishedReceiver*/,
                                updateUserIds, instantUserIds);
                    }
                    if (notifyVerifier) {
                        sendPackageBroadcast(Intent.ACTION_PACKAGE_REPLACED, packageName,
                                extras, 0 /*flags*/,
                                mRequiredVerifierPackage, null /*finishedReceiver*/,
                                updateUserIds, instantUserIds);
                    }
                    sendPackageBroadcast(Intent.ACTION_MY_PACKAGE_REPLACED,
                            null /*package*/, null /*extras*/, 0 /*flags*/,
                            packageName /*targetPackage*/,