From 09b87b5ce264c7c72c3324115b0aba97e825bdf5 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 10 Mar 2017 12:20:01 -0800 Subject: [PATCH] Add update_engine_client, update_engine_sideload, bootctl. update_engine_client and bootctl will be included in debuggable builds only. - update_engine_client allows talking to update_engine directly; - bootctl talks to boot control HAL and queries its state. update_engine_sideload goes into recovery image. - update_engine_sideload is to allow sideloading OTAs under recovery. Test: `m dist` Change-Id: I692e1fb54fa41d7b19e1f2cf2a7ddaf7cf8cb41a --- device.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 \