blob: 13d66b6d8b0a61d92f7bdad362fa17cff954e13b [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}
13namespace.default.links = art,platform
Josh Gao594f70f2019-08-15 14:05:12 -070014namespace.default.link.art.shared_libs = libadbconnection_server.so
Kiyoung Kim0513f0e2020-01-03 10:33:07 +090015namespace.default.link.platform.shared_libs = libc.so:libdl.so:libm.so:libclang_rt.hwasan-aarch64-android.so
Josh Gao594f70f2019-08-15 14:05:12 -070016
17###############################################################################
18# "art" APEX namespace: used for libadbdconnection_server
19###############################################################################
20namespace.art.isolated = true
21namespace.art.search.paths = /apex/com.android.art/${LIB}
22namespace.art.asan.search.paths = /apex/com.android.art/${LIB}
23namespace.art.links = platform
24namespace.art.link.platform.allow_all_shared_libs = true
25
26###############################################################################
27# "platform" namespace: used for NDK libraries, and libadbd_auth
28###############################################################################
29namespace.platform.isolated = true
30namespace.platform.search.paths = /system/${LIB}
31namespace.platform.asan.search.paths = /data/asan/system/${LIB}
32
33# /system/lib/libc.so, etc are symlinks to
34# /apex/com.android.runtime/lib/bionic/libc.so, etc. Add the path to the
35# permitted paths because linker uses realpath(3) to check the accessibility
36# of the lib. We could add this to search.paths instead but that makes the
37# resolution of bionic libs be dependent on the order of /system/lib and
38# /apex/.../lib/bionic in search.paths. If the latter is after the former,
39# then the latter is never tried because libc.so is always found in
40# /system/lib but fails to pass the accessibility test because of its realpath.
41# It's better to not depend on the ordering if possible.
42namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
43namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic