KEMBAR78
List of ADB Commands | PDF | Android (Operating System) | Computer Architecture
0% found this document useful (0 votes)
227 views3 pages

List of ADB Commands

The document provides an overview of ADB (Android Debug Bridge) and Fastboot commands used for interacting with Android devices via command lines. It outlines essential commands such as adb sideload, adb devices, adb push, and various fastboot commands for flashing and unlocking bootloaders. The document emphasizes the importance of these tools for tasks like installing applications, transferring files, and recovering devices from boot issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
227 views3 pages

List of ADB Commands

The document provides an overview of ADB (Android Debug Bridge) and Fastboot commands used for interacting with Android devices via command lines. It outlines essential commands such as adb sideload, adb devices, adb push, and various fastboot commands for flashing and unlocking bootloaders. The document emphasizes the importance of these tools for tasks like installing applications, transferring files, and recovering devices from boot issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

List of adb commands

ByRootHelpPoposted on July 31, 2016


The ADB tool is a small software that allows us to interact with the system.
from our mobile phone using command lines.

Which would allow us to install files or restore a backup to recover


the system in case the phone does not start correctly due to bootloop or bricking.

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.

Fastboot commands are only recognized when the smartphone or tablet is


finds in bootloader mode, unlike the ADB instructions which are ordered
directly with the mobile phone on.

List of the most important ADB/Fastboot commands and


useful.
adb sideload
With this command, we can flash a file (zip or img, not apk) to the mobile device.
directly from the computer.

Some examples would be, SuperSU.zip or boot.zip.

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>).

adb shell reboot -p


This adb command that invokes an Android shell is used to completely shut down.
the mobile phone.

adb reboot, adb reboot-bootloader and reboot recovery


With the first command we can restart the mobile device normally, in mode
bootloader or in recovery mode.

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 oem unlock


Unlocks the bootloader of some devices, but we must use it with caution.
that deletes all data from the device by performing a hard reset.

Fastboot flashing unlock


This command is the same as the previous one and its function is to unlock the bootloader of the
device.

fastboot flash
Command to flash an .img file on the chosen partition. Example of use:

1.fastboot flash recovery recovery.img (flash to the recovery partition)


2. fastboot flash system system.img (flash to the system partition)

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.

You might also like