You might be aware of what rooting is and what it can do to help you with your Android device. Using fastboot commands for Android, Windows, Mac and LINUX can help you get full privileges, access or root access to your device. Through ADB fastboot commands you can get much freedom to enjoy your device.
ADB fastboot commands are crucial, but rooting enlarges the number of options you can get to customize and utilize your device, whether it’s your smartphone or your PC at the admin level. ADB and fastboot are a part of SDK platform tools that help in debugging and modifying Android devices using the command terminal on a computer. They can be used to perform different command line operations using a computer. The protocols can be used by developers and enthusiasts.
What is ADB Fastboot?
ADB stands for Android Debug Bridge whereas fastboot is a command line tool as well as a protocol. They both work together as a communication Bridge between your PC and an Android device. It can be used to reboot the bootloader, modify the partitions on your device, and enable or disable auto OEM unlock.
To work with ADB fastboot you would have to download the Android SDK platform tools that will include the ADB and fastboot files. You would install them and the very next thing you need to do is install the Android USB driver from your device OEM. Last but not least, you will be requested to enable the USB debugging on your device.
USB debugging can be found under the developer options on your Android device. To enable it, you would have to go to settings > about phone > Tap the build number 7 times. Once done, you will receive a message stating “you are now a developer!”. Now, return back to the settings menu page and you will be able to locate the developer options on the bottom of the page.
Fastboot commands requires a connected Android device that is booted in bootloader mode. However, ADB commands just require an Android device or an emulated connected via USB. You can boot your Android device for PC or Tablet into the fastboot mode by pressing the volume down + power button simultaneously for 2 to 3 seconds.
Now, connect your phone to a PC. It can either be Windows, Mac or Linux and execute the following commands one after the another. Make sure that your Android device screen is unlocked.
WARNING: If you are new to fastboot commands, you must know that fastboot commands can damage your device. Please use them carefully. You can refer to a reliable tutorial. Fastboot commands do not necessarily work for all Android devices. They did differ from OEM to OEM depending on their compatibility.
Once you hit the enter key after entering the command as mentioned above, you will see the connected device on your command window. Once you have ensured that a proper connection has been built, you can execute the following command mentioned below.
Adb reboot bootloader
Once you have entered the command mentioned above, Your Android device will reboot into the fastboot mode.
fastboot devices – Using this fastboot command you can check if a device has been detected and recognised by your PC or not.
Fastboot oem device-info
This fastboot command will display a detailed list of information about your Android device. Similarly you can add the command after fastboot OEM to perform certain tasks and get more information.
fastboot oem unlock – The command itself can be understood that it is used to unlock the bootloader on Android devices from OEM’s like Google, OnePlus, Motorola, Nokia, etc. To unlock the bootloader you might need an unlock key from your device manufacturer.
fastboot oem lock – The bootloader can be locked as well. Once the bootloader is unlocked, you can lock the bootloader as well using the command fastboot oem lock.
fastboot reboot – To reboot your device into the ROM
fastboot reboot recovery – Reboots android devices into the recovery mode.
fastboot reboot bootloader – You might need to reboot the Fastboot or Bootloader mode while flashing images.
adb pull /file-location-on-device/filename – To ‘pull’ any file from your device and send it over to PC
adb push filename /location_where_file_is_to_be_sent_on_device – To ‘push’ any file to the device from PC.
adb sideload filename – Flash (install) zip files directly from the command shell.
adb start-server – When you need to start the ADB server, in case it does not automatically “kills the daemon” and “start on a specific port”.
adb kill-server – If the command tool gets hanged or is not performing as expected, you may kill the server.
adb install filename.apk – To install an APK file on your device.
adb install -r filename.apk – To reinstall or update an APK.
adb install -s filename.apk – To move the app to sdcard.
adb uninstall filename.apk – To uninstall an APK file on your device.
adb shell – To interact with your device’s operating system.
adb reboot bootloader – To boot the device to Fastboot or Bootloader Mode.
adb reboot recovery – To boot your device to TWRP or stock recovery from the booted OS.
adb shell screencap /sdcard/screenshot.png – To capture screenshot from your device.
adb pull /sdcard/screenshot.png – To download the captured screenshot to your PC.
fastboot erase userdata – To erase all the userdata on your device.
fastboot -w – This will erase everything from your device.
fastboot reboot – To reboot your device to Android OS.
fastboot flash – This command can be used to flash the zip files, factory images, recovery, boot, radio systems and other images to your android device. Check out the examples below:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
Experiencing difficulties with your Device, check out our “How To” page on how to resolve some of these issues.