Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 1 | # Copyright (C) 2018 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file for the Runtime APEX. |
| 4 | # |
| 5 | # There are no versioned APEX paths here - this APEX module does not support |
| 6 | # having several versions mounted. |
| 7 | |
| 8 | dir.runtime = /apex/com.android.runtime/bin/ |
| 9 | |
| 10 | [runtime] |
Nicolas Geoffray | 584bebe | 2019-01-26 01:07:35 +0000 | [diff] [blame] | 11 | additional.namespaces = platform,conscrypt,runtime |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 12 | |
Martin Stjernholm | 70a7611 | 2019-01-22 14:27:54 +0000 | [diff] [blame] | 13 | # Keep in sync with the runtime namespace in /system/etc/ld.config.txt. |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 14 | namespace.default.isolated = true |
Martin Stjernholm | 70a7611 | 2019-01-22 14:27:54 +0000 | [diff] [blame] | 15 | # Visible because some libraries are dlopen'ed, e.g. libopenjdk is dlopen'ed by |
| 16 | # libart. |
| 17 | namespace.default.visible = true |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 18 | namespace.default.search.paths = /apex/com.android.runtime/${LIB} |
Jiyong Park | f8d8eb9 | 2019-01-24 15:06:21 +0900 | [diff] [blame] | 19 | namespace.default.asan.search.paths = /apex/com.android.runtime/${LIB} |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 20 | # odex files are in /system/framework. dalvikvm has to be able to dlopen the |
| 21 | # files for CTS. |
| 22 | namespace.default.permitted.paths = /system/framework |
| 23 | namespace.default.links = platform |
| 24 | # TODO(b/119867084): Restrict fallback to platform namespace to PALette library. |
| 25 | namespace.default.link.platform.allow_all_shared_libs = true |
| 26 | |
Martin Stjernholm | 70a7611 | 2019-01-22 14:27:54 +0000 | [diff] [blame] | 27 | # Keep in sync with the default namespace in /system/etc/ld.config.txt. |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 28 | namespace.platform.isolated = true |
| 29 | namespace.platform.search.paths = /system/${LIB} |
Jiyong Park | f8d8eb9 | 2019-01-24 15:06:21 +0900 | [diff] [blame] | 30 | namespace.platform.asan.search.paths = /data/asan/system/${LIB} |
Martin Stjernholm | 799ad14 | 2018-12-19 20:37:27 +0000 | [diff] [blame] | 31 | namespace.platform.links = default |
Jiyong Park | 72209a8 | 2019-01-09 08:30:31 +0900 | [diff] [blame] | 32 | namespace.platform.link.default.shared_libs = libart.so:libartd.so |
Martin Stjernholm | 8ab9c57 | 2018-12-21 22:32:48 +0000 | [diff] [blame] | 33 | namespace.platform.link.default.shared_libs += libnativebridge.so |
| 34 | namespace.platform.link.default.shared_libs += libnativehelper.so |
| 35 | namespace.platform.link.default.shared_libs += libnativeloader.so |
Nicolas Geoffray | 37498de | 2019-01-22 08:46:34 +0000 | [diff] [blame] | 36 | |
Nicolas Geoffray | 0299fad | 2019-01-22 14:50:29 +0000 | [diff] [blame] | 37 | # Note that we don't need to link the default namespace with conscrypt: |
| 38 | # the runtime Java code and binaries do not explicitly load native libraries |
| 39 | # from it. |
| 40 | |
Nicolas Geoffray | 37498de | 2019-01-22 08:46:34 +0000 | [diff] [blame] | 41 | ############################################################################### |
| 42 | # "conscrypt" APEX namespace |
| 43 | # |
| 44 | # This namespace is for libraries within the conscrypt APEX. |
| 45 | ############################################################################### |
Nicolas Geoffray | 0299fad | 2019-01-22 14:50:29 +0000 | [diff] [blame] | 46 | |
| 47 | # Keep in sync with conscrypt namespace in /system/etc/ld.config.txt. |
Nicolas Geoffray | 37498de | 2019-01-22 08:46:34 +0000 | [diff] [blame] | 48 | namespace.conscrypt.isolated = true |
| 49 | namespace.conscrypt.visible = true |
| 50 | |
| 51 | namespace.conscrypt.search.paths = /apex/com.android.conscrypt/${LIB} |
Jiyong Park | f8d8eb9 | 2019-01-24 15:06:21 +0900 | [diff] [blame] | 52 | namespace.conscrypt.asan.search.paths = /apex/com.android.conscrypt/${LIB} |
Nicolas Geoffray | 37498de | 2019-01-22 08:46:34 +0000 | [diff] [blame] | 53 | namespace.conscrypt.links = platform |
| 54 | namespace.conscrypt.link.platform.shared_libs = libc.so |
| 55 | namespace.conscrypt.link.platform.shared_libs += libm.so |
| 56 | namespace.conscrypt.link.platform.shared_libs += libdl.so |
Nicolas Geoffray | 584bebe | 2019-01-26 01:07:35 +0000 | [diff] [blame] | 57 | |
| 58 | ############################################################################### |
| 59 | # "runtime" APEX namespace |
| 60 | # |
| 61 | # This namespace is an alias for the default namespace. |
| 62 | ############################################################################### |
| 63 | namespace.runtime.isolated = true |
| 64 | namespace.runtime.visible = true |
| 65 | namespace.runtime.links = default |
| 66 | namespace.runtime.link.default.allow_all_shared_libs = true |
Nicolas Geoffray | 4271e9f | 2019-01-28 10:17:01 +0000 | [diff] [blame] | 67 | namespace.runtime.links += platform |
Nicolas Geoffray | 584bebe | 2019-01-26 01:07:35 +0000 | [diff] [blame] | 68 | # TODO(b/119867084): Restrict fallback to platform namespace to PALette library. |
| 69 | namespace.runtime.link.platform.allow_all_shared_libs = true |