diff options
| author | 2023-09-27 01:09:06 +0000 | |
|---|---|---|
| committer | 2023-09-27 01:09:06 +0000 | |
| commit | 553da45cd7f4704f4466bbc113c5ef58a04cbc2c (patch) | |
| tree | a3ed5b10c94ad367a9edd57d8a3fa0569fbef257 | |
| parent | e3e03441fca57724d3b97c72c767d582e32fe153 (diff) | |
| parent | 77f370977a53dddc5a9b5d77968c404fd93fa2e6 (diff) | |
Merge "Use ro.vndk.version to check if VNDK is deprecated" into main
| -rw-r--r-- | libs/graphicsenv/GraphicsEnv.cpp | 3 |
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; |