commit | 762992a26a8749369c6579bf4e48083f0cc45cf6 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Thu Jan 19 19:10:16 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jan 19 19:10:16 2017 +0000 |
tree | 0bee41e1e42e7fdf6cc64001a230986b114136e3 | |
parent | 073a2fffae2f69f0a3520ecaa928a21f03d9ec39 [diff] | |
parent | 5403bdced45105046b971febc11fc36c57064649 [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: 4aa56ad477 am: 5403bdced4 -s ours Change-Id: I98e8158e2559ba541ba18107c235242941989a5c
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.