summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2023-09-27 01:09:06 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-27 01:09:06 +0000
commit553da45cd7f4704f4466bbc113c5ef58a04cbc2c (patch)
treea3ed5b10c94ad367a9edd57d8a3fa0569fbef257
parente3e03441fca57724d3b97c72c767d582e32fe153 (diff)
parent77f370977a53dddc5a9b5d77968c404fd93fa2e6 (diff)
Merge "Use ro.vndk.version to check if VNDK is deprecated" into main
-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;