blob: 2daeeac23509369f243dac06d2f3cf10f428a533 [file] [log] [blame]
Chong Zhang9bda4522019-02-27 13:43:50 -08001# Copyright (C) 2019 The Android Open Source Project
2#
3# Bionic loader config file for the media swcodec APEX.
4#
5# There are no versioned APEX paths here - this APEX module does not support
6# having several versions mounted.
7
8dir.swcodec = /apex/com.android.media.swcodec/bin/
9
10[swcodec]
11additional.namespaces = platform
12
13###############################################################################
14# "default" namespace
15#
16# This namespace is for the binaries and libraries on the swcodec APEX.
17###############################################################################
18
19namespace.default.isolated = true
20namespace.default.visible = true
21
22namespace.default.search.paths = /apex/com.android.media.swcodec/${LIB}
23namespace.default.asan.search.paths = /apex/com.android.media.swcodec/${LIB}
24
25# Keep the below in sync with "sphal" namespace in system's /etc/ld.config.txt
26# Codec2 has dependencies on some SP-hals (eg. android.hardware.graphics.mapper@2.0)
27# These are dlopen'ed by libvndksupport.so.
28namespace.default.search.paths += /odm/${LIB}
29namespace.default.search.paths += /vendor/${LIB}
30
31namespace.default.permitted.paths = /odm/${LIB}
32namespace.default.permitted.paths += /vendor/${LIB}
33namespace.default.permitted.paths += /vendor/${LIB}/hw
34namespace.default.permitted.paths += /system/vendor/${LIB}
35
36namespace.default.asan.search.paths += /data/asan/odm/${LIB}
37namespace.default.asan.search.paths += /odm/${LIB}
38namespace.default.asan.search.paths += /data/asan/vendor/${LIB}
39namespace.default.asan.search.paths += /vendor/${LIB}
40
41namespace.default.asan.permitted.paths = /data/asan/odm/${LIB}
42namespace.default.asan.permitted.paths += /odm/${LIB}
43namespace.default.asan.permitted.paths += /data/asan/vendor/${LIB}
44namespace.default.asan.permitted.paths += /vendor/${LIB}
45
46namespace.default.links = platform
47
48# TODO: replace the following when apex has a way to auto-generate this list
49# namespace.default.link.platform.shared_libs = %LLNDK_LIBRARIES%
50# namespace.default.link.platform.shared_libs += %SANITIZER_RUNTIME_LIBRARIES%
Yifan Hong034e53e2019-03-29 13:10:53 -070051namespace.default.link.platform.shared_libs = libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libc.so:libcgrouprc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.hwasan-aarch64-android.so:libclang_rt.asan-i686-android.so:libclang_rt.asan-x86_64-android.so:libdl.so:libft2.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libsync.so:libvndksupport.so:libvulkan.so
Wonsik Kimc1d75d42019-03-29 11:33:56 -070052# FIXME: b/129552044
53namespace.default.link.platform.shared_libs += libz.so
Chong Zhang9bda4522019-02-27 13:43:50 -080054
55###############################################################################
56# "platform" namespace
57#
58# This namespace is for linking to LLNDK and ASAN libraries on the system.
59###############################################################################
60
61namespace.platform.isolated = true
62
63namespace.platform.search.paths = /system/${LIB}
64namespace.platform.asan.search.paths = /data/asan/system/${LIB}
65
Dongwon Kang82022c12019-03-18 11:53:26 -070066# /system/lib/libc.so, etc are symlinks to /apex/com.android.lib/lib/bionic/libc.so, etc.
Jiyong Parkc21e52b2019-03-09 17:26:48 +090067# Add /apex/... pat to the permitted paths because linker uses realpath(3)
Chong Zhang9bda4522019-02-27 13:43:50 -080068# to check the accessibility of the lib. We could add this to search.paths
69# instead but that makes the resolution of bionic libs be dependent on
Jiyong Parkc21e52b2019-03-09 17:26:48 +090070# the order of /system/lib and /apex/... in search.paths. If /apex/...
71# is after /system/lib, then /apex/... is never tried because libc.so
Chong Zhang9bda4522019-02-27 13:43:50 -080072# is always found in /system/lib but fails to pass the accessibility test
73# because of its realpath. It's better to not depend on the ordering if
74# possible.
Jiyong Parkc21e52b2019-03-09 17:26:48 +090075namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
76namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic