commit | ae6408d1a2edc9950a2bff3af448cddecc7adf13 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Feb 25 12:29:40 2016 -0800 |
committer | Tao Bao <tbao@google.com> | Fri Mar 04 12:23:10 2016 -0800 |
tree | ee3ada5746cd1a9ee20f095ac00790528aa4f5d3 | |
parent | 3a2bb594df4b48c6afb1f029041dd6db0735de58 [diff] |
recovery: Handle devices without /cache partition. Since we may not have /cache partition on A/B devices, let recovery handle /cache related operations gracefully if /cache doesn't exist. (1) Disable the wipe for /cache partition. (2) Skip wiping /cache while wiping /data (i.e. factory reset). (3) Disable logging-related features, until we figure out better ways / places to store recovery logs (mainly for factory resets on A/B devices). Bug: 27176738 Change-Id: I7b14e53ce18960fe801ddfc15380dac6ceef1198 (cherry picked from commit 26112e587084e8b066c28a696533328adde406a9)
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