commit | 0058ef2cecf149fb97094fc879de6608cdc473cb | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Thu Jan 19 19:07:35 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jan 19 19:07:35 2017 +0000 |
tree | 43bd99c37aade61d9bc79c247d32c606ffa87dd8 | |
parent | 977adba0988e07957a7b595590028b4f92aabbbd [diff] | |
parent | de530474e9591cdfc29095bede9916ae6ba7b0f7 [diff] |
DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: de530474e9 Change-Id: I9d78ead6684f04b84cfaba81f2e8a7b09ed35f3f
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.