mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 07:28:14 +00:00
Merge "fix first_api_level property fail in VF projects" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd890b5845
5
media/omx/1.0/vts/functional/store/VtsHalMediaOmxV1_0TargetStoreTest.cpp
Normal file → Executable file
5
media/omx/1.0/vts/functional/store/VtsHalMediaOmxV1_0TargetStoreTest.cpp
Normal file → Executable 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__);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user