commit | fa4f1b75b6686f73a253536d6ce6deb3ed065148 | [log] [tgz] |
---|---|---|
author | Sen Jiang <senj@google.com> | Thu Feb 11 16:14:23 2016 -0800 |
committer | Sen Jiang <senj@google.com> | Fri Feb 12 12:57:03 2016 -0800 |
tree | 8f50e94a53c2f1e737b344c2fc01d3b142759a9c | |
parent | 7f16c7a4c9b457302a0c91c9bd4c739708a9c79e [diff] |
imgdiff: don't fail if gzip is corrupted. Treat it as a normal chunk if inflate() fails. Test: run imgdiff on corrupted gzip and apply the patch Bug: 27153028 Change-Id: Idcbb3c1360ec0774e6c7861b21d99af8ee10604a
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