commit | 9c05a820f24d0e52c50439dbcc11843d53afea1f | [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 15:33:34 2016 -0800 |
tree | fa055af6ead50c78309bd507c5023f3d3dcb18c7 | |
parent | 042bd117c9669b84c3ee3d4cb7dac8a9cf6cdab0 [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 (cherry picked from commit c3292f3fcbb3cd608cc19b7459751fa5bb64ab84)
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