commit | c3292f3fcbb3cd608cc19b7459751fa5bb64ab84 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Fri Nov 04 10:52:13 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Nov 07 13:00:38 2016 -0800 |
tree | 18816aa32af60db69228d2630152383d2984e39f | |
parent | ba41fba9e4fbd343bc6d0cb06b50fa2635a1f5a4 [diff] |
otautil: Clean up SysUtil.cpp. Add unit testcases for sysMapFile(). Test: recovery_unit_test passes. Test: Build and use the new recovery image to sideload a package. Test: Build and use the new recovery image to install an update. Change-Id: I77d8f1ea151ab513865d992c256ba93a1fcb51a4
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