Merge "Always restart apps for full installs." into tm-dev am: b44f1fa8ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18630392 Change-Id: I3b7dfd41eb1e4caa644963140ea47ca380b19854 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2837,6 +2837,11 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
|
|||||||
if (!stagedSplits.contains(null)) {
|
if (!stagedSplits.contains(null)) {
|
||||||
throw new PackageManagerException(INSTALL_FAILED_INVALID_APK,
|
throw new PackageManagerException(INSTALL_FAILED_INVALID_APK,
|
||||||
"Full install must include a base package");
|
"Full install must include a base package");
|
||||||
|
} else if ((params.installFlags & PackageManager.INSTALL_DONT_KILL_APP) != 0) {
|
||||||
|
EventLog.writeEvent(0x534e4554, "219044664");
|
||||||
|
|
||||||
|
// Installing base.apk. Make sure the app is restarted.
|
||||||
|
params.setDontKillApp(false);
|
||||||
}
|
}
|
||||||
if (baseApk.isSplitRequired() && (stagedSplits.size() <= 1
|
if (baseApk.isSplitRequired() && (stagedSplits.size() <= 1
|
||||||
|| !stagedSplitTypes.containsAll(requiredSplitTypes))) {
|
|| !stagedSplitTypes.containsAll(requiredSplitTypes))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user