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

Commit 2ed3c588 authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[ADI] treat timeout/disconnect/infeasible as incomplete_unknown

They should all have the same behavior as a generic system error.

BUG: 399436145
Test: manually and new cts to follow
FLAG: android.content.pm.verification_service

Change-Id: Ie7a5bad6f2a6739c877e4aaf8d40bb86170a08b7
parent 57f8b1b5
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -3434,8 +3434,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
                synchronized (mMetrics) {
                    mMetrics.onDeveloperVerificationFinished(mDeveloperVerificationStatusInternal);
                }
                if (mCurrentVerificationPolicy.get()
                        != DEVELOPER_VERIFICATION_POLICY_BLOCK_FAIL_CLOSED) {
                if (mCurrentVerificationPolicy.get() == DEVELOPER_VERIFICATION_POLICY_NONE) {
                    // Continue with the rest of the verification and installation.
                    mFuture.complete(DeveloperVerificationFutureResult.ofSuccess());
                    return;
@@ -3470,8 +3469,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
                synchronized (mMetrics) {
                    mMetrics.onDeveloperVerificationFinished(mDeveloperVerificationStatusInternal);
                }
                if (mCurrentVerificationPolicy.get()
                        != DEVELOPER_VERIFICATION_POLICY_BLOCK_FAIL_CLOSED) {
                if (mCurrentVerificationPolicy.get() == DEVELOPER_VERIFICATION_POLICY_NONE) {
                    // Continue with the rest of the verification and installation.
                    mFuture.complete(DeveloperVerificationFutureResult.ofSuccess());
                    return;
@@ -3518,8 +3516,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
                synchronized (mMetrics) {
                    mMetrics.onDeveloperVerificationFinished(mDeveloperVerificationStatusInternal);
                }
                if (mCurrentVerificationPolicy.get()
                        != DEVELOPER_VERIFICATION_POLICY_BLOCK_FAIL_CLOSED) {
                if (mCurrentVerificationPolicy.get() == DEVELOPER_VERIFICATION_POLICY_NONE) {
                    // Continue with the rest of the verification and installation.
                    mFuture.complete(DeveloperVerificationFutureResult.ofSuccess());
                    return;