Skip to main content

How to use adb and fastboot?




What is adb? 

  • adb stands for "Android debug bridge" it works as a bridge between Android phone and a Computer, where user connects the Phone with computer using USB, User can Debug the android with adb commands 
What is Fastboot?

  • Fastboot is a android recovery software used to perform operations related to boot loader, Fastboot mainly used to Unlock bootloader, Flash Partitions like recovery, system, vendor, etc. This all things can be done by passing commands to phone with Fastboot through computer 
How to setup adb and Fastboot ?

Requirements 
  • Windows/Linux based computer
  • Adb setup file - Download
  • Android Device and USB cable 
Steps to install adb setup
Step 1 - Download and install adb setup in your Windows PC




if you have Linux based PC then type the following commands in terminal 
  • sudo apt-get update
  • sudo apt-get install android-tools-adb 
  • sudo apt-get install android-tools-fastboot 





Step 2 - After completing setup of adb and fastboot open your phone's setting search for about phone option
  • click 7 times on about phone to enable Developer Mode 
  • search for Developer mode and enable USB Debugging 


Step 3 - Now connect your Phone with PC using USB Cable and update your device drivers  
  • Open Command prompt/ Terminal in your PC  
  • Type the command and you can operate the adb and fastboot 
Some useful Adb and fastboot commands 
  • Check adb connected devices-     "adb devices"
  • Install/uninstall apks using adb-    "adb install <package_name>" , "adb uninstall <package_name>
  • Reboot to bootloader/fastboot-    "adb reboot bootloader"
  • Use terminal/shell of android-    "adb shell"
  • Normally reboot from fastboot-    "fastboot reboot"
  • Unlock bootloader in fastboot mode-    "fastboot flashing unlock" 
  • Flash partitions in fastboot mode-    "fastboot flash <partition_name> <file_name>     Example- fastboot flash recovery Twpr_recovery.img








By customrom.co.in





 

Comments