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

Commit 660c5eee authored by Victor Hsieh's avatar Victor Hsieh
Browse files

Disable verifying apk installed from adb

Without this change, the verifier may hold the fd of installed apk and
prevents the cache eviction. The existing retry loop up to 5 seconds is
not sufficient.

Also removed an obsolete verifier setting.

Test: com.android.apkverity.ApkVerityTest#testInstallSplitOnly succeeded
      100% (75+ times).
Bug: 146350859

Change-Id: Ia7d42ab6efcb42de83626f1d63bff5a8adc6c1a6
parent 18e52123
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
        <!-- Disable package verifier prevents it holding the target APK's fd that prevents cache
             eviction. -->
        <option name="set-global-setting" key="package_verifier_enable" value="0" />
        <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" />
        <option name="restore-settings" value="true" />

        <!-- Skip in order to prevent reboot that confuses the test flow. -->