fix first_api_level property fail in VF projects

Should use "ro.board.first_api_level" for vendor freeze project

Bug: 228778569
Test: run cts VtsHalMediaOmxV1_0TargetStoreTest pass

Change-Id: Ib46206be6267a44aaa0a8235a4f017569bb4de94
This commit is contained in:
Guanwei Chen
2022-04-07 14:34:36 +08:00
committed by Songyue Han
parent 33e050e82d
commit a8c914ae69

View File

@@ -375,6 +375,11 @@ TEST_P(StoreHidlTest, ListRoles) {
}
static int getFirstApiLevel() {
int boardApiLevel = android::base::GetIntProperty("ro.board.first_api_level", 0);
if (boardApiLevel != 0) {
return boardApiLevel;
}
return android::base::GetIntProperty("ro.product.first_api_level", __ANDROID_API_T__);
}