List of ADB Commands
List of ADB Commands
From ADB it is also possible to invoke an Android command shell (in shell style
on a Linux server) and be able to issue instructions directly to the operating system
Android.
Fastboot is part of the ADB environment, but the level of control that fastboot gives us
about the mobile device in question, it is much more advanced and profound,
allowing us, for example, to flash and modify parts or the complete firmware of the
mobile device.
adb devices
Command to check that the connection between our device and adb is correct and
as a result returns an identifying number for the connected device. If not
returning no ID would mean that something is wrong with the connection, it could well be a problem of
drivers, cable, device etc.
adb push
Command with which we can copy and transfer files located in the android folder.
computer tools to the path specified on our mobile device.
adb pull
Command that helps us move a file from our mobile device to the path
that we specify about our computer (C:/../../).
adb install
Command with which we can install applications in the specified path of the terminal
connected (adb C:/Application.apk).
adb uninstall
In contrast to the previous command, this one is used to uninstall the application.apk that
Let's point out, if we use it with the -knos option, it will leave the cache and application data.
intact (adb uninstall App.apk).
adb shell
Command to execute scripts, change file permissions or
folders and create new partitions (adb shell <command>).
FASTBOOT: The fastboot commands work when we are in bootloader mode already.
that in this mode the adb commands do not work due to the operating system of the
mobile is not fully started.
fastboot devices
Similar to adb devices, it is used to obtain the ID of the connected device at the same time.
that helps us verify if it recognizes the connection and that we have fastboot installed.
fastboot flash
Command to flash an .img file on the chosen partition. Example of use:
fastboot flashall
Command to flash all .img files from the same directory. (boot.img, the recovery.img,
system.img). Very useful for unbricking.
fastboot boot
Command to test and start with a new recovery or kernel temporarily without it
affects the conventionals, disappears upon restart.