commit | 26112e587084e8b066c28a696533328adde406a9 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Feb 25 12:29:40 2016 -0800 |
committer | Tao Bao <tbao@google.com> | Wed Mar 02 15:33:32 2016 -0800 |
tree | cbfc96b00a64d97e1f1379d901dc0152a4d05183 | |
parent | 4b3cdce702fefa7eac0626f57d09ff018127c191 [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
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