Wrong path for overlay, and add CI for it
This commit is contained in:
parent
e0981df4a5
commit
df0187395e
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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")"
|
||||
|
|
Loading…
Reference in a new issue