ADB and Fastboot basic commands. Tools used especially by developers and also by users who for example want to change a ROM or install a custom RECOVERY or to ROOT. ADB and Fastboot work from an MS-DOS window and can be installed from this link.
ADB and Fastboot basic commands
ADB, basic commands.
“Adb devices” With this command we can see on the screen the list of devices connected in adb mode to the computer. It can be the first command that we write to find the device that interests us and check that the communication is correct and the drivers are adequate.
«Adb push
“Adb pull
“Adb install
“Adb uninstall
“Adb shell” It allows us to control the device in text mode. It is an option for advanced users.
“Adb reboot” Restart the device in normal mode, to load Android (or the installed operating system) automatically.
“Adb reboot-bootloader / reboot recovery” With these commands we have the option to restart the device in the bootloader mode or in the recovery mode.
ADB and Fastboot basic commands
Fastboot, basic commands.
When we are in bootloader mode we can control the device with the fastboot commands, which only work when our device is in bootloader mode.
“Adb reboot-bootloader” We use the command to automatically reboot the device in Fastboot compatible mode.
“Fastboot devices” With this command we will check that the device we want is correctly connected to the computer and is detected by the tool.
“Fastboot oem unlock” The command is used by manufacturers such as Sony or Google on devices to release the bootloader and be able, for example, to install a recovery or root.
“Fastboot flash” With this command we can flash any downloaded .img file for the device.
Common flash examples:
fastboot flash recovery recovery.img -> Flash and install the recovery on the device.
fastboot flash boot boot.img -> Change the device’s boot system.
fastboot flash radio radio.img -> Install the new radio drivers.
fastboot flash system system.img -> Install a new complete system.
“Fastboot flash all” With this command we can automatically flash all the .img files that we have copied in the adb and fastboot path.
“Fastboot boot
That’s it. This is the guide on ADB and Fastboot basic commands