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

Commit b4c2a1ba authored by Bowgo Tsai's avatar Bowgo Tsai Committed by Automerger Merge Worker
Browse files

Allow unlocked in VTS am: 43dd6e34 am: 767b4b3c am: 40eb1a49 am: ac9d1298 am: 8e395140

Change-Id: Ib0209aeafd783d885c5abfb2be3f10ce8a8506ab
parents 1935c4dd 8e395140
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -438,10 +438,10 @@ bool verify_attestation_record(const string& challenge, const string& app_id,
            EXPECT_TRUE(device_locked);
        }

        // Check that the expected result from VBMeta matches the build type. Only a user build
        // should have AVB reporting the device is locked.
        EXPECT_NE(property_get("ro.build.type", property_value, ""), 0);
        if (!strcmp(property_value, "user")) {
        // Check that the device is locked if not debuggable, e.g., user build
        // images in CTS. For VTS, debuggable images are used to allow adb root
        // and the device is unlocked.
        if (!property_get_bool("ro.debuggable", false)) {
            EXPECT_TRUE(device_locked);
        } else {
            EXPECT_FALSE(device_locked);