commit | b29f25888a9033a0cc3b151a929b1b29fa727f75 | [log] [tgz] |
---|---|---|
author | Sen Jiang <senj@google.com> | Wed Dec 14 22:21:48 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Dec 14 22:21:48 2016 +0000 |
tree | 6066d58e37b89d85081c1f32ca5b406437b159fa | |
parent | 9c5655a4e4064a3b2f50756f3c4c941d491420ab [diff] | |
parent | ef45a88680ee00fe2283ee68dab884b150dc45ab [diff] |
Merge "Add a stub recovery UI." am: 8c1584feaf am: 2f8f6ec0fc am: ef45a88680 Change-Id: I22e054d7fa4ca9986d6b9b3e625a2cbd8449aaa1
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
recovery-refresh
and recovery-persist
executables exist only on systems without /cache partition. And we need to follow special steps to run tests for them.
Execute the test on an A/B device first. The test should fail but it will log some contents to pmsg.
Reboot the device immediately and run the test again. The test should save the contents of pmsg buffer into /data/misc/recovery/inject.txt. Test will pass if this file has expected contents.