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

Commit 4e73aea7 authored by JW Wang's avatar JW Wang
Browse files

Remove the PackageManager.INSTALL_UNKNOWN check (3/n)

Though unlikely, the notification will never be sent and the install
process will stuck forever if one of params.mRet equlas
PackageManager.INSTALL_UNKNOWN.

We should just treat PackageManager.INSTALL_UNKNOWN as failure.

Bug: 203026561
Test: atest CtsStagedInstallHostTestCases

Change-Id: Ib7070ce89a667bf8a5ab2ceed6b0cc4c7fac44c9
parent 40e746c7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -758,9 +758,7 @@ final class VerificationParams extends HandlerParams {
            String errorMsg = null;
            for (VerificationParams params : mVerificationState) {
                int status = params.mRet;
                if (status == PackageManager.INSTALL_UNKNOWN) {
                    return;
                } else if (status != PackageManager.INSTALL_SUCCEEDED) {
                if (status != PackageManager.INSTALL_SUCCEEDED) {
                    completeStatus = status;
                    errorMsg = params.mErrorMessage;
                    break;