Questions tagged [adb]

ADB (Android Debug Bridge) is a tool that comes with the Android SDK that allows you to control and interface with your Android device.

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:

  • A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
  • A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
  • A daemon, which runs as a background process on each emulator or device instance.

adb can communicate with an Android device through USB (USB debugging must be enabled). When already established, this connection can be transferred to a wireless network using adb tcpip command.

adb is included with Android SDK, or more specifically its platform-tools package, which can be downloaded and installed separately from the SDK:

Also users of 32-bit systems need to use version r23.0.1 - the later versions include 64-bit binaries:

Be aware that while adb shares a lot of code across all supported platforms - some of its code is platform specific. Please provide more details about your environment when asking for help with adb trouble shooting.

6728 questions
1125
votes
37 answers

Run/install/debug Android applications over Wi-Fi?

I thought there was a way to test your applications in development over Wi-Fi. Is this possible? I'd love to be able to untether my phone and develop wirelessly.
Naftuli Kay
  • 75,812
  • 80
  • 244
  • 374
879
votes
37 answers

How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so I cannot connect directly via USB in the guest…
JDM
  • 9,777
  • 4
  • 20
  • 22
650
votes
30 answers

Set up adb on Mac OS X

I spent quite sometime figuring how to set up adb on Mac, so I figure writing how to set it up might be useful to some people. adb is the command line tool to install and run android apps on your phone/emulator
changey
  • 15,519
  • 7
  • 23
  • 31
562
votes
12 answers

How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"

$ adb --help -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) $ adb devices List of devices attached emulator-5554 device 7f1c864e device $ adb shell -s 7f1c864e error: more than one device and emulator
Jackie
  • 17,579
  • 26
  • 116
  • 227
535
votes
24 answers

How do I get an apk file from an Android device?

How do I get the apk file from an android device? Or how do I transfer the apk file from device to system?
Finder
  • 6,789
  • 8
  • 35
  • 52
520
votes
5 answers

Installing ADB on macOS

I had issues finding a good solid tutorial on how to setup ADB for Mac. How can I add ADB to macOS in such a way that it can be used in the terminal? UPDATE For those reading this post. Yes, as the edited response says. I was at the time looking…
wesley franks
  • 5,661
  • 4
  • 13
  • 24
515
votes
13 answers

How to start an application using android ADB tools?

How do I send an intent using Android's ADB tools?
Sean
  • 5,955
  • 7
  • 21
  • 26
515
votes
25 answers

INSTALL_FAILED_NO_MATCHING_ABIS when install apk

I tried to install my app into Android L Preview Intel Atom Virtual Device, it failed with error: INSTALL_FAILED_NO_MATCHING_ABIS What does it mean?
Peter Zhao
  • 6,956
  • 3
  • 19
  • 22
425
votes
71 answers

Android Studio doesn't see device

The AVD Manager in Android Studio doesn't show my device but adb devices does show it. Am I missing something obvious here?
amnesyc
  • 4,464
  • 4
  • 15
  • 17
412
votes
35 answers

ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). It worked fine before reinstallation. Unplug/plug, Uncheck/check "Debug Enabled", adb…
Quak
  • 5,333
  • 4
  • 14
  • 20
349
votes
18 answers

How to access data/data folder in Android device?

I am developing an app and I know my database *.db will appear in data/data/com.****.*** I can access this file from AVD in Eclipse with help of sqlite manager But I can't access this file in my Android phone. I googled it and it says I need to root…
Naveen Prince P
  • 4,072
  • 3
  • 13
  • 17
345
votes
64 answers

Android ADB device offline, can't issue commands

I can't connect to my device anymore using ADB through the command line or in Eclipse. Running the command adb devices returns the device name, but it says it's offline. Things I've tried. Toggled Android debugging mode Reinstalled the Google USB…
Brian
  • 4,030
  • 12
  • 53
  • 96
296
votes
25 answers

'adb' is not recognized as an internal or external command, operable program or batch file

I am trying to run google map v2 on emulator, I am following this tutorial. When I was trying to install required apk file on emulator, I am getting below error. I tried to solve this using this tutorial.Followed all steps, added the path to…
Nibha Jain
  • 6,032
  • 10
  • 40
  • 63
292
votes
27 answers

set up device for development (???????????? no permissions)

I am using a Samsung galaxy nexus phone (Android 4.0 platform) . I am developing Android app on Ubuntu linux OS. I would like to run my application directly on the Samsung handset device, so I performed the following setup steps: in my project…
Leem.fin
  • 35,699
  • 70
  • 166
  • 297
290
votes
39 answers

Error "The connection to adb is down, and a severe error has occurred."

I've spent days trying to launch any Android program. Even "Hello World" gives me the same error: "The connection to adb is down, and a severe error has occurred". I'm running Eclipse v3.5 (Galileo), Google APIs 2.2.8, on a Windows XP…
Ted Betz
  • 1,611
  • 3
  • 22
  • 29
1
2 3
99 100