If you are an Android Developer, you know the adb and fastboot commands. Without the compatible drivers present on your PC, We can’t make those commands work. Most of the middle users who are using the adb commands for Rooting and flashing firmware don’t need Android Studio. The other choice is SDK platform tools; they also have more than 50MB, and configuration may be hard compared with this minimal adb and fastboot method. So, the software should be simple, like installing a driver. There should be no mess with the USB Port configurations and System Configurations. This is the place where you can use these drivers. When you are going to test the app or something, this will not suffice for you. You need other tools. When your work is Root and Flashing firmware, Yes, you can use this minimal method.
Table of Contents
What are ADB and Fastboot?
Every mobile device has its own USB driver. This driver allows your mobile to communicate with the PC. Most of the time, you don’t have to install this driver. They came in-built with the PC suites. But, adb and fastboot drivers are for particular tasks. These drivers can help you to interact with the mobile at the core level. These are binaries that can directly communicate with your Mobile OS. We can define this as a General Language between PC and Android Mobiles. You can use these commands to return to the previous patch updates, flash new firmware, and Root.
Note
- The ADB commands can control your mobile from the core level. Don’t experiment with the device, If you didn’t know what you are doing.
- Keep Battery Percentage Above 50 during the process.
- Backup Your Device.
Download Minimal ADB and Fastboot Drivers Installation Files
Please refer Android License regarding the software before downloading.
Windows
- v1.4.3.zip (Latest)
Other Download links
Installation Instructions
I will explain the individual steps for Windows, Mac, and Linux. Based on your machine, choose the appropriate steps.
Pre-Requirement Steps
Enable USB Debugging Mode and OEM Unlock on your mobile. To do this; go to settings >>> about >>> Tap on the “Build Number” 7-10 times consistently to enable “Developer Options,” then go to the “Developer Options” and enable USB Debugging Mode, OEM Unlock. After this process, connect your mobile with a PC/Laptop. Unlock the screen unlock.
Install Minimal ADB in Windows
- Download and extract the files. Select the adb setup file and run this as Administrator.
- After the Run as select, It will Pop up with the usual Installation Window like other software. Select Next.
- In the Next step, It will ask where you want to install the files. Select Local Disk C or Where you installed your OS. When we install the data in the OS directory, there will be no permission issues.
- After the successful installation, the adb and fastboot command prompt window will open with the installed directory path.
- fastboot commands can only check on your mobile fastboot mode. We want to check the drivers are correctly installed or not. We can use ADB Commands for that.
- When the first command checked, It wants to create local hots, So, It will ask for Internet permission, If you use Protection programs. Allow permission.
- Type the command “adb devices.” You should get the list of attached devices. If you get “Unauthorized,” allow USB debugging permission on your mobile.
Install ADB on Mac OS
- Download the driver from the above download links and extract the files.
- Open the terminal and type the following command.
- cd /path/to/extracted/folder/ (Example: cd /Users/Selva/Desktop/platform-tools/)
- Connect your mobile. When the first command is checked, It wants to create local hots, So, It will ask for Internet permission, If you use Protection programs. Allow permission.
- Type the command “adb devices.” You should get the list of attached devices. If you get “Unauthorized,” allow USB debugging permission on your mobile.
ADB on Linux
- Download the driver from the above download links and extract the files.
- Open the terminal and type the following command.
- cd /path/to/extracted/folder/ (Example: cd /Users/Selva/Desktop/platform-tools/)
- You can also use the direct command to install the fastboot files. Type below command to install the file.
- sudo apt install android-tools-fastboot
- Connect your mobile. When the first command is checked, It wants to create local hots, So, It will ask for Internet permission, If you use Protection programs. Allow permission.
- Type the command “adb devices.” You should get the list of attached devices. If you get “Unauthorized,” allow USB debugging permission on your mobile.
All ADB Commands
There are various things you can do with ADB; this tool supports a lot of commands to trigger most functions. Most of them deal with the recovery mode. I try to cover some essential commands.
Note: you must activate “Developer Options” on the device and turn on “USB Debugging” on the Android device before running ADB commands.
Commands List
When you want to execute these commands on the terminal, Add adb before every command. Example- reboot> adb reboot.
- reboot bootloader – Reboots Android device in bootloader mode
- reboot – Reboots Android phone in normal mode
- push – Move a file from the local system to an Android phone’s location
- devices – Displays all connected ADB compatible devices
- pull – Moves a file from Android to your PC
- install – Installs an app from your system’s .apk file location to your Android device
- connect – Use ADB commands over Wi-Fi Network
- backup – Backs up the Android device
- shell screencap – Captures a screenshot of the device
- sideload file – Push the file to your mobile device and Install it.
Launching ADB requires you to know about CMD – Command Prompt. This is because you need to start CMD and use commands to access the folder where you extracted the Platform Tools and launch adb.exe.
All Fastboot commands
Fastboot installs alongside ADB when you extract the ZIP file. Fastboot allows you to run commands on an Android device that is in bootloader mode. There are, however, other ways to use an Android device in bootloader mode, but using Fastboot is the best option. Also, it is possible to unlock an Android device bootloader using Fastboot to install a custom system file.
However, before Fastboot commands can work on an Android device, you must activate “Developer Options” on the device and turn on “USB Debugging.” Fastboot commands will work only in your mobile fastboot mode. The key combinations to boot your mobile into fastboot may vary depending on the manufacturers.
Commands list
When you want to execute these commands on the terminal, Add fastboot before every command. Example- devices> fastboot devices.
- oem lock – re-locks the bootloader of an unlocked device
- devices – Shows the serial number of a connected Android device
- flash recovery (filename) – Flash the file from PC
- boot recovery (filename) – Boot the data from PC
- oem unlock – Unlock the bootloader of the connected Android device
Wrap Up
You can do a lot of things with the adb and fastboot commands. When we want to perform Powerful Rootless tasks, We can Remove Bloatware apps in Samsung. We can use Soli Without Restrictions in Pixel 4. From my knowledge, I gave only a limited amount of commands. Consider this as a starter. Based on your knowledge and experience, you can explore a lot of ideas using these commands. If I missed any crucial points, Or When you know useful adb task commands, comment below.

Selva Ganesh is the Chief Editor of this Blog. He is a Computer Science Engineer, An experienced Android Developer, Professional Blogger with 8+ years in the field. He completed courses about Google News Initiative. He runs Android Infotech which offers Problem Solving Articles around the globe.
Leave a Reply