Have you even once tried your hand to figure out the hidden secrets of Android? To your amazement, indeed, you can control and change anything on any Android device with various ADB Fastboot commands. With these ADB Fastboot commands, you will thus be able to repair, update and even unlock your devices. So, relax and let us take a deep look at these ADB Fastboot commands. But before we move on, let us take a look at what ADB and Fastboot even are.
ADB is short for “Android Debug Bridge” and is hence a CLI (command-line) tool that works as a client-server structure to communicate with any Android device connected via USB to a PC.
It acts as a gateway between devices and performs a variety of actions such as installing or uninstalling apps, copying files back and forth, debugging apps, etc.
ADB also gives you access to a Unix shell that allows you to run a variety of commands on a device. ADB is part of the Android SDK “Software Development Kit” and consists of 3 main components namely, a client, a daemon, and a server that work when the device is powered on and booted into OS Recovery.
Fastboot is a diagnostic tool used to flash/change multiple files on an Android device when it is connected to a PC via USB. It starts on your device even before Android is loaded. Also, it loads the OS when a phone is powered on with a unique boot state that supports the command line interface, except for reboot or restart. It is the primary process that starts when you boot the Android phone.
This Fastboot mode thus allows you to unlock or relock your bootloader, install custom files and stock files, and install various core Android system files. It is also an alternate to recovery mode for installations, updates, and much more.
ADB Fastboot Commands List
ADB and Fastboot commands are powerful system utilities that help you access the backend of the Android system when it is connected to a PC, which is mostly used by Android developers and enthusiasts. These commands thus, have different functions and effects on Android phones and provide an additional layer of functionality on the devices. Let’s get down to see some amazing commands now:
Note all the below ADB commands have a prefix of “adb“. So, I will not be writing the same as it is well understood for the sake of uniformity.
|ADB Command||What does it do?|
|help||To thus throw up the ADB documentation.|
|devices||To thus see a list of all Android devices connected via the ADB.|
|reboot bootloader||Thus rebooting your device in Fastboot/bootloader modes.|
|recovery||To thus reboot into the recovery mode.|
|install filename.apk||To hence install an APK file|
|uninstall filename||To hence uninstall any file|
|logcat||To thus see the log data|
|jdwp||To thus see the list of all JDWP processes on your devices.|
|get-serialno||To see the ADB instance serial number string with the device.|
|get-state||To thus get the status of your device.|
|wait-for-device||Used to hence issue a delay before issuing the subsequent command.|
|start-server||Thus starting ADB server process.|
|kill-server||Thus stopping the server process.|
|pull||To thus pull any file from your device.|
|push||To thus push a file into your Android device.|
|shell||To thus start the shell console.|
|shell dumpsys display||It thus helps to display all display hardware and software configurations.|
|mkdir/sdcard/Shubham||To thus create a folder named ‘Shubham’ under ‘/sdcard’|
| shell (press Enter)|
ip -f inet addr show wlan0
|To thus display the phone’s Wi-Fi IP address.|
| shell (press Enter)|
|To thus view top CPU processes running.|
Fastboot Commands List
Note that all the below Fastboot commands have a prefix of “fastboot“. So, I will not be writing the same as it is well understood for the sake of uniformity.
|devices||To get a list of the various devices connected to your PC in Fastboot mode.|
|oem unlock||This command is hence used to unlock your bootloader.|
|oem lock||To thus relock your bootloader.|
|reboot bootloader||To also reboot into Fastboot/bootloader mode|
|flash||To thus flash your files on your device.|
|flash boot boot.img||This thus flashes a boot image on the device’s boot partition.|
|flash recovery recovery.img||This thus flashes a recovery image on the device’s boot partition.|
|boot filename.img||It thus boots the file.|
WRAPPING UP < — > ADB Fastboot Commands
This post has thus been out and through an interactive guide on Fastboot and ADB. We have hence seen numerous and actually most of the commands in Fastboot and ADB. A note of caution though, prepare to use these commands under the guidance of an expert or at your own risk. Because before using these commands, you need to root your devices. Thus, on a parting note, hoping that I have done my task wholeheartedly, I bid you ta-ta and a huge goodbye!! 🙂