Exclude some files from artifact path requirements
Change-Id: Id5ef2a44c0cd3b76e3285c26826031f773b7a95f
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/config/common.mk b/config/common.mk
index 1b2bb9e..1a5777f 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -31,6 +31,9 @@
vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
vendor/bliss/prebuilt/common/bin/50-bliss.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-bliss.sh
+PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
+ system/addon.d/50-bliss.sh
+
ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),)
PRODUCT_COPY_FILES += \
vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \
@@ -80,6 +83,21 @@
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.control_privapp_permissions=enforce
+PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
+ system/bin/backuptool_ab.sh \
+ system/bin/backuptool_ab.functions \
+ system/bin/backuptool_postinstall.sh
+
+PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
+ system/bin/curl \
+ system/bin/getcap \
+ system/bin/setcap
+
+ifneq ($(TARGET_BUILD_VARIANT),user)
+PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
+ system/bin/procmem
+endif
+
# Include AOSP audio files
include vendor/bliss/config/aosp_audio.mk
diff --git a/config/lineage_sdk_common.mk b/config/lineage_sdk_common.mk
index c812f2c..f38b6df 100644
--- a/config/lineage_sdk_common.mk
+++ b/config/lineage_sdk_common.mk
@@ -17,6 +17,14 @@
PRODUCT_PACKAGES += \
liblineage-sdk_platform_jni
+# AOSP has no support of loading framework resources from /system_ext
+# so the SDK has to stay in /system for now
+PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
+ system/framework/oat/%/org.lineageos.platform.odex \
+ system/framework/oat/%/org.lineageos.platform.vdex \
+ system/framework/org.lineageos.platform-res.apk \
+ system/framework/org.lineageos.platform.jar
+
ifndef LINEAGE_PLATFORM_SDK_VERSION
# This is the canonical definition of the SDK version, which defines
# the set of APIs and functionality available in the platform. It