commit | 4344d636d4f8687054593f88ddd7509ff8581419 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Wed Aug 03 21:03:53 2016 -0700 |
committer | Alex Deymo <deymo@google.com> | Thu Aug 11 18:55:11 2016 -0700 |
tree | 649779ffef3d413eadb67d85419056c1d9ef4752 | |
parent | e49c0d6406dcce19bdcf81d635b3449004f44c7e [diff] |
Call update_engine_sideload from recovery. This patch enables sideloading an OTA on A/B devices while running from recovery. Recovery accepts the same OTA package format as recent versions of GMS, which consists of .zip file with the payload in it. Bug: 27178350 TEST=`adb sideload` successfully a full OTA (*) TEST=Failed to take several invalid payloads (wrong product, fingerprint, update type, serial, etc). <small>(*) with no postinstall script.</small> Change-Id: I951869340100feb5a37e41fac0ee59c10095659e
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test