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

Commit 6f89fa07 authored by Kenny Root's avatar Kenny Root
Browse files

Only install after MCS success

If MCS dies in the middle of a call during install, only proceed if the
call was successful. Otherwise wait for the max retries to be reached
and run the failure handling code there.

Change-Id: I00a27ea91046ea6521a3cff5e5ffe2c71b2b5bb4
parent 7c600369
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -5019,8 +5019,13 @@ class PackageManagerService extends IPackageManager.Stub {

        @Override
        void handleReturnCode() {
            // If mArgs is null, then MCS couldn't be reached. When it
            // reconnects, it will try again to install. At that point, this
            // will succeed.
            if (mArgs != null) {
                processPendingInstall(mArgs, mRet);
            }
        }

        @Override
        void handleServiceError() {