0% found this document useful (0 votes)
91 views

Using ADB and Fastboot - PixelExperience Wiki

The document discusses installing and using the Android Debug Bridge (adb) and fastboot tools. It covers downloading adb and fastboot, setting them up on Windows, macOS and Linux, and describes how to configure a device for use with adb by enabling USB debugging. Popular adb commands are also listed.

Uploaded by

Shaik Shoeb
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Using ADB and Fastboot - PixelExperience Wiki

The document discusses installing and using the Android Debug Bridge (adb) and fastboot tools. It covers downloading adb and fastboot, setting them up on Windows, macOS and Linux, and describes how to configure a device for use with adb by enabling USB debugging. Popular adb commands are also listed.

Uploaded by

Shaik Shoeb
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Using ADB and fastboot

Table of Contents
What is adb?
Installing adb and fastboot
On Windows
On macOS
On Linux
Se ing up adb
Se ing up fastboot
Popular adb commands
Need help?

What is adb?
The Android Debug Bridge (adb) is a development tool that facilitates communication between an Android device and a personal computer.
This communication is most o en done over a USB cable, but Wi-Fi connections are also suppo ed.

adb is like a “Swiss-army knife” of Android development. It provides numerous functions that are described in detail by the command adb --
help. Some of the more commonly used commands are listed in the “popular adb commands” section below.

Installing adb and fastboot


Google hosts zips including only adb and fastboot. You can set these up for use with the instructions below.

On Windows
1. Download the Windows zip from Google.
2. Extract it somewhere - for example, %USERPROFILE%\adb-fastboot
3. On Windows 7/8:
From the desktop, right-click My Computer and select Prope ies
In the System Prope ies window, click on the Advanced tab
In the Advanced section, click the Environment Variables bu on
In the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit bu on
Append ;%USERPROFILE%\adb-fastboot\platform-tools to the end of the existing Path de nition (the semi-colon separates
each path entry)
4. On Windows 10:
Open the Sta menu, and type “advanced system se ings”
Select “View advanced system se ings”
Click on the Advanced tab
Open the “Environment Variables” window
Select the Path variable under “System Variables” and click the “Edit” bu on
Click the “New” bu on
Inse %USERPROFILE%\adb-fastboot\platform-tools in the text eld
5. Install the universal adb driver, and reboot.

On macOS
1. Download the macOS zip from Google.
2. Extract it somewhere - for example, ~/adb-fastboot.
3. Add the following to ~/.bash_profile:

if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then
export PATH="$HOME/adb-fastboot/platform-tools:$PATH"
fi

4. Log out and back in.


On Linux
1. Download the Linux zip from Google.
2. Extract it somewhere - for example, ~/adb-fastboot.
3. Add the following to ~/.profile:

if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then
export PATH="$HOME/adb-fastboot/platform-tools:$PATH"
fi

4. Log out and back in.


5. You may also need to set up udev rules: see this repository for more info.

Se ing up adb
To use adb with your device, you’ll need to enable developer options and USB debugging:

1. Open Se ings, and select “About”.


2. Tap on “Build number” seven times.
3. Go back, and select “Developer options”.
4. Scroll down, and check the “Android debugging” or “USB debugging” entry under “Debugging”.
5. Plug your device into your computer.
6. On the computer, open up a terminal/command prompt and type adb devices.
7. A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”.

Congratulations! adb is now ready to use with your device.

Se ing up fastboot
Using fastboot (if your device suppo s it) should simply involve rebooting to fastboot mode. While in fastboot mode, you can type
fastboot devices to verify that your device is being detected.

Popular adb commands


adb shell - launches a shell on the device
adb push <local> <remote> - pushes the le <local> to <remote>
adb pull <remote> [<local>] - pulls the le <remote> to <local>. If <local> isn’t speci ed, it will pull to the current folder.
adb logcat - allows you to view the device log in real-time. You can use adb logcat -b radio to view radio logs, and adb logcat -C to
view logs in colour
adb install <file> - installs the given .apk le to your device

Need help?
You can nd assistance with PixelExperience on our Telegram group.

© 2018 - 2020 The PixelExperience Project Licensed under CC BY-SA 3.0.


Site last generated: Dec 30, 2020

You might also like