summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-09-13 19:58:37 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-09-13 19:58:37 +0200
commitfc0939e5744fa29912b6a719b85c0f534560a28d (patch)
treef47989b3f6644c0893d40606d854e136dcd38015
parentMerge "Link libcrypto dynamically for recovery unit tests." am: 54100d3348 am: 97fee1c3b2 am: 5ece6250f0 (diff)
parentMerge "Update the instruction for building recovery image on Pixels." am: 2d6e8f2ea8 am: 41c46448a6 (diff)
downloadandroid_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar.gz
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar.bz2
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar.lz
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar.xz
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.tar.zst
android_bootable_recovery-fc0939e5744fa29912b6a719b85c0f534560a28d.zip
-rw-r--r--README.md26
1 files changed, 20 insertions, 6 deletions
diff --git a/README.md b/README.md
index 0ccc10b50..bd1cf7dea 100644
--- a/README.md
+++ b/README.md
@@ -4,19 +4,33 @@ The Recovery Image
Quick turn-around testing
-------------------------
- mm -j && m ramdisk-nodeps && m recoveryimage-nodeps
+* Devices using recovery-as-boot (e.g. Pixels, which set BOARD\_USES\_RECOVERY\_AS\_BOOT)
- # 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.
+ m -j bootimage
+ adb reboot bootloader
+
+ # Pixel devices don't support booting into recovery mode with `fastboot boot`.
+ fastboot flash boot
+
+ # Manually choose `Recovery mode` from bootloader menu.
+
+* Devices with a separate recovery image (e.g. Nexus)
+
+ # After setting up environment and lunch.
+ mm -j && m ramdisk-nodeps && m recoveryimage-nodeps
+ adb reboot bootloader
+
+ # To boot into the new recovery image without flashing the recovery partition:
+ fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
Running the tests
-----------------
+
# After setting up environment and lunch.
mmma -j bootable/recovery
- # Running the tests on device.
+ # Running the tests on device (under normal boot).
adb root
adb sync data