Thứ Hai, Tháng Mười Một 25, 2024
Google search engine
HomeAndroidHow to use ADB and Fastboot on Android

How to use ADB and Fastboot on Android

ADB is often used when trying to run phone apps on a computer, so you can debug errors on your apps, the apps you're creating. And Fastboot is used more by manufacturers to diagnose and repair devices that are having software error problems.

1. What are ADB and Fastboot?

ADB is often used when trying to run phone apps on a computer, so you can debug errors on your apps, the apps you're creating. ADB is used for rooting Android devices.

The reason is because ADB allows you to communicate with an Android phone to some extent, so it is very handy in some cases such as when we want to give commands that allow us to transfer files to the device and then execute all the files in the rooted phone.

Similar to ADB, Fastboot is used to list attached device commands. But in Fastboot mode there are many ways to flash different parts of the Android device (such as updating the system to a new version, deleting all user data, etc.).

This mode is used more by manufacturers to diagnose and repair devices that are having software error problems, but however like ADB, Fastboot can also be used to assist users. during the process of rooting the device.

You can use Fastboot to flash a new recovery image which then allows you to gain root access that way.

In short, when trying to root Android devices, both ADB and Fastboot are the tools you will need to have to set up the device.

Xem thêm  Meaning of names of different types of apples in the world

2. How to set up ADB and Fastboot

To get started with ADB and Fastboot, you first need to set up your phone to use the tools. Turn on Developer Options by going to Settings > About phone and click Build number 7 times.

Then in Settings > Developer optionscheck the box next to it USB debugging and go through the following dialog box.

Download the Platform-Tools SDK
Download the Platform-Tools SDK

Now, download ADB and Fastboot from the Android Developer website. They are part of the Platform-Tools SDK package.

When you unzip the download, the contents will be collected into a folder called platform-tools. There are some other entries in the folder, but you can ignore them.

Note:

If you are using Windows, you also need to download drivers for your device. There is a list of links for many famous manufacturers on the Android developer site. Drivers are not required on Mac or Linux.

Use Command Prompt or Terminal

Open the Command Prompt or Terminal application. To use ADB and Fastboot, you need to change the path in the application to point to the platform-tools folder you downloaded. There are several ways to do this:

  • The standard way is to use the cd command. Enter CD [path to platform-tools] Go to the Command Prompt or Terminal window and press Enter.
  • An easier way is to import CD[space] then drag the folder platform-tools Go to the Command Prompt window – it will automatically fill in the path for you.
  • Even easier, on Windows you can hold down the key Shift while right clicking on the folder platform-toolsthen select Open Command Prompt Here.
Xem thêm  How to set a password to download applications on Android

Important! Differences between Windows and Mac/Linux

Before continuing, there is a small but fundamental difference between using Windows and Mac or Linux that you need to know.

On Mac and Linux, all ADB and Fastboot commands must be preceded by a slash. So where you type adb on Windows, you have to type ./adb on Mac and Linux. And fastboot on Windows needs to be ./fastboot on Mac and Linux.

For simplicity, the article will continue to use Windows commands.

3. How to use ADB

Start your phone, then connect it to your computer using a USB cable. On your computer, launch Command Prompt (or Terminal, if you're using Mac or Linux) and change directory to point to the platform-tools.

Enter adb devices and press Enter. You will now see a list of attached devices, with serial numbers. This shows it's working and your phone is connected.

android adb devices

Enter adb followed by the command you want to execute. A simple example is import adb reboot to restart your phone.

4. How to use Fastboot

Fastboot works just like ADB, except that you need to boot your phone into Fastboot mode instead of Android. You usually do this by holding the power and volume keys together when the phone is powered off.

Alternatively, use ADB and import adb reboot bootloader.

android fastboot devices

Enter fastboot devices to check if your phone is recognized. Enter fastboot reboot to relaunch Android.

Wish you success!

Refer to some more articles below:

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments