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

Commit bfd3e382 authored by biandonglei's avatar biandonglei Committed by 卞栋磊
Browse files

Some device that platform base on android12 doesn't support A/B update, it...

Some device that platform base on android12 doesn't support A/B update, it looks virtual A/B is also not mandatory. so this test case should check ro.vendor.api_level first.

test:
 run vts -m vts_ota_config_test -t VAB#Enabled

issue:
 245441425

Change-Id: I1795c931b28fd5fe28aa0f23717d4238fb352d37
parent 220d4aba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@ static int GetVsrLevel() {
}

TEST(VAB, Enabled) {
    if (!android::base::GetBoolProperty("ro.build.ab_update", false) && (GetVsrLevel() < __ANDROID_API_T__)) {
        GTEST_SKIP();
    }
    ASSERT_TRUE(android::base::GetBoolProperty("ro.virtual_ab.enabled", false));
    if (GetVsrLevel() < __ANDROID_API_T__) {
        GTEST_SKIP();