blob: b565133d6a1865463f6ad2e7308cdba57c13c7a4 [file] [log] [blame]
Orion Hodson9b16e342019-10-09 13:29:16 +01001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#define LOG_TAG "nativeloader"
18
19#include "public_libraries.h"
20
21#include <dirent.h>
22
23#include <algorithm>
Jooyung Han538f99a2020-03-03 00:46:50 +090024#include <map>
Orion Hodson9b16e342019-10-09 13:29:16 +010025#include <memory>
Jooyung Hancd616d02020-09-01 14:53:23 +090026#include <regex>
27#include <string>
Orion Hodson9b16e342019-10-09 13:29:16 +010028
29#include <android-base/file.h>
30#include <android-base/logging.h>
31#include <android-base/properties.h>
32#include <android-base/result.h>
33#include <android-base/strings.h>
34#include <log/log.h>
35
Nicolas Geoffray7ca8b672020-04-24 15:43:48 +010036#if defined(ART_TARGET_ANDROID)
Justin Yun3db26d52019-12-16 14:09:39 +090037#include <android/sysprop/VndkProperties.sysprop.h>
38#endif
39
Orion Hodson9b16e342019-10-09 13:29:16 +010040#include "utils.h"
41
42namespace android::nativeloader {
43
Orion Hodson9b16e342019-10-09 13:29:16 +010044using android::base::ErrnoError;
Orion Hodson9b16e342019-10-09 13:29:16 +010045using android::base::Result;
Jeffrey Huang52575032020-02-11 17:33:45 -080046using internal::ConfigEntry;
47using internal::ParseConfig;
Jooyung Hancd616d02020-09-01 14:53:23 +090048using internal::ParseApexLibrariesConfig;
Jeffrey Huang52575032020-02-11 17:33:45 -080049using std::literals::string_literals::operator""s;
Orion Hodson9b16e342019-10-09 13:29:16 +010050
51namespace {
52
53constexpr const char* kDefaultPublicLibrariesFile = "/etc/public.libraries.txt";
54constexpr const char* kExtendedPublicLibrariesFilePrefix = "public.libraries-";
55constexpr const char* kExtendedPublicLibrariesFileSuffix = ".txt";
Jooyung Hancd616d02020-09-01 14:53:23 +090056constexpr const char* kApexLibrariesConfigFile = "/linkerconfig/apex.libraries.config.txt";
Orion Hodson9b16e342019-10-09 13:29:16 +010057constexpr const char* kVendorPublicLibrariesFile = "/vendor/etc/public.libraries.txt";
Jooyung Han26f7d102020-02-22 23:39:23 +090058constexpr const char* kLlndkLibrariesFile = "/apex/com.android.vndk.v{}/etc/llndk.libraries.{}.txt";
59constexpr const char* kVndkLibrariesFile = "/apex/com.android.vndk.v{}/etc/vndksp.libraries.{}.txt";
Orion Hodson9b16e342019-10-09 13:29:16 +010060
Orion Hodson9b16e342019-10-09 13:29:16 +010061
62// TODO(b/130388701): do we need this?
63std::string root_dir() {
64 static const char* android_root_env = getenv("ANDROID_ROOT");
65 return android_root_env != nullptr ? android_root_env : "/system";
66}
67
68bool debuggable() {
69 static bool debuggable = android::base::GetBoolProperty("ro.debuggable", false);
70 return debuggable;
71}
72
Justin Yun089c1352020-02-06 16:53:08 +090073std::string vndk_version_str(bool use_product_vndk) {
Jooyung Han26f7d102020-02-22 23:39:23 +090074 if (use_product_vndk) {
75 static std::string product_vndk_version = get_vndk_version(true);
76 return product_vndk_version;
77 } else {
78 static std::string vendor_vndk_version = get_vndk_version(false);
79 return vendor_vndk_version;
Orion Hodson9b16e342019-10-09 13:29:16 +010080 }
Orion Hodson9b16e342019-10-09 13:29:16 +010081}
82
83// For debuggable platform builds use ANDROID_ADDITIONAL_PUBLIC_LIBRARIES environment
84// variable to add libraries to the list. This is intended for platform tests only.
85std::string additional_public_libraries() {
86 if (debuggable()) {
87 const char* val = getenv("ANDROID_ADDITIONAL_PUBLIC_LIBRARIES");
88 return val ? val : "";
89 }
90 return "";
91}
92
Jooyung Han26f7d102020-02-22 23:39:23 +090093// insert vndk version in every {} placeholder
Justin Yun089c1352020-02-06 16:53:08 +090094void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) {
Orion Hodson9b16e342019-10-09 13:29:16 +010095 CHECK(file_name != nullptr);
Jooyung Han26f7d102020-02-22 23:39:23 +090096 auto version = vndk_version_str(use_product_vndk);
97 size_t pos = file_name->find("{}");
98 while (pos != std::string::npos) {
99 file_name->replace(pos, 2, version);
100 pos = file_name->find("{}", pos + version.size());
Orion Hodson9b16e342019-10-09 13:29:16 +0100101 }
Orion Hodson9b16e342019-10-09 13:29:16 +0100102}
103
104const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
105 [](const struct ConfigEntry&) -> Result<bool> { return true; };
106
107Result<std::vector<std::string>> ReadConfig(
108 const std::string& configFile,
109 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) {
110 std::string file_content;
111 if (!base::ReadFileToString(configFile, &file_content)) {
112 return ErrnoError();
113 }
114 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900115 if (!result.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100116 return Errorf("Cannot parse {}: {}", configFile, result.error().message());
117 }
118 return result;
119}
120
121void ReadExtensionLibraries(const char* dirname, std::vector<std::string>* sonames) {
122 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(dirname), closedir);
123 if (dir != nullptr) {
124 // Failing to opening the dir is not an error, which can happen in
125 // webview_zygote.
126 while (struct dirent* ent = readdir(dir.get())) {
127 if (ent->d_type != DT_REG && ent->d_type != DT_LNK) {
128 continue;
129 }
130 const std::string filename(ent->d_name);
131 std::string_view fn = filename;
132 if (android::base::ConsumePrefix(&fn, kExtendedPublicLibrariesFilePrefix) &&
133 android::base::ConsumeSuffix(&fn, kExtendedPublicLibrariesFileSuffix)) {
134 const std::string company_name(fn);
135 const std::string config_file_path = dirname + "/"s + filename;
136 LOG_ALWAYS_FATAL_IF(
137 company_name.empty(),
138 "Error extracting company name from public native library list file path \"%s\"",
139 config_file_path.c_str());
140
141 auto ret = ReadConfig(
142 config_file_path, [&company_name](const struct ConfigEntry& entry) -> Result<bool> {
143 if (android::base::StartsWith(entry.soname, "lib") &&
144 android::base::EndsWith(entry.soname, "." + company_name + ".so")) {
145 return true;
146 } else {
147 return Errorf("Library name \"{}\" does not end with the company name {}.",
148 entry.soname, company_name);
149 }
150 });
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900151 if (ret.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100152 sonames->insert(sonames->end(), ret->begin(), ret->end());
153 } else {
154 LOG_ALWAYS_FATAL("Error reading public native library list from \"%s\": %s",
155 config_file_path.c_str(), ret.error().message().c_str());
156 }
157 }
158 }
159 }
160}
161
162static std::string InitDefaultPublicLibraries(bool for_preload) {
163 std::string config_file = root_dir() + kDefaultPublicLibrariesFile;
164 auto sonames =
165 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> {
166 if (for_preload) {
167 return !entry.nopreload;
168 } else {
169 return true;
170 }
171 });
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900172 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100173 LOG_ALWAYS_FATAL("Error reading public native library list from \"%s\": %s",
174 config_file.c_str(), sonames.error().message().c_str());
175 return "";
176 }
177
178 std::string additional_libs = additional_public_libraries();
179 if (!additional_libs.empty()) {
180 auto vec = base::Split(additional_libs, ":");
181 std::copy(vec.begin(), vec.end(), std::back_inserter(*sonames));
182 }
183
184 // If this is for preloading libs, don't remove the libs from APEXes.
185 if (for_preload) {
186 return android::base::Join(*sonames, ':');
187 }
188
Jooyung Hancd616d02020-09-01 14:53:23 +0900189 // Remove the public libs provided by apexes because these libs are available
190 // from apex namespaces.
191 for (const auto& p : apex_public_libraries()) {
192 // TODO(b/167578583) remove this `if` block after fixing the bug
193 // Skip ART APEX to keep behaviors
194 if (p.first == "com_android_art") {
Orion Hodson9b16e342019-10-09 13:29:16 +0100195 continue;
196 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900197 auto public_libs = base::Split(p.second, ":");
198 sonames->erase(std::remove_if(sonames->begin(), sonames->end(), [&public_libs](const std::string& v) {
199 return std::find(public_libs.begin(), public_libs.end(), v) != public_libs.end();
200 }), sonames->end());
Orion Hodson9b16e342019-10-09 13:29:16 +0100201 }
202 return android::base::Join(*sonames, ':');
203}
204
Orion Hodson9b16e342019-10-09 13:29:16 +0100205static std::string InitVendorPublicLibraries() {
206 // This file is optional, quietly ignore if the file does not exist.
207 auto sonames = ReadConfig(kVendorPublicLibrariesFile, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900208 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100209 return "";
210 }
211 return android::base::Join(*sonames, ':');
212}
213
Justin Yun0cc40272019-12-16 16:47:40 +0900214// read /system/etc/public.libraries-<companyname>.txt,
215// /system_ext/etc/public.libraries-<companyname>.txt and
Orion Hodson9b16e342019-10-09 13:29:16 +0100216// /product/etc/public.libraries-<companyname>.txt which contain partner defined
217// system libs that are exposed to apps. The libs in the txt files must be
218// named as lib<name>.<companyname>.so.
219static std::string InitExtendedPublicLibraries() {
220 std::vector<std::string> sonames;
221 ReadExtensionLibraries("/system/etc", &sonames);
Justin Yun0cc40272019-12-16 16:47:40 +0900222 ReadExtensionLibraries("/system_ext/etc", &sonames);
Orion Hodson9b16e342019-10-09 13:29:16 +0100223 ReadExtensionLibraries("/product/etc", &sonames);
224 return android::base::Join(sonames, ':');
225}
226
Justin Yun089c1352020-02-06 16:53:08 +0900227static std::string InitLlndkLibrariesVendor() {
Orion Hodson9b16e342019-10-09 13:29:16 +0100228 std::string config_file = kLlndkLibrariesFile;
Justin Yun089c1352020-02-06 16:53:08 +0900229 InsertVndkVersionStr(&config_file, false);
230 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocentic1375632020-02-13 10:37:03 +0900231 if (!sonames.ok()) {
Jooyung Han26f7d102020-02-22 23:39:23 +0900232 LOG_ALWAYS_FATAL("%s: %s", config_file.c_str(), sonames.error().message().c_str());
Justin Yun089c1352020-02-06 16:53:08 +0900233 return "";
234 }
235 return android::base::Join(*sonames, ':');
236}
237
238static std::string InitLlndkLibrariesProduct() {
Justin Yun696882f2020-03-24 13:31:19 +0900239 if (!is_product_vndk_version_defined()) {
240 return "";
241 }
Justin Yun089c1352020-02-06 16:53:08 +0900242 std::string config_file = kLlndkLibrariesFile;
243 InsertVndkVersionStr(&config_file, true);
Orion Hodson9b16e342019-10-09 13:29:16 +0100244 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900245 if (!sonames.ok()) {
Jooyung Han26f7d102020-02-22 23:39:23 +0900246 LOG_ALWAYS_FATAL("%s: %s", config_file.c_str(), sonames.error().message().c_str());
Orion Hodson9b16e342019-10-09 13:29:16 +0100247 return "";
248 }
249 return android::base::Join(*sonames, ':');
250}
251
Justin Yuneb4f08c2020-02-18 11:29:07 +0900252static std::string InitVndkspLibrariesVendor() {
Orion Hodson9b16e342019-10-09 13:29:16 +0100253 std::string config_file = kVndkLibrariesFile;
Justin Yun089c1352020-02-06 16:53:08 +0900254 InsertVndkVersionStr(&config_file, false);
Orion Hodson9b16e342019-10-09 13:29:16 +0100255 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900256 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100257 LOG_ALWAYS_FATAL("%s", sonames.error().message().c_str());
258 return "";
259 }
260 return android::base::Join(*sonames, ':');
261}
262
Justin Yuneb4f08c2020-02-18 11:29:07 +0900263static std::string InitVndkspLibrariesProduct() {
Justin Yun696882f2020-03-24 13:31:19 +0900264 if (!is_product_vndk_version_defined()) {
265 return "";
266 }
Justin Yuneb4f08c2020-02-18 11:29:07 +0900267 std::string config_file = kVndkLibrariesFile;
268 InsertVndkVersionStr(&config_file, true);
269 auto sonames = ReadConfig(config_file, always_true);
270 if (!sonames.ok()) {
271 LOG_ALWAYS_FATAL("%s", sonames.error().message().c_str());
272 return "";
273 }
274 return android::base::Join(*sonames, ':');
275}
276
Jooyung Hancd616d02020-09-01 14:53:23 +0900277static std::map<std::string, std::string> InitApexLibraries(const std::string& tag) {
Jooyung Han538f99a2020-03-03 00:46:50 +0900278 std::string file_content;
Jooyung Hancd616d02020-09-01 14:53:23 +0900279 if (!base::ReadFileToString(kApexLibrariesConfigFile, &file_content)) {
280 // config is optional
Jooyung Han538f99a2020-03-03 00:46:50 +0900281 return {};
282 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900283 auto config = ParseApexLibrariesConfig(file_content, tag);
Jooyung Han538f99a2020-03-03 00:46:50 +0900284 if (!config.ok()) {
Jooyung Hancd616d02020-09-01 14:53:23 +0900285 LOG_ALWAYS_FATAL("%s: %s", kApexLibrariesConfigFile, config.error().message().c_str());
Jooyung Han538f99a2020-03-03 00:46:50 +0900286 return {};
287 }
288 return *config;
289}
290
Jooyung Hancd616d02020-09-01 14:53:23 +0900291struct ApexLibrariesConfigLine {
292 std::string tag;
293 std::string apex_namespace;
294 std::string library_list;
295};
296
297const std::regex kApexNamespaceRegex("[0-9a-zA-Z_]+");
298const std::regex kLibraryListRegex("[0-9a-zA-Z.:@+_-]+");
299
300Result<ApexLibrariesConfigLine> ParseApexLibrariesConfigLine(const std::string& line) {
301 std::vector<std::string> tokens = base::Split(line, " ");
302 if (tokens.size() != 3) {
303 return Errorf("Malformed line \"{}\"", line);
304 }
305 if (tokens[0] != "jni" && tokens[0] != "public") {
306 return Errorf("Invalid tag \"{}\"", line);
307 }
308 if (!std::regex_match(tokens[1], kApexNamespaceRegex)) {
309 return Errorf("Invalid apex_namespace \"{}\"", line);
310 }
311 if (!std::regex_match(tokens[2], kLibraryListRegex)) {
312 return Errorf("Invalid library_list \"{}\"", line);
313 }
314 return ApexLibrariesConfigLine{std::move(tokens[0]), std::move(tokens[1]), std::move(tokens[2])};
315}
316
Orion Hodson9b16e342019-10-09 13:29:16 +0100317} // namespace
318
319const std::string& preloadable_public_libraries() {
320 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ true);
321 return list;
322}
323
324const std::string& default_public_libraries() {
325 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ false);
326 return list;
327}
328
Orion Hodson9b16e342019-10-09 13:29:16 +0100329const std::string& vendor_public_libraries() {
330 static std::string list = InitVendorPublicLibraries();
331 return list;
332}
333
334const std::string& extended_public_libraries() {
335 static std::string list = InitExtendedPublicLibraries();
336 return list;
337}
338
Justin Yun089c1352020-02-06 16:53:08 +0900339const std::string& llndk_libraries_product() {
340 static std::string list = InitLlndkLibrariesProduct();
341 return list;
342}
343
344const std::string& llndk_libraries_vendor() {
345 static std::string list = InitLlndkLibrariesVendor();
Orion Hodson9b16e342019-10-09 13:29:16 +0100346 return list;
347}
348
Justin Yuneb4f08c2020-02-18 11:29:07 +0900349const std::string& vndksp_libraries_product() {
350 static std::string list = InitVndkspLibrariesProduct();
351 return list;
352}
353
354const std::string& vndksp_libraries_vendor() {
355 static std::string list = InitVndkspLibrariesVendor();
Orion Hodson9b16e342019-10-09 13:29:16 +0100356 return list;
357}
358
Jooyung Han538f99a2020-03-03 00:46:50 +0900359const std::string& apex_jni_libraries(const std::string& apex_ns_name) {
Jooyung Hancd616d02020-09-01 14:53:23 +0900360 static std::map<std::string, std::string> jni_libraries = InitApexLibraries("jni");
Jooyung Han538f99a2020-03-03 00:46:50 +0900361 return jni_libraries[apex_ns_name];
362}
363
Jooyung Hancd616d02020-09-01 14:53:23 +0900364const std::map<std::string, std::string>& apex_public_libraries() {
365 static std::map<std::string, std::string> public_libraries = InitApexLibraries("public");
366 return public_libraries;
367}
368
Justin Yun3db26d52019-12-16 14:09:39 +0900369bool is_product_vndk_version_defined() {
Nicolas Geoffray7ca8b672020-04-24 15:43:48 +0100370#if defined(ART_TARGET_ANDROID)
Justin Yun3db26d52019-12-16 14:09:39 +0900371 return android::sysprop::VndkProperties::product_vndk_version().has_value();
372#else
373 return false;
374#endif
375}
376
Justin Yun089c1352020-02-06 16:53:08 +0900377std::string get_vndk_version(bool is_product_vndk) {
Nicolas Geoffray7ca8b672020-04-24 15:43:48 +0100378#if defined(ART_TARGET_ANDROID)
Justin Yun089c1352020-02-06 16:53:08 +0900379 if (is_product_vndk) {
380 return android::sysprop::VndkProperties::product_vndk_version().value_or("");
381 }
382 return android::sysprop::VndkProperties::vendor_vndk_version().value_or("");
383#else
384 if (is_product_vndk) {
385 return android::base::GetProperty("ro.product.vndk.version", "");
386 }
387 return android::base::GetProperty("ro.vndk.version", "");
388#endif
389}
390
Orion Hodson9b16e342019-10-09 13:29:16 +0100391namespace internal {
392// Exported for testing
393Result<std::vector<std::string>> ParseConfig(
394 const std::string& file_content,
395 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) {
396 std::vector<std::string> lines = base::Split(file_content, "\n");
397
398 std::vector<std::string> sonames;
399 for (auto& line : lines) {
400 auto trimmed_line = base::Trim(line);
401 if (trimmed_line[0] == '#' || trimmed_line.empty()) {
402 continue;
403 }
404
405 std::vector<std::string> tokens = android::base::Split(trimmed_line, " ");
406 if (tokens.size() < 1 || tokens.size() > 3) {
407 return Errorf("Malformed line \"{}\"", line);
408 }
409 struct ConfigEntry entry = {.soname = "", .nopreload = false, .bitness = ALL};
410 size_t i = tokens.size();
411 while (i-- > 0) {
412 if (tokens[i] == "nopreload") {
413 entry.nopreload = true;
414 } else if (tokens[i] == "32" || tokens[i] == "64") {
415 if (entry.bitness != ALL) {
416 return Errorf("Malformed line \"{}\": bitness can be specified only once", line);
417 }
418 entry.bitness = tokens[i] == "32" ? ONLY_32 : ONLY_64;
419 } else {
420 if (i != 0) {
421 return Errorf("Malformed line \"{}\"", line);
422 }
423 entry.soname = tokens[i];
424 }
425 }
426
427 // skip 32-bit lib on 64-bit process and vice versa
428#if defined(__LP64__)
429 if (entry.bitness == ONLY_32) continue;
430#else
431 if (entry.bitness == ONLY_64) continue;
432#endif
433
434 Result<bool> ret = filter_fn(entry);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900435 if (!ret.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100436 return ret.error();
437 }
438 if (*ret) {
439 // filter_fn has returned true.
440 sonames.push_back(entry.soname);
441 }
442 }
443 return sonames;
444}
445
Jooyung Hancd616d02020-09-01 14:53:23 +0900446// Parses apex.libraries.config.txt file generated by linkerconfig which looks like
447// system/linkerconfig/testdata/golden_output/stages/apex.libraries.config.txt
448// and returns mapping of <apex namespace> to <library list> which matches <tag>.
449//
450// The file is line-based and each line consists of "<tag> <apex namespace> <library list>".
451//
452// <tag> explains what <library list> is. (e.g "jni", "public")
453// <library list> is colon-separated list of library names. (e.g "libfoo.so:libbar.so")
454//
455// If <tag> is "jni", <library list> is the list of JNI libraries exposed by <apex namespace>.
456// If <tag> is "public", <library list> is the list of public libraries exposed by <apex namespace>.
457// Public libraries are the libs listed in /system/etc/public.libraries.txt.
458Result<std::map<std::string, std::string>> ParseApexLibrariesConfig(const std::string& file_content, const std::string& tag) {
Jooyung Han538f99a2020-03-03 00:46:50 +0900459 std::map<std::string, std::string> entries;
460 std::vector<std::string> lines = base::Split(file_content, "\n");
461 for (auto& line : lines) {
462 auto trimmed_line = base::Trim(line);
463 if (trimmed_line[0] == '#' || trimmed_line.empty()) {
464 continue;
465 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900466 auto config_line = ParseApexLibrariesConfigLine(trimmed_line);
467 if (!config_line.ok()) {
468 return config_line.error();
Jooyung Han538f99a2020-03-03 00:46:50 +0900469 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900470 if (config_line->tag != tag) {
471 continue;
472 }
473 entries[config_line->apex_namespace] = config_line->library_list;
474 }
475
476 // TODO(b/167578583) remove this `if` block after fixing the bug
477 if (tag == "public") {
478 std::string additional_libs = additional_public_libraries();
479 if (!additional_libs.empty()) {
480 entries["com_android_art"] += ':' + additional_libs;
481 }
Jooyung Han538f99a2020-03-03 00:46:50 +0900482 }
483 return entries;
484}
485
Orion Hodson9b16e342019-10-09 13:29:16 +0100486} // namespace internal
487
488} // namespace android::nativeloader