Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77f37097 authored by Kiyoung Kim's avatar Kiyoung Kim
Browse files

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
parent e0e8b13d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;