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

Commit 316e3d16 authored by Prashant Patil's avatar Prashant Patil
Browse files

Fix attestation properties reading logic

Fixed the logic of reading attestation specific properties in
Build.java.

Bug: 110779648
Test: atest CtsKeystoreTestCases:android.keystore.cts.KeyAttestationTest CtsKeystoreTestCases:DeviceOwnerKeyManagementTest
Change-Id: I9af7daa08cbd8bb52f3509fe93f787ba94b7bbc3
parent a6fac5d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1560,7 +1560,7 @@ public class Build {
        String attestProp = getString(
                TextUtils.formatSimple("ro.product.%s_for_attestation", property));
        return attestProp.equals(UNKNOWN)
                ? getString(TextUtils.formatSimple("ro.product.vendor.%s", property)) : UNKNOWN;
                ? getString(TextUtils.formatSimple("ro.product.vendor.%s", property)) : attestProp;
    }

    private static String[] getStringList(String property, String separator) {