Merge "fix first_api_level property fail in VF projects" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-29 22:45:17 +00:00
committed by Android (Google) Code Review

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__);
}