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

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18092208

Change-Id: Ibb5371ba9666682977065d9bcc63245009cba394
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-04-29 23:02:14 +00:00
committed by Automerger Merge Worker

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