diff --git a/BoardConfig.mk b/BoardConfig.mk index b598f26..a79142f 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -27,5 +27,8 @@ BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES) BOARD_DTBOIMG_PARTITION_SIZE := 25165824 BOARD_USERDATAIMAGE_PARTITION_SIZE := 113254576128 +# Properties +TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop + # Include proprietary files include vendor/xiaomi/lisa/BoardConfigVendor.mk diff --git a/device.mk b/device.mk index c3efc15..ea57ddd 100644 --- a/device.mk +++ b/device.mk @@ -38,6 +38,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/rootdir/etc/init.lisa.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.lisa.rc +# Sku properties +PRODUCT_COPY_FILES += \ + $(call find-copy-subdir-files,*,$(LOCAL_PATH)/sku/,$(TARGET_COPY_OUT_ODM)/etc) + # WiFi Display PRODUCT_SYSTEM_PROPERTIES += \ vendor.sys.video.disable.ubwc=1 diff --git a/odm.prop b/odm.prop new file mode 100644 index 0000000..59e8818 --- /dev/null +++ b/odm.prop @@ -0,0 +1,3 @@ +# SKU properties +ro.product.property_source_order=odm,product,vendor,system_ext,system +import /odm/etc/${ro.boot.hwc}_build.prop diff --git a/sku/CN_build.prop b/sku/CN_build.prop new file mode 100644 index 0000000..f459c1a --- /dev/null +++ b/sku/CN_build.prop @@ -0,0 +1,5 @@ +# begin sku build properties +# autogenerated by build/make/tools/buildinfo_sku.sh +ro.product.odm.model=2107119DC +ro.product.odm.name=lisa +# end sku build properties diff --git a/sku/GL_build.prop b/sku/GL_build.prop new file mode 100644 index 0000000..7f241c3 --- /dev/null +++ b/sku/GL_build.prop @@ -0,0 +1,5 @@ +# begin sku build properties +# autogenerated by build/make/tools/buildinfo_sku.sh +ro.product.odm.model=2109119DG +ro.product.odm.name=lisa_global +# end sku build properties diff --git a/sku/IN_build.prop b/sku/IN_build.prop new file mode 100644 index 0000000..42fea8b --- /dev/null +++ b/sku/IN_build.prop @@ -0,0 +1,5 @@ +# begin sku build properties +# autogenerated by build/make/tools/buildinfo_sku.sh +ro.product.odm.model=2109119DI +ro.product.odm.name=lisa_in +# end sku build properties