| # Copyright (C) 2018 The Android Open Source Project |
| # |
| # Bionic loader config file for the ART APEX. |
| # |
| # There are no versioned APEX paths here - this APEX module does not support |
| # having several versions mounted. |
| |
| dir.art = /apex/com.android.art/bin/ |
| |
| [art] |
| additional.namespaces = platform,conscrypt,art |
| |
| # The default namespace here only links to other namespaces, in particular "art" |
| # where the real library loading takes place. Any outgoing links from "art" also |
| # need to be present here. |
| namespace.default.isolated = true |
| namespace.default.links = art,platform |
| namespace.default.link.art.allow_all_shared_libs = true |
| namespace.default.link.platform.allow_all_shared_libs = true |
| |
| ############################################################################### |
| # "art" APEX namespace |
| # |
| # This is the local namespace of this APEX, with the proper name "art" to make |
| # links created e.g. through android_link_namespace work consistently with the |
| # platform linker config. |
| ############################################################################### |
| namespace.art.isolated = true |
| # Visible to allow links to be created at runtime, e.g. through |
| # android_link_namespaces in libnativeloader. |
| namespace.art.visible = true |
| |
| # Keep in sync with the "art" namespace in system/core/rootdir/etc/ld.config*.txt. |
| namespace.art.search.paths = /apex/com.android.art/${LIB} |
| namespace.art.asan.search.paths = /apex/com.android.art/${LIB} |
| # JVMTI libraries used in ART testing are located under /data; dalvikvm |
| # has to be able to dlopen them. |
| # TODO(b/129534335): Move this to the linker configuration of the Test |
| # ART APEX when it is available. |
| namespace.art.permitted.paths = /data |
| # odex files are in /system/framework. dalvikvm has to be able to dlopen the |
| # files for CTS. |
| namespace.art.permitted.paths += /system/framework |
| namespace.art.links = platform |
| # Need allow_all_shared_libs because libart.so can dlopen oat files in |
| # /system/framework and /data. |
| # TODO(b/130340935): Use a dynamically created linker namespace similar to |
| # classloader-namespace for oat files, and tighten this up. |
| namespace.art.link.platform.allow_all_shared_libs = true |
| |
| ############################################################################### |
| # "platform" namespace |
| # |
| # Corresponds to the default namespace in /system/etc/ld.config.txt. Please keep |
| # in sync with linker config files in system/core/rootdir/etc. |
| ############################################################################### |
| namespace.platform.isolated = true |
| # Visible to allow links to be created at runtime, e.g. through |
| # android_link_namespaces in libnativeloader. |
| namespace.platform.visible = true |
| |
| namespace.platform.search.paths = /system/${LIB} |
| namespace.platform.asan.search.paths = /data/asan/system/${LIB} |
| |
| # This is only a subset of platform default namespace permitted paths, and might |
| # need extension. |
| namespace.default.permitted.paths = /data |
| namespace.default.permitted.paths += /system/framework |
| namespace.default.asan.permitted.paths = /data |
| namespace.default.asan.permitted.paths += /system/framework |
| |
| namespace.platform.links = art |
| namespace.platform.link.art.shared_libs = libandroidicu.so |
| namespace.platform.link.art.shared_libs += libdexfile_external.so |
| namespace.platform.link.art.shared_libs += libdexfiled_external.so |
| # TODO(b/120786417 or b/134659294): libicuuc.so and libicui18n.so are kept for app compat. |
| namespace.platform.link.art.shared_libs += libicui18n.so |
| namespace.platform.link.art.shared_libs += libicuuc.so |
| namespace.platform.link.art.shared_libs += libnativebridge.so |
| namespace.platform.link.art.shared_libs += libnativehelper.so |
| namespace.platform.link.art.shared_libs += libnativeloader.so |
| |
| # TODO(b/122876336): Remove libpac.so once it's migrated to Webview |
| namespace.platform.link.art.shared_libs += libpac.so |
| |
| # /system/lib/libc.so, etc are symlinks to |
| # /apex/com.android.runtime/lib/bionic/libc.so, etc. Add the path to the |
| # permitted paths because linker uses realpath(3) to check the accessibility |
| # of the lib. We could add this to search.paths instead but that makes the |
| # resolution of bionic libs be dependent on the order of /system/lib and |
| # /apex/.../lib/bionic in search.paths. If the latter is after the former, |
| # then the latter is never tried because libc.so is always found in |
| # /system/lib but fails to pass the accessibility test because of its realpath. |
| # It's better to not depend on the ordering if possible. |
| namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |
| namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |
| |
| # Note that we don't need to link the art namespace with conscrypt: |
| # the runtime Java code and binaries do not explicitly load native libraries |
| # from it. |
| |
| ############################################################################### |
| # "conscrypt" APEX namespace |
| # |
| # This namespace is for libraries within the conscrypt APEX. |
| ############################################################################### |
| |
| # Keep in sync with the "conscrypt" namespace in system/core/rootdir/etc/ld.config*.txt. |
| namespace.conscrypt.isolated = true |
| namespace.conscrypt.visible = true |
| |
| namespace.conscrypt.search.paths = /apex/com.android.conscrypt/${LIB} |
| namespace.conscrypt.asan.search.paths = /apex/com.android.conscrypt/${LIB} |
| namespace.conscrypt.links = art,platform |
| namespace.conscrypt.link.art.shared_libs = libandroidio.so |
| namespace.conscrypt.link.platform.shared_libs = libc.so |
| namespace.conscrypt.link.platform.shared_libs += libm.so |
| namespace.conscrypt.link.platform.shared_libs += libdl.so |
| namespace.conscrypt.link.platform.shared_libs += liblog.so |