From 8a06fb7d4d68198308987e04c677d3a1b02b5c40 Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Thu, 16 Nov 2023 22:07:13 +0000 Subject: Use ro.board.api_level instead of ro.vndk.version VNDK's getting deprecated so ro.board.api_level is the right sysprop to use for vendor api version. Bug: 311267616 Test: builds Change-Id: Ie73bef793cd811d16b9b781b2bf38d9a52558547 --- services/surfaceflinger/Layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 0c0639ee83..4c2da91afe 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -3635,7 +3635,7 @@ void Layer::gatherBufferInfo() { // to upsert RenderEngine's caches. Put in a special workaround to be backwards // compatible with old vendors, with a ticking clock. static const int32_t kVendorVersion = - base::GetIntProperty("ro.vndk.version", __ANDROID_API_FUTURE__); + base::GetIntProperty("ro.board.api_level", __ANDROID_API_FUTURE__); if (const auto format = static_cast( mBufferInfo.mBuffer->getPixelFormat()); -- cgit v1.2.3-59-g8ed1b