Install ADB/Fastboot Drivers – You must need to install ADB & Fastboot drivers on your computer. Don’t ever think to try this commands because they don’t gonna work on it. You can check out the guide & Download links below to install ADB/Fastboot drivers on your Windows, Mac or Linux OS.
Enable USB Debugging – Make sure that you have enabled USB debugging to use ADB Commands. To Enable USB Debugging,
Go to Settings > About Phone > Tap 7-8 times on Build number. This will enable Developer option on your device.
Get back to Settings > Developer Options > Enable USB Debugging from the menu.
List of Some Useful ADB & Fastboot Commands
There are a lot of both ADB & Fastboot Commands are available. If you want to figure out the all available Commands I have a solution for you! Just enter the wrong command in ADB or Fastboot mode. Huge list of Commands will appear with their functions.
To find some General & Useful command to General Android user check out the list below.
Basic ADB Commands
This command is used to check connected devices to your computer over ADB. This the pretty basic adb command and whenever you’re doing something with ADB you surely gonna use that.
If you are doing any operation with ADB you must need to check whether your device is connected to your computer or not hence. We use this command to get back the list of attached devices to your computer. When you hit this command it shows the connected devices with Device ID as shown in above screenshot.
Use this command to Restart your smartphone. It will reboot your device normally.
adb reboot -bootloader
To boot into Download mode/Fastboot mode run this ADB Command. It will be helpful to you in Unlocking bootloader or Flashing firmware.
adb reboot recovery
If you want to boot into Recovery Mode directly without pressing the key combinations then enter this command. Press enter to directly boot into recovery mode.
adb push (Source) (destination)
If you want to transfer a file to your device from personal computer. Then use this command in Source write path of the file which is stored in your computer & at destination path of mobile where you want to send that specific file.
Using this command you can transfer a file from Smartphone to computer Via ADB.
Installing Flashable zip file using ADB Sideload is easy with command. To use this you must have to install Custom recovery on your phone. In Custom recovery section make sure that you have enabled ADB Sideload option. Now, You can flash any Custom ROM or Zip file using adb sideload filename.zip command.
Complete List of ADB Commands
Below is the table of almost all useful ADB Command for a day to day usage. If we haven’t listed any command then please do comment below or wait till we update our Post.
|adb devices||List of attached devices to computer.|
|adb reboot||Restart your smartphone.|
|adb reboot -bootloader||Reboot to Bootloader/Fastboot/Download Mode.|
|adb reboot recovery||Reboots device into recovery mode.|
|adb reboot fastboot||Reboot your device into fastboot mode.|
|adb get-serialno||Get Serial number of connected devices.|
|adb install (application package name).apk||To install applications over ADB.|
|adb install -r (application package name).apk||If you have already installed app & want to update it.|
|adb unistall package_name.here||Unistall application using ADB|
|adb unistall -k package_name.here||Unistall application but keep Cache & Data.|
|adb push (source) (destination)||Copy file from computer to smartphone.|
|adb pull||Copy file from phone to computer.|
|adb shell (Command)||Run command in the terminal on the host android device.|
|adb backup||Create backup of your phone & store it to your computer.|
|adb restore||Restore backup to your phone.|
|adb sideload||Push & Install Flashable Zip file or Custom ROM on your device.|
|adb logcat||Shows you real time log of your device.|
|adb start-server||Starts ADB Servers Processes.|
|adb kill-server||Stops ADB Server Processes.|
Basic Fastboot Commands
The use of ADB compare to Fastboot is very less. Because fastboot has some extra ability to develop your device. You can Unlock Bootloader, Install Custom Recovery & even can flash stock firmware on your phone. Below, We have listed out some basic & useful Fastboot OEM commands.
As like ADB, This command shows you the list of connected devices to your computer in the fastboot mode.
Normally reboot your phone.
fastboot reboot recovery
To reboot directly into Recovery mode use the above command. It will restart and boot into Recovery of your smartphone.
fastboot oem unlock
The unlocking bootloader of some major OEM likes OnePlus, Android One devices, YU, HTC Devices becomes much easier with this. Write the command & Hit enter to unlock bootloader within few minutes.
fastboot oem lock
After unlocking the bootloader if you still want to lock the bootloader again then you can use the above command in fastboot mode.
fastboot oem device-info
You can check bootloader status of your device. Check whether your Phones bootloader is unlocked or locked with this. Check out the screenshot below which will give you a better idea about this.
fastboot flash recovery filename.img
This is the most used & useful command. If you want to install Custom recovery on the device or any kind of recovery on your OEM do use this command. Make sure that you have replaced filename.img to the file name of your recovery.
fastboot boot filename.img
If you want to boot into any recovery without installing Recovery on your phone then do use this command. You can keep Stock recovery and install SuperSU.zip file with this command.
Complete List of Fastboot Commands
If you are looking for the more Fastboot command then Check out the table given below.
So this was the list of Some Useful Fastboot & ADB Commands. This commands are most commonly used & enough for any average Android users who don’t want to go deep inside it. Make sure that you have setup ADB & Fastboot driver on your computer to use those commands.
I hope you like this post, If you? Then Please don’t forget to share this post with your friends on the Social Media. This is Sachin signing off! Will catch you in the next one! Stay Tuned!