1dir.myapex = /apex/com.android.apex.test/bin
2
3[myapex]
4additional.namespaces = sphal,vndk
5
6namespace.default.search.paths  = /apex/com.android.apex.test/${LIB}
7
8
9
10namespace.sphal.isolated = true
11namespace.sphal.visible = true
12
13namespace.sphal.search.paths  = /odm/${LIB}
14namespace.sphal.search.paths += /vendor/${LIB}
15
16namespace.sphal.permitted.paths  = /odm/${LIB}
17namespace.sphal.permitted.paths += /vendor/${LIB}
18
19# Once in this namespace, access to libraries in /system/lib is restricted. Only
20# libs listed here can be used.
21namespace.sphal.links = default,vndk
22
23namespace.sphal.link.default.shared_libs  = libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.hwasan-aarch64-android.so:libdl.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libsync.so:libvndksupport.so:libvulkan.so
24namespace.sphal.link.default.shared_libs += libclang_rt.asan-aarch64-android.so:libclang_rt.ubsan_standalone-aarch64-android.so:libclang_rt.tsan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.ubsan_standalone-arm-android.so:libclang_rt.tsan-arm-android.so
25
26namespace.sphal.link.vndk.shared_libs = android.hardware.graphics.common@1.0.so:android.hardware.graphics.common@1.1.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.mapper@2.1.so:android.hardware.renderscript@1.0.so:android.hidl.memory.token@1.0.so:android.hidl.memory@1.0.so:android.hidl.memory@1.0-impl.so:libRSCpuRef.so:libRSDriver.so:libRS_internal.so:libbase.so:libbcinfo.so:libc++.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libhwbinder.so:libhwbinder_noltopgo.so:libion.so:liblzma.so:libunwindstack.so:libutils.so:libutilscallstack.so:libz.so
27
28
29
30namespace.vndk.isolated = true
31namespace.vndk.visible = true
32
33namespace.vndk.search.paths  = /odm/${LIB}/vndk-sp
34namespace.vndk.search.paths += /vendor/${LIB}/vndk-sp
35namespace.vndk.search.paths += /system/${LIB}/vndk-sp-Q
36
37namespace.vndk.permitted.paths  = /odm/${LIB}/hw
38namespace.vndk.permitted.paths += /odm/${LIB}/egl
39namespace.vndk.permitted.paths += /vendor/${LIB}/hw
40namespace.vndk.permitted.paths += /vendor/${LIB}/egl
41# This is exceptionally required since android.hidl.memory@1.0-impl.so is here
42namespace.vndk.permitted.paths += /system/${LIB}/vndk-sp-Q/hw
43
44
45# The "vndk" namespace links to "default" namespace for LLNDK libs and links to
46# "sphal" namespace for vendor libs.  The ordering matters.  The "default"
47# namespace has higher priority than the "sphal" namespace.
48namespace.vndk.links = default,sphal
49
50# When these NDK libs are required inside this namespace, then it is redirected
51# to the default namespace. This is possible since their ABI is stable across
52# Android releases.
53namespace.vndk.link.default.shared_libs  = libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.hwasan-aarch64-android.so:libdl.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libsync.so:libvndksupport.so:libvulkan.so
54namespace.vndk.link.default.shared_libs += libclang_rt.asan-aarch64-android.so:libclang_rt.ubsan_standalone-aarch64-android.so:libclang_rt.tsan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.ubsan_standalone-arm-android.so:libclang_rt.tsan-arm-android.so
55
56# Allow VNDK-SP extensions to use vendor libraries
57namespace.vndk.link.sphal.allow_all_shared_libs = true
58
59