List of Useful ADB & Fastboot Commands For Android | Shell and CMD

ADB stands for Android Debug Bridge, a command-line tool that is one of the best parts of the Android Software Development Toolkit. It helps make a strong connection between the PC and the device and performs many functions, namely file installation, rebooting to fast boot or recovery, unlocking the Bootloader, etc. If you want to get the ADB and Fasboot Commands, read more to know the list of useful ADB and Fastboot Commands.

It perfectly communicates with Android devices via multiple commands called ADB commands. The ADB is an inbuilt feature of all Android devices, but it is hidden in settings; if you want to use the ADB commands, you must enable the ADB feature under Settings; it perfectly acts as a client-server structure for better communication.

What is Fastboot?

Fastboot is a bootloader mode or diagnostic tool for Android devices that is used to flash various files; this is a unique boot state that supports the command line interface and reboot or restart operation. These modes are applicable to perform changes on the Android device with the help of Fastboot commands.

It is a communication bridge between the computer and Android device; it perfectly enables flash images such as bootloaders, custom ROMs, recoveries, and kernels on Android devices. Using this mode, the user can change the system partitions generally performed by the PC through a USB cable. This mode is useful for updating the software, unlocking the bootloaders, and fixing the broken phone.

What are ADB and Fastboot Commands?

ADB & Fastboot commands are different and have different tasks and effects on Android devices; the ADB commands are useful for communicating with various devices, such as booting devices into various modes, installing and uninstalling Apps, and checking connectivity.

Fastboot commands are useful to add/insert extra functions or features with the device; the features flash different files, such as custom recovery, Magisk, and various image files. These commands only apply to the device in a specific bootloader state.

If you want to use the ADB & Fastboot commands, then you must connect the device to the computer and also require drivers, so install the ADB & Fastboot drivers on the computer; drivers are not required for Mac and Linux OS, instead of drivers you can utilize the platform-tools.

 # List of ADB Commands #

Below is the list of all ADB Commands; for easy understanding, we are directly giving the list of adb commands, not giving the commands on pdf.

  • adb help 

It displays the Help Documentation of ADB commands, shortcuts, etc.

  • adb devices

This command is useful for viewing all Android devices connected through ADB.

  • adb reboot

It helps to reboot the device.

  • adb reboot bootloader

This command is used to reboot the device into fastboot or bootloader mode.

  • adb recovery

In recovery mode, it reboots the device.

  • adb logcat

This command is used to show the log data on the screen.

  • adb bug report

The screen shows the dumpsys, dumps state and logs data.

  • adb push

This command is helpful to push a file into an Android device.

  • adb pull

It pulls any type of file from the device and also saves the file on the device.

  • adb kill-server

This command will stop the adb server process.

  • adb start-server

It begins the adb server process.

  • adb jdwp

It lists the device’s JDWP( Java Debug Wire Protocol) processes.

  • adb get-state

This command is helpful to show the device’s status.

  • adb wait-for-device

It is useful to set a delay before the issue of the next command; this executes only when the device is online, but it should be programmed and wait until another process is completed.


  • adb get-serialno

It displays the adb instance serial number string in the device.

  • adb sideload

This command is applicable whenever the zip file is available on the computer only, not on the phone; it usually flashes a zip file in recovery mode.

  • adb install

It is helpful to install an APK file on an Android device.

#1. adb install filename.apk 

This command is useful to install the APK file.

#2. adb install -r filename.apk 

It is used to re-install or update an app.

#3. adb install -s filename.apk 

If the app supports an SD card, it will install the APK file.

  • adb uninstall

With the help of this command, you can uninstall the APK file on the Android device.

  1. adb uninstall com. Facebook.katana; this command uninstalls the app.
  2. adb uninstall -k com.facebook.katana 

After the uninstallation of the app, it maintains the data and cache folder.

# List of Fastboot Commands #

In this article, we provide the list of Fastboot Commands; we cannot provide the adb fastboot command pdf, which you can easily go through for better understanding.

  • fastboot devices

This command shows the list of Android devices connected to the computer in fastboot mode.

  • fastboot boot filename.img

Rather than flashing the file, it simply boots it (applicable only for the bootable files).

  • fastboot oem unlock

Whether the OEM allows it, it unlocks the Bootloader on the Android device.

  • fastboot flash recovery recovery.img

Flashing the recovery image on the Android device’s recovery partition is useful.

  • fastboot oem lock

This command is used to relock the Bootloader on the Android device.

  • fastboot flash boot boot.img

It usually flashes the boot image on the Android device’s boot partition.


  • fastboot reboot bootloader

This command is used to reboot the device into fastboot/bootloader mode; whether the user is in fastboot mode, it is required in some cases.

  • fastboot flash

It is helpful to flash files on an Android device.

No need to worry about the recovery of commands; with the help of flash recovery, you can recover them.

# List of ADB Shell Commands #

Below, we are discussing the list of ADB Shell commands.

  • adb shell

This command will start the remote shell command console.

  • adb shell pm uninstall -k –user 0 

It is useful to uninstall the system app on the Android device.

  • adb shell dumpsys

Dumping all the available system data regarding the Android device’s hardware and software configuration is useful.

  • adb shell dumpsys display

This will show all the hardware and software configurations regarding the display.

  • adb shell dumpsys battery

It is helpful to show all the hardware and software configurations concerning the battery.

  • adb shell dumpsys battery stats

This command gives all the information and displays the battery statistics.


  • adb shell wm density

With the help of this command, the user can modify the pixel density on the Android device.

  • adb shell pm list packages

It provides the complete list of all apps installed on the device as package names.

  • adb shell pm list packages -s

This gives the overall list of all system apps installed on the device as package names.

  • adb shell pm list packages -3

It offers a list of all the third-party apps installed on the device as package names.

  • adb shell pm list packages -d

Shows the list of all disabled apps on the device as package names.

  • adb shell pm list packages -e

It gives the enabled apps list available on the device as package names.

  • adb shell pm list packages -u

This will provide the complete list of uninstalled apps and installed pages on the device as package names.

  • adb shell screencap /sdcard/screenshot.png

This command will take a screenshot of the device screen, save it to the SD Card, and name it ‘screenshot.png ‘.

  • adb shell screenrecord /sdcard/screenrecord.mp4

It will help to record the device screen, save the video on an SD card, and name it ‘screenrecord.mp4 ‘. The default recording time of the video is 180 seconds; if you want to stop the recording, press Ctrl+C.

  • adb shell screenrecord –size 1920×1080 /sdcard/screenrecord.mp4

This command is used to record the screen with the custom width and height of the video.

  • adb shell screen record –time-limit 120 /sdcard/screenrecord.mp4

It is also a command to record the screen by using the custom time limit of the video; 180 is the maximum value, and the user is completely allowed to type any value instead of 120 in this command.

  • adb shell screenrecord –bit-rate 4000000 /sdcard/screenrecord.mp4

This command is useful for screen recording with the help of a custom bit rate for the video; the value ‘4000000’ is equal to the 4MBPS bit rate.

  • mkdir /sdcard/AndroidMore

It is used to make the new folder that is named AndroidMore below the SD card.

  • cp /sdcard/filename.apk /sdcard/FolderName/

This command will copy a file.

  • mv /sdcard/filename.apk /sdcard/FolderName/

It helps to move the file.

  • mv /sdcard/filename.apk /sdcard/anotherfilename.apk

By using this command, you can rename the file.

  • adb shell < Press Enter and then execute the cd /system command>

It means the commands modify the directory to the system.

  • adb shell < Press Enter and then execute the rm -f /sdcard/facebook.apk command>

This command will delete the file in the Android device; you must give the file name with a certain path.

  • adb shell <Press Enter and then execute the crm -d /sdcard/Facebook command>

It will delete or remove the folder on the device, and you must give a folder name with a suitable path.

  • adb shell <Press Enter and then execute the netstat command>

Using this command, you can check the network statistics of the device.

  • adb shell <Press Enter and then execute the ip -f inet addr show wlan0 command>

It shows the device’s WiFi IP address.

  • adb shell <Press Enter and then execute the top command>

This command will display the top CPU processes running on the device.

  • adb shell < Click on Enter and execute the getprop command>

It is helpful to get the properties of the Android’s build prop configuration.

  • adb shell< Press Enter and then execute the setprop net.dns1 command>

Using this command, the user can easily set the values available on the Android’s build. Prop configuration files and download ADB fastboot commands.

The above list of ADB and fastboot commands the user can easily use on Android.

In this article, we also provide the pre-requirements to run the ADB & Fastboot commands, explain the steps to enable the USB Debugging mode, and install/set up the ADB & Fastboot Commands on your device.


The user must follow some pre-requirements before installing the ADB and Fastboot commands on your device.

  • Initially, you must Install/set up the your devices and Fastboot drivers by unloading the Android SDK platform tool and fastboot and ADB files.
  • Then install Minimal ADB and fastboot flash tool.
  • Next, you must enable the USB Debugging mode if you’re using an Android device and enable the OEM Unlock on Android.
  • Connect the device to a PC using a USB Data cable.

Enable USB Debugging Mode:

Here, we provide the steps to enable the USB Debugging Mode; if you want to use the ADB or Fastboot commands, the user must enable the USB Debugging mode on their device.

These are steps for an Android device.

  • On Android, navigate to Settings.


  • Then select the About Phone option.


  • Now the user must click Build Number 7 times, and it shows a message, i.e., You are now a developer, or Developer mode has been enabled.


  • Next, return to Settings on Android.


  • Then select the System option.


  • After that, move to Developer Options.


  • You need to enable/ turn on the USB Debugging button. It will show a pop-up; Simply Tap on the OK button.


  • The user can unlock the Bootloader and then Enable/Turn on the OEM Unlocking.


Last, connect the phone to the computer and use the ADB & Fastboot commands. The user can easily use the ADB commands, but when it comes to Fastboot Commands, the user must boot the phone with the help of Bootloader mode/Fastboot mode; the user can also use the key combination to boot the phone along with its state.

Usually, the key combination changes based on the user’s device; it is quite a common method to boot any phone into Bootloader, which is only possible with the ADB command.

How to Install Fastboot on Android?

Here we are clearly explaining the steps to install the fastboot on Android. To use the ADB & Fastboot commands, the user must initially connect the Android device or emulator with the help of a USB cable and also connect with the Bootloader or Fastboot.

  • If you want to boot in fastboot mode, press the Volume Down + Power buttons and hold them for 3 to 4 seconds.
  • Enable the Fastboot mode simply by tapping the Volume Up Key.
  • Restart the device into Bootloader mode or fastboot.
  • Then, you must connect your Android device to a PC, Mac, or Linux.

How to Install ADB on Windows, Linux, and macOS?

  • If you want to run the ADB commands, the user must initially install the ADB and Fastboot Platform Tools and go and visit the official tools available on Google.
  • Once completed installation, the user can execute the codes through Command Prompt or PowerShell Windows.
  • Move to C:\adb and use the Powershell or Command Prompt.
  • To see the installed tools, move to C:\adb\platform-tools.
  • You need to press the Shift Key on the empty location and right-click on it to launch the PowerShell.
  • To launch the Command Prompt, move to platform-tools folders available on the address bar and then enter cmd and hit Enter.


  • Start using the commands on Command Prompt.

Frequently Asked Questions

1. What are the advantages of using Fastboot Commands on Android?

There are many advantages of using fastboot commands on Android.

  1. It easily fixes the issues on the device.
  2. With the help of fastboot, the data is directly written on the device’s flash memory.
  3. Useful for flash images like kernels, recoveries, and bootloaders to the device.
  4. Enabling the fastboot that will allow the flash and unlock of the device.
  5. It also repairs the device.

2. How can I know if ADB is working?

To check whether the ADB works, move to Settings, go to Developer options, and click Android Debugging or USB debugging. Then, it shows that if the X indicates the device’s original serial number, it decides whether the ADB is working or not if it is set up.

3. Is ADB safe to use or not?

ADB is completely safe to use if you over use of this may lead to the operations on the device; it all depends upon the serial number of the device that confirms the working of ADB on the device.

Final Conclusion:

This article discusses the complete list of useful ADB and Fastboot Commands, explains the basic information of ADB and Fastboot commands, gives the commands list of ADB Shell, and explains the pre-requirements and steps to install the ADB and Fastboot Commands.

For people who want to enjoy various functions with the help of ADB and Fastboot commands on their devices and are eagerly searching for the list of useful ADB and Fastboot commands, for that type of people, this article is the best reference to know about the commands; these are very easy and simple performs various functions useful in many aspects.

Similar Posts

Leave a Comment