blob: ffebe0b4c75b6bcd2cf0914fbe54ebe49fd938a6 [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>
Nicolas Geoffray0bf5b672021-05-17 11:07:42 +010031#include <android-base/properties.h>
Orion Hodson9b16e342019-10-09 13:29:16 +010032#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
Justin Yun089c1352020-02-06 16:53:08 +090068std::string vndk_version_str(bool use_product_vndk) {
Jooyung Han26f7d102020-02-22 23:39:23 +090069 if (use_product_vndk) {
70 static std::string product_vndk_version = get_vndk_version(true);
71 return product_vndk_version;
72 } else {
73 static std::string vendor_vndk_version = get_vndk_version(false);
74 return vendor_vndk_version;
Orion Hodson9b16e342019-10-09 13:29:16 +010075 }
Orion Hodson9b16e342019-10-09 13:29:16 +010076}
77
Jooyung Han26f7d102020-02-22 23:39:23 +090078// insert vndk version in every {} placeholder
Justin Yun089c1352020-02-06 16:53:08 +090079void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) {
Orion Hodson9b16e342019-10-09 13:29:16 +010080 CHECK(file_name != nullptr);
Jooyung Han26f7d102020-02-22 23:39:23 +090081 auto version = vndk_version_str(use_product_vndk);
82 size_t pos = file_name->find("{}");
83 while (pos != std::string::npos) {
84 file_name->replace(pos, 2, version);
85 pos = file_name->find("{}", pos + version.size());
Orion Hodson9b16e342019-10-09 13:29:16 +010086 }
Orion Hodson9b16e342019-10-09 13:29:16 +010087}
88
89const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
90 [](const struct ConfigEntry&) -> Result<bool> { return true; };
91
92Result<std::vector<std::string>> ReadConfig(
93 const std::string& configFile,
94 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) {
95 std::string file_content;
96 if (!base::ReadFileToString(configFile, &file_content)) {
97 return ErrnoError();
98 }
99 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900100 if (!result.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100101 return Errorf("Cannot parse {}: {}", configFile, result.error().message());
102 }
103 return result;
104}
105
106void ReadExtensionLibraries(const char* dirname, std::vector<std::string>* sonames) {
107 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(dirname), closedir);
108 if (dir != nullptr) {
109 // Failing to opening the dir is not an error, which can happen in
110 // webview_zygote.
111 while (struct dirent* ent = readdir(dir.get())) {
112 if (ent->d_type != DT_REG && ent->d_type != DT_LNK) {
113 continue;
114 }
115 const std::string filename(ent->d_name);
116 std::string_view fn = filename;
117 if (android::base::ConsumePrefix(&fn, kExtendedPublicLibrariesFilePrefix) &&
118 android::base::ConsumeSuffix(&fn, kExtendedPublicLibrariesFileSuffix)) {
119 const std::string company_name(fn);
120 const std::string config_file_path = dirname + "/"s + filename;
121 LOG_ALWAYS_FATAL_IF(
122 company_name.empty(),
123 "Error extracting company name from public native library list file path \"%s\"",
124 config_file_path.c_str());
125
126 auto ret = ReadConfig(
127 config_file_path, [&company_name](const struct ConfigEntry& entry) -> Result<bool> {
128 if (android::base::StartsWith(entry.soname, "lib") &&
129 android::base::EndsWith(entry.soname, "." + company_name + ".so")) {
130 return true;
131 } else {
132 return Errorf("Library name \"{}\" does not end with the company name {}.",
133 entry.soname, company_name);
134 }
135 });
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900136 if (ret.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100137 sonames->insert(sonames->end(), ret->begin(), ret->end());
138 } else {
139 LOG_ALWAYS_FATAL("Error reading public native library list from \"%s\": %s",
140 config_file_path.c_str(), ret.error().message().c_str());
141 }
142 }
143 }
144 }
145}
146
147static std::string InitDefaultPublicLibraries(bool for_preload) {
148 std::string config_file = root_dir() + kDefaultPublicLibrariesFile;
149 auto sonames =
150 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> {
151 if (for_preload) {
152 return !entry.nopreload;
153 } else {
154 return true;
155 }
156 });
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900157 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100158 LOG_ALWAYS_FATAL("Error reading public native library list from \"%s\": %s",
159 config_file.c_str(), sonames.error().message().c_str());
160 return "";
161 }
162
Orion Hodson9b16e342019-10-09 13:29:16 +0100163 // If this is for preloading libs, don't remove the libs from APEXes.
164 if (for_preload) {
165 return android::base::Join(*sonames, ':');
166 }
167
Jooyung Hancd616d02020-09-01 14:53:23 +0900168 // Remove the public libs provided by apexes because these libs are available
169 // from apex namespaces.
170 for (const auto& p : apex_public_libraries()) {
Jooyung Hancd616d02020-09-01 14:53:23 +0900171 auto public_libs = base::Split(p.second, ":");
172 sonames->erase(std::remove_if(sonames->begin(), sonames->end(), [&public_libs](const std::string& v) {
173 return std::find(public_libs.begin(), public_libs.end(), v) != public_libs.end();
174 }), sonames->end());
Orion Hodson9b16e342019-10-09 13:29:16 +0100175 }
176 return android::base::Join(*sonames, ':');
177}
178
Orion Hodson9b16e342019-10-09 13:29:16 +0100179static std::string InitVendorPublicLibraries() {
180 // This file is optional, quietly ignore if the file does not exist.
181 auto sonames = ReadConfig(kVendorPublicLibrariesFile, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900182 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100183 return "";
184 }
185 return android::base::Join(*sonames, ':');
186}
187
Justin Yunbbd13da2021-08-17 19:07:32 +0900188// If ro.product.vndk.version is defined, /product/etc/public.libraries-<companyname>.txt contains
189// the product public libraries that are loaded from the product namespace. Otherwise, the file
190// contains the extended public libraries that are loaded from the system namespace.
Justin Yuna21b5842021-08-10 14:05:49 +0900191static std::string InitProductPublicLibraries() {
Justin Yunbbd13da2021-08-17 19:07:32 +0900192 std::vector<std::string> sonames;
193 if (is_product_vndk_version_defined()) {
194 ReadExtensionLibraries("/product/etc", &sonames);
Justin Yuna21b5842021-08-10 14:05:49 +0900195 }
Justin Yunbbd13da2021-08-17 19:07:32 +0900196 return android::base::Join(sonames, ':');
Justin Yuna21b5842021-08-10 14:05:49 +0900197}
198
Justin Yun0cc40272019-12-16 16:47:40 +0900199// read /system/etc/public.libraries-<companyname>.txt,
200// /system_ext/etc/public.libraries-<companyname>.txt and
Orion Hodson9b16e342019-10-09 13:29:16 +0100201// /product/etc/public.libraries-<companyname>.txt which contain partner defined
202// system libs that are exposed to apps. The libs in the txt files must be
203// named as lib<name>.<companyname>.so.
204static std::string InitExtendedPublicLibraries() {
205 std::vector<std::string> sonames;
206 ReadExtensionLibraries("/system/etc", &sonames);
Justin Yun0cc40272019-12-16 16:47:40 +0900207 ReadExtensionLibraries("/system_ext/etc", &sonames);
Justin Yuna21b5842021-08-10 14:05:49 +0900208 if (!is_product_vndk_version_defined()) {
209 ReadExtensionLibraries("/product/etc", &sonames);
210 }
Orion Hodson9b16e342019-10-09 13:29:16 +0100211 return android::base::Join(sonames, ':');
212}
213
Justin Yun089c1352020-02-06 16:53:08 +0900214static std::string InitLlndkLibrariesVendor() {
Orion Hodson9b16e342019-10-09 13:29:16 +0100215 std::string config_file = kLlndkLibrariesFile;
Justin Yun089c1352020-02-06 16:53:08 +0900216 InsertVndkVersionStr(&config_file, false);
217 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocentic1375632020-02-13 10:37:03 +0900218 if (!sonames.ok()) {
Jooyung Han26f7d102020-02-22 23:39:23 +0900219 LOG_ALWAYS_FATAL("%s: %s", config_file.c_str(), sonames.error().message().c_str());
Justin Yun089c1352020-02-06 16:53:08 +0900220 return "";
221 }
222 return android::base::Join(*sonames, ':');
223}
224
225static std::string InitLlndkLibrariesProduct() {
Justin Yun696882f2020-03-24 13:31:19 +0900226 if (!is_product_vndk_version_defined()) {
227 return "";
228 }
Justin Yun089c1352020-02-06 16:53:08 +0900229 std::string config_file = kLlndkLibrariesFile;
230 InsertVndkVersionStr(&config_file, true);
Orion Hodson9b16e342019-10-09 13:29:16 +0100231 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900232 if (!sonames.ok()) {
Jooyung Han26f7d102020-02-22 23:39:23 +0900233 LOG_ALWAYS_FATAL("%s: %s", config_file.c_str(), sonames.error().message().c_str());
Orion Hodson9b16e342019-10-09 13:29:16 +0100234 return "";
235 }
236 return android::base::Join(*sonames, ':');
237}
238
Justin Yuneb4f08c2020-02-18 11:29:07 +0900239static std::string InitVndkspLibrariesVendor() {
Orion Hodson9b16e342019-10-09 13:29:16 +0100240 std::string config_file = kVndkLibrariesFile;
Justin Yun089c1352020-02-06 16:53:08 +0900241 InsertVndkVersionStr(&config_file, false);
Orion Hodson9b16e342019-10-09 13:29:16 +0100242 auto sonames = ReadConfig(config_file, always_true);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900243 if (!sonames.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100244 LOG_ALWAYS_FATAL("%s", sonames.error().message().c_str());
245 return "";
246 }
247 return android::base::Join(*sonames, ':');
248}
249
Justin Yuneb4f08c2020-02-18 11:29:07 +0900250static std::string InitVndkspLibrariesProduct() {
Justin Yun696882f2020-03-24 13:31:19 +0900251 if (!is_product_vndk_version_defined()) {
252 return "";
253 }
Justin Yuneb4f08c2020-02-18 11:29:07 +0900254 std::string config_file = kVndkLibrariesFile;
255 InsertVndkVersionStr(&config_file, true);
256 auto sonames = ReadConfig(config_file, always_true);
257 if (!sonames.ok()) {
258 LOG_ALWAYS_FATAL("%s", sonames.error().message().c_str());
259 return "";
260 }
261 return android::base::Join(*sonames, ':');
262}
263
Jooyung Hancd616d02020-09-01 14:53:23 +0900264static std::map<std::string, std::string> InitApexLibraries(const std::string& tag) {
Jooyung Han538f99a2020-03-03 00:46:50 +0900265 std::string file_content;
Jooyung Hancd616d02020-09-01 14:53:23 +0900266 if (!base::ReadFileToString(kApexLibrariesConfigFile, &file_content)) {
267 // config is optional
Jooyung Han538f99a2020-03-03 00:46:50 +0900268 return {};
269 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900270 auto config = ParseApexLibrariesConfig(file_content, tag);
Jooyung Han538f99a2020-03-03 00:46:50 +0900271 if (!config.ok()) {
Jooyung Hancd616d02020-09-01 14:53:23 +0900272 LOG_ALWAYS_FATAL("%s: %s", kApexLibrariesConfigFile, config.error().message().c_str());
Jooyung Han538f99a2020-03-03 00:46:50 +0900273 return {};
274 }
275 return *config;
276}
277
Jooyung Hancd616d02020-09-01 14:53:23 +0900278struct ApexLibrariesConfigLine {
279 std::string tag;
280 std::string apex_namespace;
281 std::string library_list;
282};
283
284const std::regex kApexNamespaceRegex("[0-9a-zA-Z_]+");
285const std::regex kLibraryListRegex("[0-9a-zA-Z.:@+_-]+");
286
287Result<ApexLibrariesConfigLine> ParseApexLibrariesConfigLine(const std::string& line) {
288 std::vector<std::string> tokens = base::Split(line, " ");
289 if (tokens.size() != 3) {
290 return Errorf("Malformed line \"{}\"", line);
291 }
292 if (tokens[0] != "jni" && tokens[0] != "public") {
293 return Errorf("Invalid tag \"{}\"", line);
294 }
295 if (!std::regex_match(tokens[1], kApexNamespaceRegex)) {
296 return Errorf("Invalid apex_namespace \"{}\"", line);
297 }
298 if (!std::regex_match(tokens[2], kLibraryListRegex)) {
299 return Errorf("Invalid library_list \"{}\"", line);
300 }
301 return ApexLibrariesConfigLine{std::move(tokens[0]), std::move(tokens[1]), std::move(tokens[2])};
302}
303
Orion Hodson9b16e342019-10-09 13:29:16 +0100304} // namespace
305
306const std::string& preloadable_public_libraries() {
307 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ true);
308 return list;
309}
310
311const std::string& default_public_libraries() {
312 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ false);
313 return list;
314}
315
Orion Hodson9b16e342019-10-09 13:29:16 +0100316const std::string& vendor_public_libraries() {
317 static std::string list = InitVendorPublicLibraries();
318 return list;
319}
320
Justin Yuna21b5842021-08-10 14:05:49 +0900321const std::string& product_public_libraries() {
322 static std::string list = InitProductPublicLibraries();
323 return list;
324}
325
Orion Hodson9b16e342019-10-09 13:29:16 +0100326const std::string& extended_public_libraries() {
327 static std::string list = InitExtendedPublicLibraries();
328 return list;
329}
330
Justin Yun089c1352020-02-06 16:53:08 +0900331const std::string& llndk_libraries_product() {
332 static std::string list = InitLlndkLibrariesProduct();
333 return list;
334}
335
336const std::string& llndk_libraries_vendor() {
337 static std::string list = InitLlndkLibrariesVendor();
Orion Hodson9b16e342019-10-09 13:29:16 +0100338 return list;
339}
340
Justin Yuneb4f08c2020-02-18 11:29:07 +0900341const std::string& vndksp_libraries_product() {
342 static std::string list = InitVndkspLibrariesProduct();
343 return list;
344}
345
346const std::string& vndksp_libraries_vendor() {
347 static std::string list = InitVndkspLibrariesVendor();
Orion Hodson9b16e342019-10-09 13:29:16 +0100348 return list;
349}
350
Jooyung Han538f99a2020-03-03 00:46:50 +0900351const std::string& apex_jni_libraries(const std::string& apex_ns_name) {
Jooyung Hancd616d02020-09-01 14:53:23 +0900352 static std::map<std::string, std::string> jni_libraries = InitApexLibraries("jni");
Jooyung Han538f99a2020-03-03 00:46:50 +0900353 return jni_libraries[apex_ns_name];
354}
355
Jooyung Hancd616d02020-09-01 14:53:23 +0900356const std::map<std::string, std::string>& apex_public_libraries() {
357 static std::map<std::string, std::string> public_libraries = InitApexLibraries("public");
358 return public_libraries;
359}
360
Justin Yun3db26d52019-12-16 14:09:39 +0900361bool is_product_vndk_version_defined() {
Nicolas Geoffray7ca8b672020-04-24 15:43:48 +0100362#if defined(ART_TARGET_ANDROID)
Justin Yun3db26d52019-12-16 14:09:39 +0900363 return android::sysprop::VndkProperties::product_vndk_version().has_value();
364#else
365 return false;
366#endif
367}
368
Justin Yun089c1352020-02-06 16:53:08 +0900369std::string get_vndk_version(bool is_product_vndk) {
Nicolas Geoffray7ca8b672020-04-24 15:43:48 +0100370#if defined(ART_TARGET_ANDROID)
Justin Yun089c1352020-02-06 16:53:08 +0900371 if (is_product_vndk) {
372 return android::sysprop::VndkProperties::product_vndk_version().value_or("");
373 }
374 return android::sysprop::VndkProperties::vendor_vndk_version().value_or("");
375#else
376 if (is_product_vndk) {
377 return android::base::GetProperty("ro.product.vndk.version", "");
378 }
379 return android::base::GetProperty("ro.vndk.version", "");
380#endif
381}
382
Orion Hodson9b16e342019-10-09 13:29:16 +0100383namespace internal {
384// Exported for testing
385Result<std::vector<std::string>> ParseConfig(
386 const std::string& file_content,
387 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) {
388 std::vector<std::string> lines = base::Split(file_content, "\n");
389
390 std::vector<std::string> sonames;
391 for (auto& line : lines) {
392 auto trimmed_line = base::Trim(line);
393 if (trimmed_line[0] == '#' || trimmed_line.empty()) {
394 continue;
395 }
396
397 std::vector<std::string> tokens = android::base::Split(trimmed_line, " ");
398 if (tokens.size() < 1 || tokens.size() > 3) {
399 return Errorf("Malformed line \"{}\"", line);
400 }
401 struct ConfigEntry entry = {.soname = "", .nopreload = false, .bitness = ALL};
402 size_t i = tokens.size();
403 while (i-- > 0) {
404 if (tokens[i] == "nopreload") {
405 entry.nopreload = true;
406 } else if (tokens[i] == "32" || tokens[i] == "64") {
407 if (entry.bitness != ALL) {
408 return Errorf("Malformed line \"{}\": bitness can be specified only once", line);
409 }
410 entry.bitness = tokens[i] == "32" ? ONLY_32 : ONLY_64;
411 } else {
412 if (i != 0) {
413 return Errorf("Malformed line \"{}\"", line);
414 }
415 entry.soname = tokens[i];
416 }
417 }
418
419 // skip 32-bit lib on 64-bit process and vice versa
420#if defined(__LP64__)
421 if (entry.bitness == ONLY_32) continue;
422#else
423 if (entry.bitness == ONLY_64) continue;
424#endif
425
426 Result<bool> ret = filter_fn(entry);
Bernie Innocenti4bd58952020-02-06 15:43:57 +0900427 if (!ret.ok()) {
Orion Hodson9b16e342019-10-09 13:29:16 +0100428 return ret.error();
429 }
430 if (*ret) {
431 // filter_fn has returned true.
432 sonames.push_back(entry.soname);
433 }
434 }
435 return sonames;
436}
437
Jooyung Hancd616d02020-09-01 14:53:23 +0900438// Parses apex.libraries.config.txt file generated by linkerconfig which looks like
439// system/linkerconfig/testdata/golden_output/stages/apex.libraries.config.txt
440// and returns mapping of <apex namespace> to <library list> which matches <tag>.
441//
442// The file is line-based and each line consists of "<tag> <apex namespace> <library list>".
443//
444// <tag> explains what <library list> is. (e.g "jni", "public")
445// <library list> is colon-separated list of library names. (e.g "libfoo.so:libbar.so")
446//
447// If <tag> is "jni", <library list> is the list of JNI libraries exposed by <apex namespace>.
448// If <tag> is "public", <library list> is the list of public libraries exposed by <apex namespace>.
449// Public libraries are the libs listed in /system/etc/public.libraries.txt.
450Result<std::map<std::string, std::string>> ParseApexLibrariesConfig(const std::string& file_content, const std::string& tag) {
Jooyung Han538f99a2020-03-03 00:46:50 +0900451 std::map<std::string, std::string> entries;
452 std::vector<std::string> lines = base::Split(file_content, "\n");
453 for (auto& line : lines) {
454 auto trimmed_line = base::Trim(line);
455 if (trimmed_line[0] == '#' || trimmed_line.empty()) {
456 continue;
457 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900458 auto config_line = ParseApexLibrariesConfigLine(trimmed_line);
459 if (!config_line.ok()) {
460 return config_line.error();
Jooyung Han538f99a2020-03-03 00:46:50 +0900461 }
Jooyung Hancd616d02020-09-01 14:53:23 +0900462 if (config_line->tag != tag) {
463 continue;
464 }
465 entries[config_line->apex_namespace] = config_line->library_list;
466 }
Jooyung Han538f99a2020-03-03 00:46:50 +0900467 return entries;
468}
469
Orion Hodson9b16e342019-10-09 13:29:16 +0100470} // namespace internal
471
472} // namespace android::nativeloader