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.

7629 questions
4
votes
0 answers

Slow adb install speed to AVD

While there is a Why is the Android emulator so slow? How can we speed up the Android emulator? is it inherent that adb install is this slow on my i5-2500 machine to an AVD? $ adb install -r foo.apk pkg: /data/local/tmp/foo.apk Success 100…
n611x007
  • 8,952
  • 8
  • 59
  • 102
4
votes
4 answers

How to turn wifi on using ADB or any other way when usb debugging is disabled

When Android is locked after Too many pattern attempts, it will ask you to sign in with your Google Account to unlock, I have my username and password but the mobile data and the wireless are not enabled and i can't enable it because it's totally…
Alaa Alweish
  • 8,904
  • 16
  • 57
  • 84
4
votes
1 answer

adb protocol failure using install and push

I cannot install apk files to my phone using adb install. I cannot push apk files to my phone's sdcard using adb push. In both cases adb gives me "protocol failure", followed by a notice that it is unable to delete the apk file from data/local/tmp…
person
  • 51
  • 1
  • 1
  • 3
4
votes
1 answer

Android tests are not executed

I have created a test project with exact the same code as shown here: http://developer.android.com/tools/testing/testing_ui.html I have uploaded the jar file in the android virtual device and now I'm ready to run the tests. But I always get this…
4
votes
1 answer

Simulating received SMS on real Android device

I'm developing an application for Android phones which has something to do with text messages. I found many guides to simulate a received text message on an emulator but I'm testing the software on a real device. Is there a way to fool a real…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
4
votes
3 answers

Android adb wireless debugging with USB accessory

I have adb wireless connection working for debuging applications in eclipse, but I am having an issue with an application that is using the USB cable to attach to an accessory. The application is designed to start when the accessory is plugged in,…
4
votes
3 answers

adb can't find my device (sony xperia J)

I use windows 7 64 bit My phone is a Sony Xperia J my phone is in debugging mode drivers for my phone are installed 'adb devices' returns: "List of devices attached" with nothing else I have removed all related software and installed it…
user2055017
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

How do I tell if an android activity is finished from an external adb command?

In our testing, I want to use a script to run a number of android activities. I can use an adb shell start activity command to start these activities. Is there a way, using an adb command, to tell when an activity finishes? The script needs to…
user2044367
  • 41
  • 1
  • 2
4
votes
3 answers

Ubislate 7ci drivers to list the device using adb devices

I connected my Ubislate 7ci device with android SDK installed on windows.This particular device is not getting listed when i use "adb devices" command.I googled for Ubislate drivers but couldn't find. I Hope most of you guys are successful in…
ravibabu435
  • 49
  • 1
  • 4
4
votes
1 answer

How to kill an orphan android emulator

I have tried everything but the emulator keeps showing when I type "adb devices" in cmd, even though there is no trace of the emulator in the AVD Manager. I have re-installed sdk tools, re-started my pc several times, but not matter what the…
Ahmad Ali Nasir
  • 1,382
  • 3
  • 16
  • 29
4
votes
6 answers

Can't bind to local 86XX for debugger

For some reason eclipse DDMS always gives the error 'Can't bind to local 86XX for debugger' every time I try and debug my app. This just started today for some reason. I have looked at many posts and tried what they have suggested such as: 1. Adding…
sam
  • 2,469
  • 8
  • 37
  • 57
4
votes
1 answer

How to reproduce android monkey crash?

i test the smart phone of android, in command line mode for input : adb shell monkey -v 10000 the result is----------------------------------------------------------------------: procrank: // Exception from procrank: java.io.IOException:…
DanielHsu
  • 115
  • 4
  • 10
4
votes
2 answers

Android sendevent is really slow - how to speed it up?

I am doing some ui automation, and I am able to store screen touches using getevent, but when I try to send this using sendevent, it takes a really long time, making it hard to actually replay the inputs. I have already trying loading the script…
user1598917
  • 55
  • 1
  • 4
4
votes
2 answers

adb devices isn't working on Mountain Lion

I just upgraded to OS X 10.8 (Mountain Lion). Now adb devices doesn't list my Galaxy Nexus or my Nexus One. I can't believe it isn't working as I'm sure there must be Android devs at Google that use Google phones with Mountain Lion. Please help!
richcollins
  • 1,504
  • 4
  • 18
  • 28
4
votes
1 answer

/proc/config.gz does not exist

I have a Sony Xperia P. I have installed a custom kernel which I complied myself. Now I cant find its config.gz. It is not there in /proc/config.gz. Im not sure whether or not it was there before I installed the custom kernel.
Anirudh
  • 854
  • 1
  • 11
  • 32