commit | edf1b15fefca1fa43d628a9c79d351dd960a002f | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 24 16:08:28 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Oct 24 16:08:28 2016 -0700 |
tree | 09d9a2e70f8503722dfb20019a1c8af335153dd3 | |
parent | fd796317c309a9c2423d6de1b0c87d1004efbec4 [diff] |
applypatch: Fix the bug when constructing VAL_BLOB. When constructing std::string from C-string, the string may be truncated at null char. Use range constructor instead. Bug: 32380016 Test: Use applypatch to install a previously failed recovery image. Change-Id: Id3e2afb4a810594243cd21db526933d1fea5044b
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