1# Copyright (C) 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15dir.system=/system
16dir.system=/data
17
18[system]
19namespace.default.visible = true
20namespace.default.isolated = false
21namespace.default.search.paths  = /system/${LIB}/riscv64/bootstrap
22namespace.default.search.paths += /system/${LIB}/riscv64
23namespace.default.permitted.paths = /system/${LIB}/riscv64
24
25namespace.default.asan.search.paths = /data/asan/system/${LIB}/riscv64:/system/${LIB}/riscv64
26namespace.default.asan.permitted.paths = /data/asan/system/${LIB}/riscv64:/system/${LIB}/riscv64
27
28
29###############################################################################
30# "com_android_neuralnetworks" APEX namespace (currently fake)
31# TODO(b/142108150): turn it into a proper APEX.
32###############################################################################
33
34additional.namespaces = com_android_neuralnetworks
35
36namespace.default.links = com_android_neuralnetworks
37namespace.default.link.com_android_neuralnetworks.shared_libs = libneuralnetworks.so
38
39namespace.com_android_neuralnetworks.isolated = true
40namespace.com_android_neuralnetworks.visible = true
41namespace.com_android_neuralnetworks.permitted.paths = /system/${LIB}/riscv64
42
43namespace.com_android_neuralnetworks.search.paths = /system/${LIB}/riscv64
44namespace.com_android_neuralnetworks.asan.search.paths = /system/${LIB}/riscv64
45namespace.com_android_neuralnetworks.links = default
46namespace.com_android_neuralnetworks.link.default.shared_libs  = linux-vdso.so.1
47namespace.com_android_neuralnetworks.link.default.shared_libs += libcutils.so
48namespace.com_android_neuralnetworks.link.default.shared_libs += liblog.so
49namespace.com_android_neuralnetworks.link.default.shared_libs += libnativewindow.so
50namespace.com_android_neuralnetworks.link.default.shared_libs += libutils.so
51namespace.com_android_neuralnetworks.link.default.shared_libs += libc++.so
52namespace.com_android_neuralnetworks.link.default.shared_libs += libc.so
53namespace.com_android_neuralnetworks.link.default.shared_libs += libm.so
54namespace.com_android_neuralnetworks.link.default.shared_libs += libdl.so
55
56
57###############################################################################
58# "com_android_i18n" APEX namespace (currently fake)
59# TODO(b/142108150): turn it into a proper APEX.
60###############################################################################
61
62additional.namespaces += com_android_i18n
63
64namespace.default.links += com_android_i18n
65namespace.default.link.com_android_i18n.shared_libs = libicuuc.so,libicui18n.so
66
67namespace.com_android_i18n.isolated = true
68namespace.com_android_i18n.visible = true
69namespace.com_android_i18n.permitted.paths = /system/${LIB}/riscv64
70
71namespace.com_android_i18n.search.paths = /system/${LIB}/riscv64
72namespace.com_android_i18n.asan.search.paths = /system/${LIB}/riscv64
73namespace.com_android_i18n.links = default
74namespace.com_android_i18n.link.default.shared_libs  = linux-vdso.so.1
75namespace.com_android_i18n.link.default.shared_libs += libc++.so
76namespace.com_android_i18n.link.default.shared_libs += libc.so
77namespace.com_android_i18n.link.default.shared_libs += libm.so
78namespace.com_android_i18n.link.default.shared_libs += libdl.so
79
80
81###############################################################################
82# "com_android_art" APEX namespace (currently fake)
83# TODO(b/142108150): turn it into a proper APEX.
84###############################################################################
85
86additional.namespaces += com_android_art
87
88namespace.default.links += com_android_art
89namespace.default.link.com_android_art.shared_libs = libnativehelper.so
90
91namespace.com_android_art.isolated = true
92namespace.com_android_art.visible = true
93namespace.com_android_art.permitted.paths = /system/${LIB}/riscv64
94
95namespace.com_android_art.search.paths = /system/${LIB}/riscv64
96namespace.com_android_art.asan.search.paths = /system/${LIB}/riscv64
97namespace.com_android_art.links = default
98namespace.com_android_art.link.default.shared_libs  = linux-vdso.so.1
99namespace.com_android_art.link.default.shared_libs += libc.so
100namespace.com_android_art.link.default.shared_libs += libm.so
101namespace.com_android_art.link.default.shared_libs += libdl.so
102