blob: 8c78528ed638d60b7af6184a6d4cb57f0af497d2 [file] [log] [blame]
Yu Liu6a7940c2023-05-09 17:12:22 -07001// Copyright 2023 Google Inc. All rights reserved.
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
15package genrule
16
Yu Liu6a7940c2023-05-09 17:12:22 -070017var (
18 DepfileAllowList = []string{
Cole Faustdc3c1452023-10-11 12:28:51 -070019 // go/keep-sorted start
Yu Liu6a7940c2023-05-09 17:12:22 -070020 "depfile_allowed_for_test",
Cole Faustdc3c1452023-10-11 12:28:51 -070021 "gen_uwb_core_proto",
22 "libtextclassifier_fbgen_actions_actions-entity-data",
23 "libtextclassifier_fbgen_actions_actions_model",
24 "libtextclassifier_fbgen_annotator_datetime_datetime",
25 "libtextclassifier_fbgen_annotator_entity-data",
26 "libtextclassifier_fbgen_annotator_experimental_experimental",
27 "libtextclassifier_fbgen_annotator_model",
28 "libtextclassifier_fbgen_annotator_person_name_person_name_model",
29 "libtextclassifier_fbgen_lang_id_common_flatbuffers_embedding-network",
30 "libtextclassifier_fbgen_lang_id_common_flatbuffers_model",
31 "libtextclassifier_fbgen_utils_codepoint-range",
32 "libtextclassifier_fbgen_utils_container_bit-vector",
33 "libtextclassifier_fbgen_utils_flatbuffers_flatbuffers",
34 "libtextclassifier_fbgen_utils_flatbuffers_flatbuffers_test",
35 "libtextclassifier_fbgen_utils_grammar_rules",
36 "libtextclassifier_fbgen_utils_grammar_semantics_expression",
37 "libtextclassifier_fbgen_utils_grammar_testing_value",
38 "libtextclassifier_fbgen_utils_i18n_language-tag",
39 "libtextclassifier_fbgen_utils_intents_intent-config",
40 "libtextclassifier_fbgen_utils_lua_utils_tests",
41 "libtextclassifier_fbgen_utils_normalization",
42 "libtextclassifier_fbgen_utils_resources",
43 "libtextclassifier_fbgen_utils_tflite_text_encoder_config",
44 "libtextclassifier_fbgen_utils_tokenizer",
45 "libtextclassifier_fbgen_utils_zlib_buffer",
Cole Faust10b31342023-10-06 12:00:32 -070046 "tflite_support_metadata_schema",
Yu Liu6a7940c2023-05-09 17:12:22 -070047 "tflite_support_spm_config",
48 "tflite_support_spm_encoder_config",
Cole Faustdc3c1452023-10-11 12:28:51 -070049 // go/keep-sorted end
Yu Liu6a7940c2023-05-09 17:12:22 -070050 }
51
52 SandboxingDenyModuleList = []string{
Cole Faustdc3c1452023-10-11 12:28:51 -070053 // go/keep-sorted start
Yu Liu6a7940c2023-05-09 17:12:22 -070054 "AudioFocusControlProtoStub_cc",
55 "AudioFocusControlProtoStub_h",
Yu Liu6a7940c2023-05-09 17:12:22 -070056 "BlueberryFacadeAndCertGeneratedStub_py",
57 "BlueberryFacadeGeneratedStub_cc",
58 "BlueberryFacadeGeneratedStub_h",
Cole Faustdc3c1452023-10-11 12:28:51 -070059 "BluetoothGeneratedDumpsysBinarySchema_bfbs",
Yu Liu6a7940c2023-05-09 17:12:22 -070060 "BluetoothGeneratedDumpsysDataSchema_h",
Cole Faust8a253452023-10-05 19:51:17 -070061 "ControlEnvProxyServerProto_cc",
62 "ControlEnvProxyServerProto_h",
Cole Faust8a253452023-10-05 19:51:17 -070063 "CtsApkVerityTestDebugFiles",
Cole Faustdc3c1452023-10-11 12:28:51 -070064 "FrontendStub_cc",
65 "FrontendStub_h",
66 "HeadlessBuildTimestamp",
67 "ImageProcessing-rscript",
68 "ImageProcessing2-rscript",
69 "ImageProcessingJB-rscript",
Cole Faust8a253452023-10-05 19:51:17 -070070 "MultiDexLegacyTestApp_genrule",
Cole Faust8a253452023-10-05 19:51:17 -070071 "PackageManagerServiceServerTests_apks_as_resources",
Cole Faustdc3c1452023-10-11 12:28:51 -070072 "PacketStreamerStub_cc",
73 "PacketStreamerStub_h",
74 "RSTest-rscript",
75 "RSTest_v11-rscript",
76 "RSTest_v14-rscript",
77 "RSTest_v16-rscript",
78 "Refocus-rscript",
79 "RsBalls-rscript",
80 "ScriptGroupTest-rscript",
81 "TracingVMProtoStub_cc",
82 "TracingVMProtoStub_h",
Cole Faust8a253452023-10-05 19:51:17 -070083 "UpdatableSystemFontTest_NotoColorEmojiV0.sig",
84 "UpdatableSystemFontTest_NotoColorEmojiV0.ttf",
85 "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig",
86 "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf",
87 "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig",
88 "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf",
Cole Faustdc3c1452023-10-11 12:28:51 -070089 "VehicleServerProtoStub_cc",
90 "VehicleServerProtoStub_cc@2.0-grpc-trout",
91 "VehicleServerProtoStub_cc@default-grpc",
92 "VehicleServerProtoStub_h",
93 "VehicleServerProtoStub_h@2.0-grpc-trout",
94 "VehicleServerProtoStub_h@default-grpc",
95 "aidl-golden-test-build-hook-gen",
96 "aidl_camera_build_version",
97 "android-cts-verifier",
Cole Faust8a253452023-10-05 19:51:17 -070098 "android-support-multidex-instrumentation-version",
99 "android-support-multidex-version",
Cole Faustdc3c1452023-10-11 12:28:51 -0700100 "angle_commit_id",
Cole Faust8a253452023-10-05 19:51:17 -0700101 "apexer_test_host_tools",
Cole Faustdc3c1452023-10-11 12:28:51 -0700102 "atest_integration_fake_src",
103 "authfs_test_apk_assets",
104 "awkgram.tab.h",
105 "bluetooth_core_rust_packets",
106 "c2hal_test_genc++",
107 "c2hal_test_genc++_headers",
108 "camera-its",
109 "checkIn-service-stub-lite",
110 "chre_atoms_log.h",
111 "com.android.apex.apkrollback.test.pem",
112 "com.android.apex.apkrollback.test.pubkey",
Cole Faust8a253452023-10-05 19:51:17 -0700113 "com.android.apex.cts.shim.debug.pem",
114 "com.android.apex.cts.shim.debug.pubkey",
115 "com.android.apex.cts.shim.pem",
116 "com.android.apex.cts.shim.pubkey",
117 "com.android.apex.cts.shim.v2_no_pb",
118 "com.android.apex.cts.shim.v2_signed_bob",
119 "com.android.apex.cts.shim.v2_signed_bob_rot",
120 "com.android.apex.cts.shim.v2_signed_bob_rot_rollback",
121 "com.android.apex.cts.shim.v2_unsigned_apk_container",
122 "com.android.apex.cts.shim.v3_signed_bob",
123 "com.android.apex.cts.shim.v3_signed_bob_rot",
124 "com.android.apex.cts.shim_not_pre_installed.pem",
125 "com.android.apex.cts.shim_not_pre_installed.pubkey",
126 "com.android.apex.rotation.key.bob.pem",
127 "com.android.apex.rotation.key.bob.pk8",
Cole Faust8a253452023-10-05 19:51:17 -0700128 "com.android.apex.rotation.key.bob.rot",
Cole Faustdc3c1452023-10-11 12:28:51 -0700129 "com.android.apex.rotation.key.bob.rot.rollback",
Cole Faust8a253452023-10-05 19:51:17 -0700130 "com.android.apex.rotation.key.bob.x509.pem",
Cole Faustdc3c1452023-10-11 12:28:51 -0700131 "com.android.apex.test.bar_stripped",
132 "com.android.apex.test.baz_stripped",
133 "com.android.apex.test.foo_stripped",
134 "com.android.apex.test.pony_stripped",
135 "com.android.apex.test.sharedlibs_generated",
136 "com.android.apex.test.sharedlibs_secondary_generated",
137 "com.android.overlaytest.overlaid.pem",
138 "com.android.overlaytest.overlaid.pubkey",
139 "com.android.overlaytest.overlay.pem",
140 "com.android.overlaytest.overlay.pubkey",
141 "common-profile-text-protos",
142 "core-tests-smali-dex",
143 "cronet_aml_base_android_runtime_jni_headers",
144 "cronet_aml_base_android_runtime_jni_headers__testing",
145 "cronet_aml_base_android_runtime_unchecked_jni_headers",
146 "cronet_aml_base_android_runtime_unchecked_jni_headers__testing",
147 "deqp_spvtools_update_build_version",
148 "egl_extensions_functions_hdr",
149 "egl_functions_hdr",
150 "emp_ematch.yacc.c",
151 "emp_ematch.yacc.h",
152 "fdt_test_tree_empty_memory_range_dtb",
153 "fdt_test_tree_multiple_memory_ranges_dtb",
154 "fdt_test_tree_one_memory_range_dtb",
155 "futility_cmds",
156 "gd_hci_packets_python3_gen",
157 "gd_smp_packets_python3_gen",
158 "gen_corrupt_rebootless_apex",
159 "gen_corrupt_superblock_apex",
160 "gen_key_mismatch_capex",
161 "gen_manifest_mismatch_apex_no_hashtree",
Cole Faust8a253452023-10-05 19:51:17 -0700162 "generate_hash_v1",
Cole Faustdc3c1452023-10-11 12:28:51 -0700163 "gles1_core_functions_hdr",
164 "gles1_extensions_functions_hdr",
165 "gles2_core_functions_hdr",
166 "gles2_extensions_functions_hdr",
167 "gles31_only_functions_hdr",
168 "gles3_only_functions_hdr",
169 "hci_packets_python3_gen",
170 "hidl2aidl_test_gen_aidl",
171 "hidl2aidl_translate_cpp_test_gen_headers",
172 "hidl2aidl_translate_cpp_test_gen_src",
173 "hidl2aidl_translate_java_test_gen_src",
174 "hidl2aidl_translate_ndk_test_gen_headers",
175 "hidl2aidl_translate_ndk_test_gen_src",
176 "hidl_cpp_impl_test_gen-headers",
177 "hidl_cpp_impl_test_gen-sources",
178 "hidl_error_test_gen",
179 "hidl_export_test_gen-headers",
180 "hidl_format_test_diff",
181 "hidl_hash_test_gen",
182 "hidl_hash_version_gen",
183 "hidl_java_impl_test_gen",
184 "lib-test-profile-text-protos",
185 "libbssl_sys_src_nostd",
186 "libbt_topshim_facade_py_proto",
187 "libc_musl_sysroot_bits",
188 "libchrome-crypto-include",
189 "libchrome-include",
190 "libcore-non-cts-tests-txt",
191 "libmojo_jni_headers",
192 "libxml2_schema_fuzz_corpus",
193 "libxml2_xml_fuzz_corpus",
194 "link_layer_packets_python3_gen",
195 "llcp_packets_python3_gen",
196 "ltp_config_arm",
197 "ltp_config_arm_64",
198 "ltp_config_arm_64_hwasan",
199 "ltp_config_arm_64_lowmem",
200 "ltp_config_arm_64_lowmem_hwasan",
201 "ltp_config_arm_lowmem",
202 "ltp_config_riscv_64",
203 "ltp_config_x86",
204 "ltp_config_x86_64",
205 "measure_io_as_jar",
206 "nos_app_avb_service_genc++",
207 "nos_app_avb_service_genc++_headers",
208 "nos_app_avb_service_genc++_mock",
209 "nos_app_identity_service_genc++",
210 "nos_app_identity_service_genc++_headers",
211 "nos_app_identity_service_genc++_mock",
212 "nos_app_keymaster_service_genc++",
213 "nos_app_keymaster_service_genc++_headers",
214 "nos_app_keymaster_service_genc++_mock",
215 "nos_app_weaver_service_genc++",
216 "nos_app_weaver_service_genc++_headers",
217 "nos_app_weaver_service_genc++_mock",
218 "nos_generator_test_service_genc++",
219 "nos_generator_test_service_genc++_headers",
220 "nos_generator_test_service_genc++_mock",
221 "openwrt_rootfs_combined_aarch64",
222 "openwrt_rootfs_combined_x86_64",
223 "openwrt_rootfs_customization_aarch64",
224 "openwrt_rootfs_customization_x86_64",
225 "pandora-python-gen-src",
226 "pdl_cxx_canonical_be_src_gen",
227 "pdl_cxx_canonical_be_test_gen",
228 "pdl_cxx_canonical_le_src_gen",
229 "pdl_cxx_canonical_le_test_gen",
230 "pdl_python_generator_be_test_gen",
231 "pdl_python_generator_le_test_gen",
232 "pdl_rust_noalloc_le_test_backend_srcs",
233 "pdl_rust_noalloc_le_test_gen_harness",
234 "pixelatoms_defs.h",
235 "pixelstatsatoms.cpp",
236 "pixelstatsatoms.h",
237 "pvmfw_fdt_template_rs",
238 "r8retrace-dexdump-sample-app",
239 "r8retrace-run-retrace",
240 "rootcanal_bredr_bb_packets_cxx_gen",
241 "rootcanal_hci_packets_cxx_gen",
242 "rootcanal_link_layer_packets_cxx_gen",
243 "sample-profile-text-protos",
Cole Faust10b31342023-10-06 12:00:32 -0700244 "seller-frontend-service-stub-lite",
Cole Faustdc3c1452023-10-11 12:28:51 -0700245 "services.core.protologsrc",
246 "statsd-config-protos",
247 "swiftshader_spvtools_update_build_version",
248 "temp_layoutlib",
249 "ue_unittest_erofs_imgs",
250 "uwb_core_artifacts",
251 "vm-tests-tf-lib",
252 "vndk_abi_dump_zip",
253 "vts_vndk_abi_dump_zip",
254 "wm_shell_protolog_src",
255 "wmtests.protologsrc",
256 // go/keep-sorted end
Yu Liu6a7940c2023-05-09 17:12:22 -0700257 }
258
259 SandboxingDenyPathList = []string{
Cole Faustdc3c1452023-10-11 12:28:51 -0700260 // go/keep-sorted start
Yu Liu6a7940c2023-05-09 17:12:22 -0700261 "art/test",
Cole Faust8a253452023-10-05 19:51:17 -0700262 "external/cronet",
Cole Faustdc3c1452023-10-11 12:28:51 -0700263 "external/perfetto",
264 // go/keep-sorted end
Yu Liu6a7940c2023-05-09 17:12:22 -0700265 }
266)