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

Commit 4a70ead5 authored by Victor Hsieh's avatar Victor Hsieh
Browse files

Run ApkVerityTest if first api level >= 30

CDD requires new devices launching with R to support fs-verity.

Test: `atest ApkVerityTest` on device with first_api_level=30
Bug: 150641206
Change-Id: Ied831fa720fecc623dbac6bdbd1263856d2792ef
parent 5a563d28
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ public class ApkVerityTest extends BaseHostJUnit4Test {
        mDevice = getDevice();

        String apkVerityMode = mDevice.getProperty("ro.apk_verity.mode");
        assumeTrue(APK_VERITY_STANDARD_MODE.equals(apkVerityMode));
        assumeTrue(mDevice.getLaunchApiLevel() >= 30
                || APK_VERITY_STANDARD_MODE.equals(apkVerityMode));

        mKeyId = expectRemoteCommandToSucceed(
                "mini-keyctl padd asymmetric fsv_test .fs-verity < " + CERT_PATH).trim();