From d1e4f7d1571e1b1efe2219ec4752968ed04c7da6 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Fri, 11 Feb 2022 09:44:31 +0900 Subject: [PATCH] Update ro.vendor.api_level for non-GRF devices Non-GRF devices must read only the `ro.product.first_api_level` but not the vendor build version because `ro.product.first_api_level` is always less than or equal to `ro.vendor.build.version.sdk` for non-GRF devices. Bug: 218610653 Test: getprop ro.vendor.api_level Change-Id: Ib98c33ae052daa949208c43bd441f98cf442da49 --- init/property_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/property_service.cpp b/init/property_service.cpp index 7a3484942..9f7c21543 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -1035,8 +1035,8 @@ static void property_initialize_ro_vendor_api_level() { constexpr auto VENDOR_API_LEVEL_PROP = "ro.vendor.api_level"; // Api level properties of the board. The order of the properties must be kept. - std::vector BOARD_API_LEVEL_PROPS = { - "ro.board.api_level", "ro.board.first_api_level", "ro.vendor.build.version.sdk"}; + std::vector BOARD_API_LEVEL_PROPS = {"ro.board.api_level", + "ro.board.first_api_level"}; // Api level properties of the device. The order of the properties must be kept. std::vector DEVICE_API_LEVEL_PROPS = {"ro.product.first_api_level", "ro.build.version.sdk"};