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

Commit 9b564ac5 authored by JW Wang's avatar JW Wang
Browse files

Don't validate a finished session

The staging files are deleted when finished.

Bug: 211835862
Test: adb install-multi-package --staged $SOME_TEST_APP
      reboot and confirm the app is installed successfully
      reboot again and check the logcat messages for
      "PackageInstallerSession: Package not valid"
Change-Id: I543003d71dec425fd8e5001449ea9d6958d35864
parent 6a4c2b65
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2229,7 +2229,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
                final PackageInstallerSession root = hasParentSessionId()
                final PackageInstallerSession root = hasParentSessionId()
                        ? allSessions.get(getParentSessionId())
                        ? allSessions.get(getParentSessionId())
                        : this;
                        : this;
                if (root != null) {
                if (root != null && !root.isStagedAndInTerminalState()) {
                    if (isApexSession()) {
                    if (isApexSession()) {
                        validateApexInstallLocked();
                        validateApexInstallLocked();
                    } else {
                    } else {