Adjust check for target_sdk_version for workarounds
target_sdk_version=0 is a valid version, it basically means 1 (the very first version of android) not current one. Bug: http://b/27702070 Change-Id: Ib7843718f364b975e1d09a05377bf8580b407d9d
This commit is contained in:
parent
5e635f7c06
commit
4f8bb2577a
|
@ -40,8 +40,7 @@ namespace android {
|
|||
static constexpr const char* kPublicNativeLibrariesConfig = "/system/etc/public.libraries.txt";
|
||||
|
||||
static bool namespace_workaround_enabled(int32_t target_sdk_version) {
|
||||
// target_sdk_version = 0 is another way of saying "target current sdk level"
|
||||
return target_sdk_version != 0 && target_sdk_version <= 23;
|
||||
return target_sdk_version <= 23;
|
||||
}
|
||||
|
||||
class LibraryNamespaces {
|
||||
|
|
Loading…
Reference in New Issue