ADB has a wide variety of functions for managing your device, moving content to and from your phone, installing apps, backing up and restoring your software, and more. You can use ADB while your phone is plugged in to a computer.
Below are the most useful commands and their functions:
Check connection and get basic information about devices connected to the computer. It will return a list of all devices that you have connected to your computer. If it returns a device ID like the one seen above, you're connected and ready to send commands.
adb reboot recovery
Reboot your phone into recovery mode.
Reboot your phone into bootloader/fastboot mode.
adb push [source] [destination]
Copy files from your computer to your phone.
Copy files from your phone to your computer.
adb install [source.apk]
Remotely install APKs on your phone.
adb shell [command]
Open or run commands in a terminal on the host Android device.
Create a full backup of your phone and save to the computer.
Restore a backup to your phone.
Push and flash custom ROMs and zips from your computer.
fastboot oem unlock
Unlock your bootloader, making root access possible.
Check connection and get basic information about devices connected to the computer.
fastboot flash recovery
Flash a custom recovery image to your phone.
fastboot boot recovery
Reboot to custom recovery without installing recovery.