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
This commit is contained in:
Victor Hsieh
2019-12-20 09:43:23 -08:00
parent 18e52123ce
commit 660c5eee79

View File

@@ -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. -->