commit | c0319b60f56d445c2d1c74f551e01f069b028fe6 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Oct 13 15:17:04 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Wed Oct 26 14:36:42 2016 -0700 |
tree | 2df23be127c0e92bf1e1be19dada2dd2e4182479 | |
parent | ebc141dff27c53d7043bf7fc61cd435ac4d13160 [diff] |
Some cleanups to recovery. - Remove the duplicate gCurrentUI variable in recovery.cpp; - Refactor the load/save of locale functions; - Clean up ui_print() to get rid of 256-byte buffer limit; - Declare ui in common.h; - Move the typedef of Volume into roots.h. Test: Build and boot into recovery image. Change-Id: Ia28c116858ca754133127a5ff9c722af67ad55b7
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