Wrong path for overlay, and add CI for it

This commit is contained in:
Pierre-Hugues Husson 2021-03-01 18:11:31 +01:00
parent e0981df4a5
commit df0187395e
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-umidigi-A3S
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View File

@ -49,6 +49,10 @@ find . -name AndroidManifest.xml |while read -r manifest;do
'TESTS: Ignore ro.vendor.product.'
fi
if grep -qF '$(TARGET_OUT)' "$folder/Android.mk";then
fail "$folder/Android.mk" "is wrongly pushing overlay in system/overlay rather than product/overlay"
fi
#Ensure the overloaded properties exist in AOSP
find "$folder" -name \*.xml |while read -r xml;do
keys="$(xmlstarlet sel -t -m '//resources/*' -v @name -n "$xml")"