Must-Have ADB Commands!

Must have adb commands!

ADB commandsallows you to perform a wide variety of tasks on the phone, including some that are difficult or even impossible.

Android Debug Bridge (ADB) (English: Android Debug Bridge) is a command line tool that allows you to interact with your Android device from your computer, available for Windows, Mac or Linux. Android SDKpart of.

run ADB commandsfor you to know;

  • on your phone Developer optionsthat you open,
  • on your phone USB debugging activate the feature
  • to your computer Android SDK Platform-Tools You need to install the package.

How to open developer options?

ADB commandsIn order to use the opening developer options ve USB debuggingmust be enabled.

Android Developer Options menuWhat you need to do to access what is only a few steps and the menu can be revealed quite simply.

Getting to Android Developer Options for:

  1. Settings > System > About follow the steps.
  2. Build Number Find the section.
  3. You are currently a developer! Tap the Build Number section several times in succession until you see the warning.

At the end of this process Enable Developer Optionsyou will be.

Developer options Settings will appear in the (On some phones this menu Additional settings part)

Developer Options on Android devices after being active USB debugMan has to be active.

How to turn on USB debugging?

USB debugTo activate ma:

  • Settings > Additional settings from the section to developer options tap.
  • found on this page USB debugging Turn on the option.

Must-Have ADB Commands!

How to install Android SDK?

In order to run ADB commands on the computer, you need to install the Android SDK Platform-Tools package.

Must-Have ADB Commands!

You can extract the downloaded archive as a folder to any directory on your device. You do not need to do any installation after this step.

Now ADB commandsYou are ready to start!

ADB Commands That Will Help You

Show connected devices

ADB commandsWhen using , you need to make sure that the device you want to interact with is actually connected to your computer. ADB can sometimes have difficulty “seeing” connected smartphones or tablets.

The following command will make the US ready to communicate with your Android device:

After entering this command, the serial number of your connected devices should appear in the command prompt/Terminal.

Restart your device

This command will reboot your device in normal mode. You usually run this command after you have installed something on your device and need to reboot.

This command can also be useful when you encounter problems with your Android device (for example, when your smartphone suddenly becomes unresponsive).

Restart device in recovery mode

Android devices have a recovery mode, which is a special bootable partition. If you are experiencing problems with your Android device, you can fix them by booting into recovery mode.

If you want to restart your device in recovery mode, you can issue the following command:

Your device will shut down and then reboot into recovery mode. If you did a custom recovery, this will install instead of stock Android’s recovery.

Reboot device in Bootloader mode

The bootloader is the first thing that runs when you start your Android device. If you want to unlock the bootloader, reboot in recovery mode, or perform other rooting-related tasks, you need to boot your device in bootloader mode.

Reboot device in Fastboot mode

Android’s fast boot mode helps you flash custom ROMs as well as custom recoveries. Instead of going into the bootloader and selecting fastboot, you can directly switch to fastboot mode using the following command:

Send files to your device

Like OpenMTP, there are many apps dedicated to helping you transfer files between your computer and Android device. However, if you only want to transfer the file occasionally, downloading the entire app might feel like an overkill.

this adb pushcommand lets you send files to your Android device. Simply specify the source location of the file and the destination to which you want to send this file:

For example, you might have a file named “myapplication.apk” stored on your Desktop that you want to send to the “downloads” folder of your smartphone. In this scenario, your ADB command might look like this:

The file will now be transferred from your laptop or computer to the “Downloads” folder of the connected smartphone or tablet.

Receive files from your device

We looked at pushing files, but it’s also possible to pull them. This ADB command lets you pull a file from your Android device to appear on your connected laptop or computer.

Simply specify the file you captured and the location where it should be stored on your computer:

Let’s say we want to take a “myphoto.jpg” file from our smartphone or tablet and save it on our Desktop. The command will look like this:

Install an app on your device

When you download an app from a source other than Google Play, you may need to send that app from your laptop to your smartphone or tablet as an APK file.

To install an APK file, simply specify the location of that APK:

For example, to install an APK named MTE.apk stored on the Desktop, you would run the following command:

This APK file will then be transferred to Android and installed automatically.

If you want to update an existing application use:

Remount the system

Sometimes you may need to reinstall the entire system of your device. This puts the “/system” partition in writable mode and must be run before sending any files to that partition. Note that it is possible to remount it to a rooted Android device.

Sideload system updates

Tired of waiting for system updates to propagate to your device? Download them manually and then install them on your Android device with the ADB sideload command. You can find updates directly from Android and from your device manufacturer.

As a warning, if you are trying to install updates on an older device, it may not work. For example, if you are trying to update an Android 7 device to Android 12, the old device may not be able to handle the newer and more robust operating system, which may break your device.

Once you find your update, use the following:

Create and restore a backup

While there are many backup apps available, you can create your own Android backup using the backup command. This does not guarantee that all app data will be backed up, but all files stored on your device, apps, files stored on an inserted SD card, and system apps can be backed up. This is ideal if you need to restore your Android device at any point.

The basic backup command is:

This will create a backup in the current directory. After the backup is complete, you can move the file wherever you want. This backup will only back up certain apps, system data and files. For a full backup, use:

Full backups may take some time to complete, depending on how much data is stored on your device.

When you want to use the backup to restore files to your device, use the following:

Make sure the backup file is in the same directory as the adb tool. Otherwise, enter the path of the backup file in addition to the filename

In our article here It will help you to use your phone or tablet more efficiently. 32 hidden settings unlocked with Android Developer OptionsWe will talk about.

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × five =

81 − = 71

Scroll to top