Phones
Android
adb
Usage |
Explanation |
---|---|
devices |
show connected devices that are fully booted |
reboot |
reboot into the normal Android operating system |
reboot bootloader |
reboot into the bootloader |
reboot recovery |
reboot into the recovery mode |
reboot fastboot |
reboot into the fastboot mode |
push |
upload a file to the device |
pull |
download a file from the device |
Example |
Explanation |
---|---|
push recovery.img /sdcard/ |
upload an image file to the internal sdcard storage of the phone |
fastboot
Usage |
Explanation |
---|---|
devices |
show connected Android devices in the boot or recovery mode |
boot <RECOVERY_IMAGE>.img |
temporarily boot into a recovery image that is stored on the local computer |
flash recovery <RECOVERY_IMAGE>.img |
install a new recovery utility (such as TWRP) |
flash <PARTITION> <IMAGE>.img |
flash the image to a specific partition (it will only flash to A on A/B systems) |
flash –slot all <PARTITION> <IMAGE>.img |
flash the image to a specific A/B partition (bootloader, radio, or vendor) on Oreo and newer devices |