From 002767b80d8962e4ba882ca739871874556efdd8 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Wed, 12 Mar 2025 22:14:39 +0000 Subject: 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 --- android/neverallow.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'android/neverallow.go') 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", -- cgit v1.2.3-59-g8ed1b