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
This commit is contained in:
Tao Bao
2017-03-10 12:20:01 -08:00
parent 8ce93aa9d4
commit 09b87b5ce2

View File

@@ -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 \