The Ultimate List of ADB & FastBoot Commands for Android 2019: Android being the light and small counterpart of the Linux operating system has the shell commands running on its core compared to all user-friendly tap ‘UI’.And many times, when everything else doesn’t work, the last man standing will be the command console.
ADB or Android Debug Bridge does what the name says. And it’s the most effective way to control your Android device using your PC, from transferring files to running scripts. Quite often with the enthusiasts, it’s the only way to interact with your device when you’ve broken or messed up something with the software (you know what I mean). It’s very similar to the Linux Commands and you have an upper hand if you are familiar with it. But if you’re not, don’t worry. We got everything in our store to get you groomed and ready.
So, let’s take a look at the ADB commands and FastBoot Commands for Android that might make a difference between a minor heartache and a major heart-attack for you. (No pun intended!)
You can’t interact with your device if you don’t have appropriate methods to interface them. That’s where the ADB drivers come into play. You can get them for Windows, Linux, and Mac. Often, your phone’s manufacturer will provide them at their site. If not, grab from the web!
Official Update > Download Latest ADB and Fastboot SDK Platform-Tools (2019)
Next thing is, you must’ve USB debugging turned on for the ADB to work properly. If you’ve wondered what that was for? This is the answer. ADB.
Now that we’ve got everything required, fire up the adb utility you downloaded and connect your phone to the PC and let’s start![icon name=”hand-o-right” class=”” unprefixed_class=””] Most common ADB & FastBoot Commands for Android
adb [-d|-e|-s <serialNumber>] <command>
The syntax is the format you should follow when giving an instruction, for the system to recognize it.
The -d, -e and -s are parameters that specify the device to which the adb shell should tunnel the commands to.
-d –(direct) Specifies that the device is connected to USB. Can return an error if more than one is connected.
-e — Specifies that an emulator is running and adb should communicate with the emulator.
-s<serialnumber> —When there are multiple devices, commands are directed to each individually by using their adb serial number.
Most Used ADB & Fastboot Commands for Android 2019
- adb devices – Shows all the devices adb can run on
- adb help – Displays the Help Documentation on ADB commands.
- adb install <path_to_apk> – Installs the apk file at the specified location.
- adb pull <device> <local> – Copies a file from the device to your system.
- adb push <local> <device> – Copies a file from your system to the device.
- adb logcat – Displays the log data onto the screen.
- adb bugreport – Displays the dumpsys, dumpstate and logcat data on the screen.
- adb jdwp – Lists the JDWP processes on the device.
- adb get-serialno – Prints the adb instance serial number string with the devices.
- adb get-state – Shows the status of the device.
- adb wait-for-device – It’s a command used to program delay before next command is issued. Generally, it executes when the device is online but it can be programmed to wait till another process is done. Like, installing an apk.
- adb start-server – It starts the adb server process.
- adb kill-server – It stops the adb server process.
- adb shell – It starts the remote shell command console in the device and lets you control the device through it.
- adb shell [shellcommand] – It’s used for an instance alone in case a particular command alone is required. After the execution, the shell terminates itself.
- forward <local> <device> – Forwards the socket connections from system ports to device. It can be used with various operations such as tcp and jdwp.
- ppp <tty> [parmeters] – These allow PPP over USB connection. They are serial line tunneling services. If you don’t know what they do, don’t mess around!
ADB & FastBoot Commands for Android:
There are ways you can turn your phone on and off without even touching the power button. And that’s the power of ADB. Flashboot is another tool that can be used to do a lot of critical operations just from the command console. You can launch the flashboot as an application or from the adb program shell itself.
- adb reboot-bootloader – This command can take you directly to the bootloader, which otherwise would’ve have driven to the edge with cumbersome key combinations and stuffs.
- adb reboot-recovery – This command like the previous one, can save you a lot of time to get into recovery mode quickly. Instead of the dreadful trial and error methods of hardware keys.
- adb fastboot – The enables the fast boot mode of your android device. You can notice how soon the phone fires up all ready for you to use with this command. It’s also a great way to flash custom updates, recovery and kernels.
- fastboot flash <xxxxx>.zip – It can flash a .zip file when in fastboot mode.
- fastboot flash recovery <xxxx.img> – It flashes a recovery image.
- fastboot flash boot <xxxx.img> – Flashes a kernel image.
- fastboot getvar cid – Displays CID of the device.
- fastboot erase system/data/cache – It wipes your system, data and cache. But beware that unless you have a backup for the system or you’ll flash a new one, your phone is as good as a brick.
- fastboot flash system/data/cache [system/cache/data .img] – It can flash images of system, data and cache to the device.
- fastboot oem get_identifier_token – Generates the device identification token.
- fastboot oem flash Unlock_code.bin – Unlocks the bootloader.
- fastboot oem lock – Locks the bootloader.
So, with all that said, it pretty much covers every ADB & FastBoot Commands for Android. But, messing around with adb can seriously brick your device and we are not responsible for any such events. Do the experiment, but be sure about what you’re doing. 🙂