mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Skip hal v1 check after p on low ram devices am: a0eb7e415c
am: 2f5884c94c
Change-Id: If61f7b6b9a06206882684b632d3fa4caa5c637b1
This commit is contained in:
@@ -1172,6 +1172,14 @@ TEST_F(CameraHidlTest, noHal1AfterP) {
|
||||
}
|
||||
ASSERT_GT(firstApiLevel, 0); // first_api_level must exist
|
||||
|
||||
// all devices with first API level == 28 and <= 1GB of RAM must set low_ram
|
||||
// and thus be allowed to continue using HAL1
|
||||
if ((firstApiLevel == HAL1_PHASE_OUT_API_LEVEL) &&
|
||||
(property_get_bool("ro.config.low_ram", /*default*/ false))) {
|
||||
ALOGI("Hal1 allowed for low ram device");
|
||||
return;
|
||||
}
|
||||
|
||||
if (firstApiLevel >= HAL1_PHASE_OUT_API_LEVEL) {
|
||||
hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(mProvider);
|
||||
for (const auto& name : cameraDeviceNames) {
|
||||
|
||||
Reference in New Issue
Block a user