It is the most basic and manual way to customise our phones, whether it is installing custom apps or modifying anything else. Since people are familiar with ADB commands, they prefer this method of tweaking their phones. This is because they feel like technical executives while using these commands. As a result, variations can be checked if a command is entered incorrectly.
Hence, people are showing a great deal of dedication to ADB commands. What other commands can they use? I also got addicted to ADB commands. Thus, I researched the ADB commands we could use on our phones. Surprisingly, I got a massive list of commands. So today, we will provide you with a bunch of ADB commands and their usage to bring more creativity to every Android user.
List of ADB and Fastboot commands for Android
To communicate with your phone, the ADB and Fastboot commands are the finest combination of tools. Previously, we mentioned installing custom things using a dedicated ADB and Fastboot command in other guides. From there, you might want to know what more we can do with our phones. This is why we are sharing a list of ADB and Fastboot commands as well as their usage.
Note: Before executing any command, make sure to enable USB debugging. You may have installed Android SDK platform tools.
Commands | Use |
adb devices | This command lets you to check whether ths device is under ADB connection or not. After entering this command, a “device” word will appear that means your device is in connection with ADB command. |
adb shell | This command lets you to check whether ths device is under ADB connection or not. After entering this command, a “device” word will appear that means your device is in connection with ADB command. |
adb reboot bootloader | This command is use to take your phone into bootloader mode. So that you can go through diagnosis of your Android Phone. |
adb reboot recovery | This command is use to take your phone into bootloader mode. So that you can go through diagnosis of your Android Phone. |
adb pull /file-location-on-device/filename | This command is use to pull any file to your PC. Just enter this command and let your file move to PC using ADB. |
adb push filename /location-where-file-is-to-be-sent-on-device | This is the reverse of previous command here we apply this command to push files from PC to android phone. |
adb sideload filename.zip | With this command you can install ZIP files directly from powershell. Just enter this command and install any ZIP file that you want. |
adb start-server | A lot of times it has seen that ADB server does not automatically start. In such case you can enter this command and start ADB server there.  |
adb kill-server | if during any program, the system get hanged while processing any command. In that case, you can kill that ADB server using this command. |
adb install filename.apk | This command helps you to install any file APK to your phone. |
Fastboot commands | |
fastboot devices | once your phone boot into fastboot mode, this command help you to check whether the connection is successful or not. |
fastboot oem unlock | This command help you to unlock the bootloader of your device through fastboot. |
fastboot boot recovery twrp.img | To boot a recovery file on your phone, this command is on utmost priority. |
fastboot flash boot boot-file-name.img. | Whenever there is a need to install a boot from powershell, this command can be a huge contribution. |
fastboot erase userdata | To erase all the user data from the device, use this command as same as written. |
fastboot reboot | This command is useful when you want to reboot your device to Android OS. |
fastboot reboot recovery | When you want to reboot from fastboot to recovery mode, this command could be a straight way to do. |
fastboot set_active b | When your device is going through with partitions and you want to switch slots between them. Then this command help you in switching. |
fastboot erase system | With this command you can restore backed up images and enjoy the benefits of fastboot. |
fastboot oem lock | When you need to relock the bootloader, then use this command for the same. |
After knowing these commands, you might wonder how to use them. So just connect your Android phone with a USB cable to your desktop computer to boot into Android. Open the Command Prompt and point it to the platform tools folder. Then type adb devices and press Enter. A list of attached devices, along with their serial numbers, should now appear. As you can see, it is working. Now type adb, followed by the command you want to run.
For Fastboot, it works similarly to ADB, except you have to boot your phone into Fastboot mode instead of Android. You can do this by holding the power and volume keys when turning on the phone. Conclusively, these are things related to ADB and the fast boot command. I hope you have learned a lot of new things. So, if any user has a query, then ask them all below.
Frequently Asked Questions
Q1. Do ADB commands harm my device?
Ans. It will not until you type the wrong command.
Q2. Are there any more ADB commands?
Ans. There are plenty of commands, but the ones above are the basics. First, learn all of them, so that we can provide you with more technical commands.
Q3. Which phone supports ADB commands?
Ans. Mostly Android phones with Android version 5.0 or above.
Q4. How do I check my adb list?
Ans. Go back to Settings >> Developer Options >> Turn on USB debugging. Go back to your terminal adb devices, and you should see the connected device.