It also allows flashing of unsigned partition images – useful for flashing any non-official ROM images. Technically – Fastboot is the protocol used to update the flash filesystem in Android devices from a host over USB.
Updating to new ROMS, flashing alternative recovery partitions, or flashing your own ROM image are functions that require the fastboot interface / client. Where ADB provides a direct terminal level interface into the Android OS, Fastboot provides an interface into the boot manager providing a way to update the OS partitions on the device. Issues a shell command in the target emulator/device instance and then exits the remote shell.įastboot is the second highly necessary Android hackery tool, and it is installed as part of the Android SDK, and as part of Android Studio. Instead, the ADT plugin handles the packaging and installation of the application for you.
Note that, if you are using the Eclipse IDE and have the ADT plugin installed, you do not need to use adb (or aapt) directly to install your application on the emulator/device.
apk file that you can install on an emulator/device instance, see Building and Running
This will let yo communicate with your phone by connecting it through USB cable to your computer system.For more information about how to create an. In order to start using these SDK platform tools, you must turn-on the USB debugging mode in developer options on your Android phone. It is used to flash the file from bootloader mode This fastboot command is used to unlock the bootloader
Shows the serial number of the connected Android device “Note: Both Adb and Fastboot are installed simultaneously when you extract SDK platform tools.” Fastboot Commands Fastboot devices With Fastboot, you can unlock the Android bootloader and install your own customized operating system. So here is a very useful tool called Fastboot that works with an Android device even if it is in bootloader mode. How can you control or give commands to an Android device when it is in bootloader mode? Yes, the debugging commands only work when the Android phone is on. Now pressing shift key on the keyboard and right click on the blank space on the screen and select open command windows here. OR alternatively, on your system navigate to the folder where the zip file is extracted. Now you can use adb commands by typing adb and use other suffixes as per your requirements. So your effective command line will show c:\adb\platform-tools Now type cd platform-tools in front of c:\adb It will take you inside adb folder like c:\adb This will move you to the Root drive i.e C drive. Next, to run the adb.exe command, you need to first move to its containing folder. Press “windows” + “R” keys on the keyboard and you will get run-command window on the screen, now type cmd to open the command prompt. Now, to use the adb command, open command prompt. In this folder, you will see the adb.exe and other supporting files. So, now if you navigate to C Drive, you will see a folder named adb, open it and there is a subfolder named platform-tools. Extract the file and the type the target location as c:\adb for the extraction of files. The file will be downloaded in a zip format. Ok! Now open this download link and select the download file as per the operating system of your computer. Google has provided direct links to install adb on your computer system. To install adb, there is no need to install complete Android Studio or SDK manager. Installs application from your system’s apk file location on to Android device. Shows all the connected adb compatible devices Moves the file from Android to your System To move a file from your local system to an Android phone’s location. Reboots Android device in bootloader mode Some Examples of Common ADB commands Adb reboot-bootloader ADB commands can be used for different functions that include complete backup of Android system, uploading of files and ROMs directly from your PC, enables shell mode on Android phone, rebooting, turning on the bootloader mode and many other tweaking settings.