commit | 7ce287d432dd3a4dc8841fc59e11ee1a0b7808a1 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Tue May 31 09:29:49 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Fri Jun 03 12:12:50 2016 -0700 |
tree | 9e1a3f6c63abe5ceb130b93699fb0d7df43ec0ec | |
parent | 50f6417317f9e327ed76abaf34512370f8376245 [diff] |
Call ioctl before each write on retry If the update is a retry, ioctl(BLKDISCARD) the destination blocks before writing to these blocks. Bug: 28990135 Change-Id: I1e703808e68ebb1292cd66afd76be8fd6946ee59
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