commit | 59dcb9cbea8fb70ab933fd10d35582b08cd13f37 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 03 18:06:46 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Tue Oct 04 14:24:32 2016 -0700 |
tree | 64a8c1e78aa282460aebf39d3f4147d00ffa0fcc | |
parent | 38b923ff6caafbb92935e7d13640d6b05f2a7466 [diff] |
edify: Move State.script and State.errmsg to std::string. This way we kill a few strdup() and free() calls. Test: 1. recovery_component_test still passes; 2. Applying an update with the new updater works; 3. The error code in a script with abort("E310: xyz") is recorded into last_install correctly. Change-Id: Ibda4da5937346e058a0d7cc81764d6f02920010a
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