diff --git a/device.mk b/device.mk index 7da38f9e..2699ece8 100644 --- a/device.mk +++ b/device.mk @@ -101,6 +101,20 @@ AB_OTA_POSTINSTALL_CONFIG += \ FILESYSTEM_TYPE_system=ext4 \ POSTINSTALL_OPTIONAL_system=true +# Enable update engine sideloading by including the static version of the +# boot_control HAL and its dependencies. +PRODUCT_STATIC_BOOT_CONTROL_HAL := \ + bootctrl.msm8998 \ + libgptutils \ + libsparse + +PRODUCT_PACKAGES += \ + update_engine_sideload + +# The following modules are included in debuggable builds only. +PRODUCT_PACKAGES_DEBUG += \ + bootctl \ + update_engine_client PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \