ADB fastboot commands are essential command-line tools extensively used in custom Android app development processes, debugging, customization tasks, etc. Both are separate but related to each other.
ADB fastboot commands allow developers to quickly install APKs and set up a complete backup of any device. Moreover, it also helps to unlock Android devices seamlessly. In this blog, we will discuss all aspects of ADB and fastboot commands.
What is FastBoot?

Fastboot sets up a bridge between an Android device and a computer. It enables flash images like custom ROMs, bootloaders, recoveries, etc. This is a versatile tool that significantly helps in custom android app development, troubleshooting, and customization. It allows users to interact with the firmware of a device by enabling system modifications and customization options. Let’s have a look at the simple structure of fastboot command:
- fastboot: It refers to the core command that signals you’re using the Fastboot.
- command: The particular operation you would like to perform (e.g., flash, reboot, erase).
- option: Flags that determine the behavior of command (e.g., -w, -c).
- argument: The file or target on which the command works (e.g., file name, partition name).
However, ADB Fastboot commands can damage your device; therefore if you select fastboot for the first time, you should rely on reliable resources. This is because Fastboot commands are not compatible with all Android devices. The compatibility mostly differs with the OEM. Some of the prime advantages of fastboot are:
Want to Hire App Developers?
With custom Android app development services, we help you build feature-rich application for your business.
1. Firmware Modifications: Fastboot helps users modify the device’s firmware components such as recovery images, boot images, system images, etc. This capability can facilitate a number of tasks like custom ROM installation, kernels, custom recoveries, etc.
2. Cross-Platform Compatibility: Fastboot supports cross-platform compatibility, including hybrid app development. This means it perfectly works with different operating systems like macOS, Windows, and Linux. This benefit makes Fastboot more accessible to users.
3. Custom Development: Fastboot is widely used as a powerful tool for custom Android development. It helps developers thoroughly test & deploy firmware, applications, and software modifications during the Android app development phase.
4. Recovery & Troubleshooting: Fastboot improves recovery and troubleshooting operations on Android. It helps users boot into several modes including fastboot and recovery mode and enables different tasks like partition formatting, factory resets, system repairs, etc.
5. Low-level Access: Low-level access is important for different tasks like custom kernels, flashing firmware, system recoveries, erasing partitions, etc. This benefit helps users interact with the bootloader of the device directly.
What is Android Debug Bridge (ADB)?

ADB (Android Debug Bridge) is a versatile development tool that facilitates seamless communication between the computer and Android device. As part of Google’s Android SDK, this command-line tool is used for several purposes. With ADB, you can easily send several terminal commands like Linux shell. Three important components of ADB commands include:
- A client: It sends commands.
- A daemon (adbd): It works as a background process on every device
- A server: It creates communication between the daemon & client
Let’s have a look at the key advantages of ADB
1. Debugging: ADB offers different debugging functionalities that allow developers to directly debug applications on emulators or physical devices. With the help of ADB, developers can efficiently monitor system activities, log information, and diagnose issues.
2. System Troubleshooting & Maintenance: ADB allows users to access system logs, system utilities, and diagnostic information. This leads to improved device maintenance as well as troubleshooting. By using ADB commands, users can easily track system performance, and diagnose software glitches.
3. Customization: ADB allows users to seamlessly modify and customize Android devices. From installing custom ROMs to managing system configurations, ADB commands offer high flexibility for tailoring the Android experience based on user preferences.
Read More Related Blogs
4. Security Testing: ADB is widely used for analysis and security testing purposes. This allows users to smoothly assess the security levels of Android devices and applications. Developers leverage ADB to seamlessly perform forensic analysis, penetration testing, vulnerability assessments, etc.
5. Access to High-End Settings: ADB can grant access to multiple system configurations and advanced settings that can’t be accessible through other user interfaces. Advanced settings allow users to enable or disable developer options, manage configurations, and customize devices seamlessly.
How To Use ADB?
To start using ADB, which is a command line tools for communicating with Android devices. Boot your phone into Android, then connect it to your desktop computer with a USB cable. On your computer, launch the Command Prompt (or Terminal, if you’re on Mac or Linux) and change the directory to point to the platform-tools folder.
To verify connections, type <adb devices> and press Enter. A list of connected devices together with their serial numbers will then show up. This indicates that your phone is connected and operating. All you need to do is type adb and then the command you want to run. Entering adb to restart your phone is another straightforward example.
How To Use FastBoot?
Fastboot works just like ADB, however you need to boot your phone into Fastboot mode instead of Android. You normally do this by holding a combination of the power and volume keys when the phone is shut down. Alternatively, use ADB and type adb reboot bootloader.
Things You Can Do With ADB and Fastboot
Here are some valuable tasks you can do with ADB and Fastboot:
- Copy Files from Phone to Computer
Use: adb pull [phone file path] [computer folder path]
Example: Save a file from your phone to your PC.
- Copy Files from Computer to Phone
Use: adb push [computer file path] [phone folder path]
Example: Send a file from your PC to your phone.
- Install an App (APK)
Use: adb install [file path]
Example: Install an APK app on your phone.
- Uninstall an App
Use: adb uninstall [package name]
Example: Remove an app using its package name, like com.example.app.
- Change Screen Density
Use: adb shell wm density [dpi]
Example: Adjust how big or small things appear on the screen by changing the DPI.
- Install Firmware Updates
Use: adb sideload [path to update.zip]
Example: Install a software update directly using a ZIP file.
- Unlock the Bootloader
Use: fastboot oem unlock or fastboot flashing unlock.
Example: Unlock your phone’s bootloader (erases all data).
- Install a Custom Recovery
Use: fastboot flash recovery [filename.img]
Example: Install TWRP or other recovery software.
- Wipe Your Phone
Use: fastboot -w
Example: Fully erase your phone before flashing a custom ROM.
- Flash a Custom ROM
Use: fastboot update [path to rom.zip]
Example: Install a new operating system on your phone.
These commands help with app installation, system updates, and advanced customizations.
List of ADB and Fastboot Commands
Let’s have a look at the complete list of ADB and Fastboot Commands respectively:
1. ADB Commands: ADB commands allow users to seamlessly interact with the Android OS. Here is a list of essential ADB commands:
| ADB Commands | Use Cases |
|---|---|
| ADB Shell | Allows you to directly execute commands on the terminal. |
| ADB Reboot Bootloader | Helps to boot a device to Bootloader or fastboot mode |
| ADB Reboot Recovery | Helps to boot a device to stock recovery or TWRP from the booted OS. |
| ADB Pull/filename | Pulls a file from the device & then move it to PC |
| ADB Shell WM Density | This command modifies display density |
| ADB Sideload | Helps users install the updates on the device |
| ADB Kill-server | If the command does not perform properly, you can kill the server |
| ADB Install -r filename.apk | It allows user to update or reinstall an APK |
| ADB Install -s filename.apk | Allows users to move the application to any SD card (if supported) |
| ADB Restore | It allows users to restore your device backup data |
2. Fastboot Commands: ADB Fastboot commands are used to modify the firmware through a computer. Here is the complete list of popular commands:
| Fastboot Commands | Use Cases |
|---|---|
| Fastboot Devices | Allows you to check how many devices are connected to the PC |
| Fastboot Reboot | Helps to reboot the Android devices into the recovery mode |
| OEM Unlock | Allows you to unlock the bootloader |
| OEM lock | Allows you to relock the bootloader of the device after unlocking |
| Reboot Recovery | Helps to reboot the device into the recovery mode |
| Reboot Bootloader | Allows you to reboot an image file without flashing it |
| Fastboot Erase | Allows you to erase or wipe out data from the device |
| Fastboot Getvar | Allows you to retrieve data about particular variables on the device |
| Fastboot Format | Helps to format particular partitions on the Android device. |
Read More Related Blogs
Fastboot Command Structure & Syntax
Fastboot is a part of the Android SDK (Software development kit) used for device recovery and modification. It’s a powerful command-line tool to flad devices, unlock bootloaders, and perform low-level operations on Android devices.
fastboot [command] [option] [argument]
- fastboot: The command itself.
- [command]: used to perform specific actions like reboot, erase.
- [options]: Optional parameters that modify the command’s behavior.
- [arguments]: Values or paths required by the command.
How to Install Fastboot on Android?
Before diving into the installation process, let’s have a look at some important prerequisites:
Before diving into the installation process, let’s have a look at some important prerequisites:
- Download & install the Android SDK, including ADB & fastboot files
- Install the USB driver (Android) from the OEM of your device
- On your Android device, enable USB debugging
To successfully install fastboot, you need to follow the below steps:
1. Extract platform tools: Once you have downloaded the Android SDK tools, extract them on your computer. It is a great idea to place the Android SDK in a directory. It will be easy to access from the command line.
2. Connect the device: Now, use a USB to seamlessly connect your device to your computer. Make sure the Android device is completely unlocked and powered.
3. Open a Terminal Window or Command Prompt: Now, you have to navigate to the directory where you have extracted the Android SDK platform tools.
4. Test Fastboot: To check the performance of Fastboot, open a terminal window or command prompt and type “fastboot devices”.
5. Try Fastboot commands: After installing the fastboot, you can use different ADB fastboot commands to perform multiple tasks like bootloader unlocking, custom ROM flushing, etc. It’s recommended to use commands correctly to protect your device from potential harm.
How to Install ADB on Windows, Linux, and macOS?
ADB (Android Debug Bridge) and fastboot tools interact with Android devices at a deeper level. The guide will walk you through setting up these tools on your computer.
Step1:
The first step is to configure your phone for these tools.
Begin with the Developer Options on your device.
Go to Settings -> About Phone and tap the Build Number 7 times.
Then go to Settings > Developer Options and enable USB debugging.
Step 2:
Download ADB and Fatboot from the official Andriod Developer Website.
Download th latest SDK Platform-Tools package available for Windows, Mac, and Linux.
Extract the files by Unzip the downloaded package named platform-tools to the preferred location on the computer.
Focus on the files named ADB and Fastboot.
Step 3 (For Windows):
Download appropriate drivers for the device from Android Developer Studios.
Follow the installation instructions provided with the drivers.
Using Command Prompt or Terminal
To use ADB and Fastboot, open the Command Prompt on Windows or the Terminal App on Mac/Linux.
Go to the folder where platform tools are located.
Use the cd command. Type cd [path to platform-tools] and press enter.
Drag and drop the platform-tools folder in the command prompt or terminal app after typing cd.
In Windows, a shortcut method is to hold Shift, right-click in the platform-tools folder, and select Open Command Prompt Here.
For Mac/Linux users, prefix every command with ./.
For example, use ./adb for ADB and ./fastboot for Fastboot commands.
Looking for Android App Development Services?
Elevate your business growth with our comprehensive Android app development services.
If you’re a developer or tech blogger creating tutorials around ADB or Fastboot commands, make sure your content gets the visibility it deserves. Strategic use of backlinks from reputable sites can significantly improve your article’s reach and authority.
Final Words
ADB and fastboot both have emerged as indispensable command-line tools for Android development. Though they are used for different purposes, they provide robust capabilities for managing Android devices. Their extensive functionalities, cross-platform compatibility, and Android ecosystem integration make them essential resources for users seeking to unlock the complete potential of Android devices.
FAQ’s
1: What does the fastboot command do?
The fastboot command refers to an essential tool that modifies the firmware of Android devices. It works as a communicator between an Android device and a PC. Fastboot mode can enable flash images such as custom ROMs, bootloaders, recoveries, and kernels in the Android device. This command can damage your device. Therefore, while using this command, take advantage of reliable resources.
2: What is the advantage of fastboot?
Fastboot commands provide a number of advantages that make it an essential tool for users and developers. Some of the prime benefits of ADB Fastboot commands include:
- Enhanced system performance
- Low-level access
- Bootloader unlocking
- Recovery & Troubleshooting
- Cross-Platform Compatibility
- Official Support
3: What is the advantage of fastboot Android?
fastboot helps to unlock bootloaders, update software, and even troubleshoot an Android device. Other key benefits of fastboot Android include:
- Firmware Modification
- Bootloader Control
- Recovery & Troubleshooting
- Custom Development
- Debug & fix issues
- Custom ROMs & firmware installation
4. What is the fastboot mode?
- Fastboot mode serves as a unique boot state that will let you modify system files on the device. It is often used for unlocking the bootloader, flashing custom recovery, or installing new firmware. In this mode, the device communicates with your computer directly through Fastboot commands.
Faq 5. How do I start Fastboot Command?
- On your PC, install the Android SDK Platform Tools.
- Use the adb reboot bootloader or manually restart your phone into Fastboot mode (typically by holding down the Power and Volume Down keys during startup).
- Go to the fastboot folder at a terminal or command prompt, then enter any Fastboot command: <fastboot devices>
- This determines whether your device recognizes Fastboot mode.
6. What are ADB Fastboot Commands?
- ADB and Fastboot serve different purposes. Commands under ADB are executed when the device is already booted into the operating system or recovery mode, while Fastboot commands run in Fastboot mode.
