blob: 1ec2bc0198ff2ae3131bf8c24f1856e64529f4e4 [file] [log] [blame]
Dimitry Ivanovee34aec2017-02-15 14:11:18 -08001# Copyright (C) 2017 The Android Open Source Project
2#
3# Bionic loader config file.
4#
5
Jiyong Park450cff42017-04-05 14:24:14 +09006# Don't change the order here.
7dir.system = /system/bin/
8dir.system = /system/xbin/
9dir.vendor = /vendor/bin/
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080010
11[system]
Jiyong Park450cff42017-04-05 14:24:14 +090012additional.namespaces = sphal,vndk,rs
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080013
Jiyong Park450cff42017-04-05 14:24:14 +090014###############################################################################
15# "default" namespace
16#
17# Framework-side code runs in this namespace. Anything from /vendor partition
18# can't be loaded in this namespace.
19###############################################################################
20namespace.default.isolated = false
21namespace.default.search.paths = /system/${LIB}:/vendor/${LIB}
22namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB}
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080023
Jiyong Park450cff42017-04-05 14:24:14 +090024# TODO(b/37013858): remove all dependencies to /vendor/lib from system processes
25# When this is done, comment out following three lines and remove the three
26# lines above
27#namespace.default.isolated = true
28#namespace.default.search.paths = /system/${LIB}
29#namespace.default.permitted.paths = /system/${LIB}
30
31###############################################################################
32# "sphal" namespace
33#
34# SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be
35# loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so,
36# android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs.
37#
38# This namespace is exclusivly for SP-HALs. When the framework tries to dynami-
39# cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying
40# that they should be searched and loaded from this namespace.
41#
42# Note that there is no link from the default namespace to this namespace.
43###############################################################################
44namespace.sphal.isolated = true
45namespace.sphal.visible = true
46namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB}
47namespace.sphal.permitted.paths = /vendor/${LIB}
48
49# Once in this namespace, access to libraries in /system/lib is restricted. Only
50# libs listed here can be used.
51namespace.sphal.links = default,vndk
52
53# WARNING: only NDK libs can be listed here.
54# However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc)
Jiyong Park7b701de2017-04-18 08:10:57 +090055# are currently using some non-stable libs such as libbacktrace.so. We will get back
Jiyong Park450cff42017-04-05 14:24:14 +090056# to this list once the dependencies are fixed.
57#namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so
Jiyong Park7b701de2017-04-18 08:10:57 +090058namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libbacktrace.so:libGLESv1_CM.so:libGLESv2.so
Jiyong Park450cff42017-04-05 14:24:14 +090059
60# WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line.
61namespace.sphal.link.vndk.shared_libs = android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.base@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidltransport.so:libutils.so:libc++.so
62
63###############################################################################
64# "vndk" namespace
65#
66# This namespace is exclusively for vndk-sp libs.
67###############################################################################
68namespace.vndk.isolated = true
69namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/vendor/${LIB}
70namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl
71
72# When these NDK libs are required inside this namespace, then it is redirected
73# to the default namespace. This is possible since their ABI is stable across
74# Android releases.
75namespace.vndk.links = default
76
77# WARNING: only NDK libs can be listed here.
78# However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc)
Jiyong Park7b701de2017-04-18 08:10:57 +090079# are currently using some non-stable libs such as libacktrace.so. We will get back
Jiyong Park450cff42017-04-05 14:24:14 +090080# to this list once the dependencies are fixed.
81#namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so
Jiyong Park7b701de2017-04-18 08:10:57 +090082namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libbacktrace.so
Jiyong Park450cff42017-04-05 14:24:14 +090083
84
85[vendor]
86namespace.default.isolated = false
87namespace.default.search.paths = /vendor/${LIB}:/vendor/${LIB}/vndk-sp:/system/${LIB}