summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2023-09-26 10:41:47 +0900
committer Kiyoung Kim <kiyoungkim@google.com> 2023-09-26 11:09:45 +0900
commit77f370977a53dddc5a9b5d77968c404fd93fa2e6 (patch)
treed2f03add5ecf66756b4a36c92af2d016b5038bf6
parente0e8b13d21becb89f5ac4fd7a5d65fa2599efd6a (diff)
Use ro.vndk.version to check if VNDK is deprecated
ro.vndk.version will not be set if VNDK is deprecated. This change reads ro.vndk.version instead of temp property to check if the device is VNDK deprecated. Bug: 290159430 Test: Cuttlefish build and run succeeded Change-Id: I7ef2341872fb8dcd1a2ca5e0c853ada06d6726ac
-rw-r--r--libs/graphicsenv/GraphicsEnv.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/graphicsenv/GraphicsEnv.cpp b/libs/graphicsenv/GraphicsEnv.cpp
index 64f8704094..701a3b2f77 100644
--- a/libs/graphicsenv/GraphicsEnv.cpp
+++ b/libs/graphicsenv/GraphicsEnv.cpp
@@ -63,8 +63,7 @@ typedef bool (*fpANGLEFreeSystemInfoHandle)(void* handle);
namespace {
static bool isVndkEnabled() {
#ifdef __BIONIC__
- // TODO(b/290159430) Use ro.vndk.version to check if VNDK is enabled instead
- static bool isVndkEnabled = !android::base::GetBoolProperty("ro.vndk.deprecate", false);
+ static bool isVndkEnabled = android::base::GetProperty("ro.vndk.version", "") != "";
return isVndkEnabled;
#endif
return false;