ADB and Fastboot basic commands.

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-devices

adb-devices

«Adb push » It is the command with which we send a file to our device. We specify the path where we want the sent file to be saved.

adb-push

adb-push

“Adb pull This command allows us to copy a file from the device to the computer.

“Adb install With This command can install applications in apk format on the device.

adb-install

adb-install

“Adb uninstall This command allows us to uninstall an application, in apk format on the device.

“Adb shell” It allows us to control the device in text mode. It is an option for advanced users.

adb-shell

adb-shell

“Adb reboot” Restart the device in normal mode, to load Android (or the installed operating system) automatically.

adb-reboot

adb-reboot

“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-devices

fastboot-devices

“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 The command allows us to load an image of the operating system to test it without having to write the data in the internal memory. Used more by developers to test a new kernel or recovery.

That’s it. This is the guide on ADB and Fastboot basic commands