commit | 984d7d058e65ddc1b8a1ffc79a5f178ad88dd596 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Tue Oct 18 13:37:18 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Tue Oct 18 21:22:48 2016 +0000 |
tree | 2f6a5b80d843b8114757fc38d2cb878717d72c43 | |
parent | 2b17b24ae5eccd6c472c06abde93b5b83950c658 [diff] |
Fix applypatch_check failure when applying update on angler Applypatch_check should be skipped if no sha is specified. As the comments said: "It's okay to specify no sha1s; the check will pass if the LoadFileContents is successful. Useful for reading partitions, where the filename encodes the sha1s." Test: The update package applied on angler successfully. Bug: 32243751 Change-Id: Ib8f3dadf19f745c2dbd350d60da46ab12d75bc87
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