Josh Gao | 594f70f | 2019-08-15 14:05:12 -0700 | [diff] [blame^] | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file for the adbd APEX. |
| 4 | |
| 5 | dir.adbd = /apex/com.android.adbd/bin/ |
| 6 | |
| 7 | [adbd] |
| 8 | additional.namespaces = platform,art,adbd |
| 9 | |
| 10 | namespace.default.isolated = true |
| 11 | namespace.default.links = art,adbd,platform |
| 12 | namespace.default.link.art.shared_libs = libadbconnection_server.so |
| 13 | namespace.default.link.platform.allow_all_shared_libs = true |
| 14 | namespace.default.link.adbd.allow_all_shared_libs = true |
| 15 | |
| 16 | ############################################################################### |
| 17 | # "adbd" APEX namespace |
| 18 | ############################################################################### |
| 19 | namespace.adbd.isolated = true |
| 20 | namespace.adbd.search.paths = /apex/com.android.adbd/${LIB} |
| 21 | namespace.adbd.asan.search.paths = /apex/com.android.adbd/${LIB} |
| 22 | namespace.adbd.links = platform |
| 23 | namespace.adbd.link.platform.allow_all_shared_libs = true |
| 24 | |
| 25 | ############################################################################### |
| 26 | # "art" APEX namespace: used for libadbdconnection_server |
| 27 | ############################################################################### |
| 28 | namespace.art.isolated = true |
| 29 | namespace.art.search.paths = /apex/com.android.art/${LIB} |
| 30 | namespace.art.asan.search.paths = /apex/com.android.art/${LIB} |
| 31 | namespace.art.links = platform |
| 32 | namespace.art.link.platform.allow_all_shared_libs = true |
| 33 | |
| 34 | ############################################################################### |
| 35 | # "platform" namespace: used for NDK libraries, and libadbd_auth |
| 36 | ############################################################################### |
| 37 | namespace.platform.isolated = true |
| 38 | namespace.platform.search.paths = /system/${LIB} |
| 39 | namespace.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. |
| 50 | namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |
| 51 | namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |