blob: d0145e4d76d683ed38ea22106bab38b14bd6d250 [file] [log] [blame]
Martin Stjernholm799ad142018-12-19 20:37:27 +00001# 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
8dir.runtime = /apex/com.android.runtime/bin/
9
10[runtime]
Nicolas Geoffray584bebe2019-01-26 01:07:35 +000011additional.namespaces = platform,conscrypt,runtime
Martin Stjernholm799ad142018-12-19 20:37:27 +000012
Martin Stjernholm70a76112019-01-22 14:27:54 +000013# Keep in sync with the runtime namespace in /system/etc/ld.config.txt.
Martin Stjernholm799ad142018-12-19 20:37:27 +000014namespace.default.isolated = true
Martin Stjernholm70a76112019-01-22 14:27:54 +000015# Visible because some libraries are dlopen'ed, e.g. libopenjdk is dlopen'ed by
16# libart.
17namespace.default.visible = true
Martin Stjernholm799ad142018-12-19 20:37:27 +000018namespace.default.search.paths = /apex/com.android.runtime/${LIB}
Jiyong Parkf8d8eb92019-01-24 15:06:21 +090019namespace.default.asan.search.paths = /apex/com.android.runtime/${LIB}
Martin Stjernholm799ad142018-12-19 20:37:27 +000020# odex files are in /system/framework. dalvikvm has to be able to dlopen the
21# files for CTS.
22namespace.default.permitted.paths = /system/framework
23namespace.default.links = platform
24# TODO(b/119867084): Restrict fallback to platform namespace to PALette library.
25namespace.default.link.platform.allow_all_shared_libs = true
26
Martin Stjernholm70a76112019-01-22 14:27:54 +000027# Keep in sync with the default namespace in /system/etc/ld.config.txt.
Martin Stjernholm799ad142018-12-19 20:37:27 +000028namespace.platform.isolated = true
29namespace.platform.search.paths = /system/${LIB}
Jiyong Parkf8d8eb92019-01-24 15:06:21 +090030namespace.platform.asan.search.paths = /data/asan/system/${LIB}
Martin Stjernholm799ad142018-12-19 20:37:27 +000031namespace.platform.links = default
Jiyong Park72209a82019-01-09 08:30:31 +090032namespace.platform.link.default.shared_libs = libart.so:libartd.so
Martin Stjernholm8ab9c572018-12-21 22:32:48 +000033namespace.platform.link.default.shared_libs += libnativebridge.so
34namespace.platform.link.default.shared_libs += libnativehelper.so
35namespace.platform.link.default.shared_libs += libnativeloader.so
Nicolas Geoffray37498de2019-01-22 08:46:34 +000036
Nicolas Geoffray0299fad2019-01-22 14:50:29 +000037# 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 Geoffray37498de2019-01-22 08:46:34 +000041###############################################################################
42# "conscrypt" APEX namespace
43#
44# This namespace is for libraries within the conscrypt APEX.
45###############################################################################
Nicolas Geoffray0299fad2019-01-22 14:50:29 +000046
47# Keep in sync with conscrypt namespace in /system/etc/ld.config.txt.
Nicolas Geoffray37498de2019-01-22 08:46:34 +000048namespace.conscrypt.isolated = true
49namespace.conscrypt.visible = true
50
51namespace.conscrypt.search.paths = /apex/com.android.conscrypt/${LIB}
Jiyong Parkf8d8eb92019-01-24 15:06:21 +090052namespace.conscrypt.asan.search.paths = /apex/com.android.conscrypt/${LIB}
Nicolas Geoffray37498de2019-01-22 08:46:34 +000053namespace.conscrypt.links = platform
54namespace.conscrypt.link.platform.shared_libs = libc.so
55namespace.conscrypt.link.platform.shared_libs += libm.so
56namespace.conscrypt.link.platform.shared_libs += libdl.so
Nicolas Geoffray584bebe2019-01-26 01:07:35 +000057
58###############################################################################
59# "runtime" APEX namespace
60#
61# This namespace is an alias for the default namespace.
62###############################################################################
63namespace.runtime.isolated = true
64namespace.runtime.visible = true
65namespace.runtime.links = default
66namespace.runtime.link.default.allow_all_shared_libs = true
Nicolas Geoffray4271e9f2019-01-28 10:17:01 +000067namespace.runtime.links += platform
Nicolas Geoffray584bebe2019-01-26 01:07:35 +000068# TODO(b/119867084): Restrict fallback to platform namespace to PALette library.
69namespace.runtime.link.platform.allow_all_shared_libs = true