add update_engine_sideload
authorwuxianlin <wuxianlinwxl@gmail.com>
Fri, 25 May 2018 00:44:33 +0000 (08:44 +0800)
committerwuxianlin <wuxianlinwxl@gmail.com>
Fri, 25 May 2018 06:53:58 +0000 (14:53 +0800)
device.mk [new file with mode: 0644]
omni_enchilada.mk

diff --git a/device.mk b/device.mk
new file mode 100644 (file)
index 0000000..0b2db6a
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,12 @@
+
+LOCAL_PATH := device/oneplus/enchilada
+
+# Enable update engine sideloading by including the static version of the
+# boot_control HAL and its dependencies.
+PRODUCT_STATIC_BOOT_CONTROL_HAL := \
+    bootctrl.sdm845 \
+    librecovery_updater_msm \
+    libsparse
+
+PRODUCT_PACKAGES += \
+    update_engine_sideload
index 71f3ee1fddffdcd2f4b85480ea507df4a9ecefb0..c535b0c72e348534e66685578cbeda8cae6f0871 100644 (file)
@@ -22,9 +22,17 @@ $(call inherit-product, build/target/product/embedded.mk)
 # Inherit from our custom product configuration
 $(call inherit-product, vendor/omni/config/common.mk)
 
+# Inherit from hardware-specific part of the product configuration
+$(call inherit-product, device/oneplus/enchilada/device.mk)
+
 ## Device identifier. This must come after all inclusions
 PRODUCT_DEVICE := enchilada
 PRODUCT_NAME := omni_enchilada
 PRODUCT_BRAND := OnePlus
 PRODUCT_MODEL := OnePlus A6000
 PRODUCT_MANUFACTURER := OnePlus
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+    PRODUCT_NAME=OnePlus6 \
+    BUILD_PRODUCT=OnePlus6 \
+    TARGET_DEVICE=OnePlus6