commit | 876b9391c084701b147af3b0d5c933d877bb6052 | [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 15:33:22 2016 -0700 |
tree | 603d90593492fb898a8f76824192aaa03630c614 | |
parent | 414d71ebf17b238ee27b262c45162b81b1955acc [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 (cherry picked from commit 59dcb9cbea8fb70ab933fd10d35582b08cd13f37)
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