commit | 62ab2a0fbcbf1da5ae671e7b87143e65ad8616ae | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Wed Aug 17 12:02:46 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Wed Aug 17 15:07:50 2016 -0700 |
tree | 765f3450ecba5ba4f7c08fd2638a71cf536365d4 | |
parent | 53c107f06836ac3942ec51625038b9756a49f933 [diff] |
"view recovery logs" will show /tmp/recovery.log For A/B devices, "view recovery logs" doesn't work due to the lack of cache partition. To help debugging, we'll show /tmp/recovery.log instead if /cache is not found. Change-Id: Idb77c3a4c30388148a210b38d732a7b27e757bba Test: Tested on an A/B device and /tmp/recovery.log showed up. Bug: 30905700 (cherry picked from commit a54f75ede8f5404c2c55b4f928e73fe9c908298e)
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