blob: d1858a4540a7fe4b34f80f253789be0fde2f1742 [file] [log] [blame]
Josh Gao594f70f2019-08-15 14:05:12 -07001# Copyright (C) 2019 The Android Open Source Project
2#
3# Bionic loader config file for the adbd APEX.
4
5dir.adbd = /apex/com.android.adbd/bin/
6
7[adbd]
Kiyoung Kim0513f0e2020-01-03 10:33:07 +09008additional.namespaces = platform,art
Josh Gao594f70f2019-08-15 14:05:12 -07009
10namespace.default.isolated = true
Kiyoung Kim0513f0e2020-01-03 10:33:07 +090011namespace.default.search.paths = /apex/com.android.adbd/${LIB}
12namespace.default.asan.search.paths = /apex/com.android.adbd/${LIB}
Jiyong Park016059d2020-01-07 19:50:45 +090013namespace.default.permitted.paths = /system/${LIB}
14namespace.default.asan.permitted.paths = /system/${LIB}
Kiyoung Kim0513f0e2020-01-03 10:33:07 +090015namespace.default.links = art,platform
Josh Gao594f70f2019-08-15 14:05:12 -070016namespace.default.link.art.shared_libs = libadbconnection_server.so
Kiyoung Kim0513f0e2020-01-03 10:33:07 +090017namespace.default.link.platform.shared_libs = libc.so:libdl.so:libm.so:libclang_rt.hwasan-aarch64-android.so
Josh Gao594f70f2019-08-15 14:05:12 -070018
19###############################################################################
20# "art" APEX namespace: used for libadbdconnection_server
21###############################################################################
22namespace.art.isolated = true
23namespace.art.search.paths = /apex/com.android.art/${LIB}
24namespace.art.asan.search.paths = /apex/com.android.art/${LIB}
25namespace.art.links = platform
26namespace.art.link.platform.allow_all_shared_libs = true
27
28###############################################################################
29# "platform" namespace: used for NDK libraries, and libadbd_auth
30###############################################################################
31namespace.platform.isolated = true
32namespace.platform.search.paths = /system/${LIB}
33namespace.platform.asan.search.paths = /data/asan/system/${LIB}
34
35# /system/lib/libc.so, etc are symlinks to
36# /apex/com.android.runtime/lib/bionic/libc.so, etc. Add the path to the
37# permitted paths because linker uses realpath(3) to check the accessibility
38# of the lib. We could add this to search.paths instead but that makes the
39# resolution of bionic libs be dependent on the order of /system/lib and
40# /apex/.../lib/bionic in search.paths. If the latter is after the former,
41# then the latter is never tried because libc.so is always found in
42# /system/lib but fails to pass the accessibility test because of its realpath.
43# It's better to not depend on the ordering if possible.
44namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
45namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic