blob: 85f9b298da4943b9dcd180cc4150a0923272dd00 [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]
8additional.namespaces = platform,art,adbd
9
10namespace.default.isolated = true
11namespace.default.links = art,adbd,platform
12namespace.default.link.art.shared_libs = libadbconnection_server.so
13namespace.default.link.platform.allow_all_shared_libs = true
14namespace.default.link.adbd.allow_all_shared_libs = true
15
16###############################################################################
17# "adbd" APEX namespace
18###############################################################################
19namespace.adbd.isolated = true
20namespace.adbd.search.paths = /apex/com.android.adbd/${LIB}
21namespace.adbd.asan.search.paths = /apex/com.android.adbd/${LIB}
22namespace.adbd.links = platform
23namespace.adbd.link.platform.allow_all_shared_libs = true
24
25###############################################################################
26# "art" APEX namespace: used for libadbdconnection_server
27###############################################################################
28namespace.art.isolated = true
29namespace.art.search.paths = /apex/com.android.art/${LIB}
30namespace.art.asan.search.paths = /apex/com.android.art/${LIB}
31namespace.art.links = platform
32namespace.art.link.platform.allow_all_shared_libs = true
33
34###############################################################################
35# "platform" namespace: used for NDK libraries, and libadbd_auth
36###############################################################################
37namespace.platform.isolated = true
38namespace.platform.search.paths = /system/${LIB}
39namespace.platform.asan.search.paths = /data/asan/system/${LIB}
40
41# /system/lib/libc.so, etc are symlinks to
42# /apex/com.android.runtime/lib/bionic/libc.so, etc. Add the path to the
43# permitted paths because linker uses realpath(3) to check the accessibility
44# of the lib. We could add this to search.paths instead but that makes the
45# resolution of bionic libs be dependent on the order of /system/lib and
46# /apex/.../lib/bionic in search.paths. If the latter is after the former,
47# then the latter is never tried because libc.so is always found in
48# /system/lib but fails to pass the accessibility test because of its realpath.
49# It's better to not depend on the ordering if possible.
50namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
51namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic