summaryrefslogtreecommitdiff
path: root/android/neverallow.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2025-03-12 22:14:39 +0000
committer Jihoon Kang <jihoonkang@google.com> 2025-03-13 17:24:45 +0000
commit002767b80d8962e4ba882ca739871874556efdd8 (patch)
tree5cde1a8afd2a2c73c39badda3f719667cca8fc65 /android/neverallow.go
parent13342315b6256a1f2e7a1fe634244940567849ca (diff)
Introduce prebuilt_any module type
prebuilt_any is a "wildcard" module type that allows installing the files in any subdirectories within the partition. This module is only used for converting the PRODUCT_COPY_FILES in fsgen, and should not be written in the bp files. Test: m nothing --no-skip-soong-tests Bug: 375053752 Change-Id: Ic0839b0dbbfa6b012c6b920eecf4ebc6fed8d51f
Diffstat (limited to 'android/neverallow.go')
-rw-r--r--android/neverallow.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/neverallow.go b/android/neverallow.go
index 8995a0ffe..e418d5c65 100644
--- a/android/neverallow.go
+++ b/android/neverallow.go
@@ -251,6 +251,7 @@ func createInstallInRootAllowingRules() []Rule {
NotModuleType("prebuilt_system").
NotModuleType("prebuilt_first_stage_ramdisk").
NotModuleType("prebuilt_res").
+ NotModuleType("prebuilt_any").
Because("install_in_root is only for init_first_stage or librecovery_ui_ext."),
}
}
@@ -363,6 +364,7 @@ func createKotlinPluginRule() []Rule {
func createPrebuiltEtcBpDefineRule() Rule {
return NeverAllow().
ModuleType(
+ "prebuilt_any",
"prebuilt_usr_srec",
"prebuilt_priv_app",
"prebuilt_rfs",