diff options
Diffstat (limited to 'libartbase/base/file_utils.cc')
-rw-r--r-- | libartbase/base/file_utils.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libartbase/base/file_utils.cc b/libartbase/base/file_utils.cc index 98b69f3df5..e82796458c 100644 --- a/libartbase/base/file_utils.cc +++ b/libartbase/base/file_utils.cc @@ -72,6 +72,7 @@ static constexpr const char* kAndroidDataEnvVar = "ANDROID_DATA"; static constexpr const char* kAndroidDataDefaultPath = "/data"; static constexpr const char* kAndroidArtRootEnvVar = "ANDROID_ART_ROOT"; static constexpr const char* kAndroidConscryptRootEnvVar = "ANDROID_CONSCRYPT_ROOT"; +static constexpr const char* kAndroidI18nRootEnvVar = "ANDROID_I18N_ROOT"; // Get the "root" directory containing the "lib" directory where this instance // of the libartbase library (which contains `GetRootContainingLibartbase`) is @@ -453,6 +454,11 @@ bool LocationIsOnConscryptModule(const char* full_path) { full_path, kAndroidConscryptRootEnvVar, kAndroidConscryptApexDefaultPath); } +bool LocationIsOnI18nModule(const char* full_path) { + return IsLocationOnModule( + full_path, kAndroidI18nRootEnvVar, kAndroidI18nApexDefaultPath); +} + bool LocationIsOnApex(const char* full_path) { return android::base::StartsWith(full_path, kApexDefaultPath); } |