Table of Contents

ADB & Fastboot

Install

$ sudo apt install android-tools-adb 
$ sudo apt install android-tools-fastboot

Enable USB debugging

Open your Settings app, and scroll all the way down to System. Then, locate About phone at the bottom of the list. Under About phone, find Build number, and tap it seven times to enable developer options. Next, go back up one level to System. You’ll see Developer options there now. Tap to open it up. There are a lot of options in the Developer tools, scroll until you see the Debugging header. Flip the switch to enable Android debugging.

Connect Your Phone

Open up a terminal. List out the available devices with adb:

# adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
bb6ad1ae	unauthorized

You’ll see a number corresponding to your phone, but it’ll be listed as unauthorized. Turn your attention back to the phone. You’ll have a message requesting access. Accept. Run the command again on your computer to confirm that they’re connected.

# adb devices
List of devices attached
bb6ad1ae	device

Commands