diff options
| author | 2019-12-16 14:09:39 +0900 | |
|---|---|---|
| committer | 2020-01-07 04:55:22 +0000 | |
| commit | 3db26d596bdc969b6d0e8646ac0ab64346b7ee21 (patch) | |
| tree | 386588c223eebaeb3de168640ce2b63e299c1ae5 /libnativeloader/public_libraries.cpp | |
| parent | 3a6ef94d9e756449c490a535962760744e94f458 (diff) | |
Make product libs available to unbundled product apks.
Unbundling product apps must be triggerred if the target is enforcing
the product interfaces. The device must have ro.product.vndk.version
property if its product interface is enforced.
Unbundled product apps can use product libraries.
Bug: 144534640
Bug: 127738095
Bug: 128557860
Test: check boot and basic features
Change-Id: I32b2a1bd3e4f62b6acdbfab6bd277ec1132478a2
Diffstat (limited to 'libnativeloader/public_libraries.cpp')
| -rw-r--r-- | libnativeloader/public_libraries.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libnativeloader/public_libraries.cpp b/libnativeloader/public_libraries.cpp index d58b4eacba..40f002f0ef 100644 --- a/libnativeloader/public_libraries.cpp +++ b/libnativeloader/public_libraries.cpp @@ -30,6 +30,10 @@ #include <android-base/strings.h> #include <log/log.h> +#if defined(__ANDROID__) +#include <android/sysprop/VndkProperties.sysprop.h> +#endif + #include "utils.h" namespace android::nativeloader { @@ -324,6 +328,14 @@ const std::string& vndksp_libraries() { return list; } +bool is_product_vndk_version_defined() { +#if defined(__ANDROID__) + return android::sysprop::VndkProperties::product_vndk_version().has_value(); +#else + return false; +#endif +} + namespace internal { // Exported for testing Result<std::vector<std::string>> ParseConfig( |