commit | 51d516e913753a3a1416130b215591e309f0eb2c | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Nov 03 14:49:01 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Thu Nov 03 14:58:54 2016 -0700 |
tree | 404cdcad9fbc43878ffcb572d6b8da19f25c4898 | |
parent | 4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4 [diff] |
updater: Fix an off-by-1 bug in file_getprop(). Also add a testcase for file_getprop(). Test: recovery_component_test passes. Change-Id: I8eb2f9a5702b43997ac9f4b29665eea087b1c146
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