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

How can I make getevent/sendevent work inside android application?

I know there is a tool called ADB which has SHELL commands getevent and sendevent for getting/sending device's touch/key event. However, it just works through connecting android device to pc. So I want to know if there is an existing library that…
Season
  • 1,178
  • 2
  • 22
  • 42
4
votes
1 answer

How to pass Serializable or Parcel object from adb shell to android component

I have to start an activity from adb shell using am start command. But in the activity it is taking an object of java.io.Serializable type as extra value in the intent. I know the class name of that object and I can create that object but i am not…
shahzad
  • 164
  • 1
  • 9
4
votes
3 answers

INSTALL_FAILED_UPDATE_INCOMPATIBLE but app not installed

I am getting an INSTALL_FAILED_UPDATE_INCOMPATIBLE error upon doing a adb install MyPackage.apk I did what all other posts out there suggest, namely an uninstall of the package with adb uninstall com.company.package (with appropriate substitutions…
Kasper Peeters
  • 1,580
  • 2
  • 18
  • 37
4
votes
1 answer

ADB rejected shell command (ls -l /data)

I keep getting ADB rejected shell command (ls -l /data): and the command prompt when running adb shell tells me error: device not found although the emulator is open. What I am doing wrong?
Pentium10
  • 204,586
  • 122
  • 423
  • 502
4
votes
2 answers

USB Debugging Moverio on Mac

I have just go a Moverio BT-100, Epson seem as much use as a paper bag. Has anyone managed to get USB Debugging / ADB to see it on a mac?
Burf2000
  • 5,001
  • 14
  • 58
  • 117
4
votes
1 answer

adb.exe hang on windows 7

I have recently installed Android SDK with ADT from developer.android.com it was working fine and i build the hello world app and installed it on phone using ADT. but after sometime when i run the project it keeps display the message ddmd…
4
votes
2 answers

Adding ADB commands to build sequence (Android Studio)

I am using Android Studio and wonder if it is possible to add some ADB commands to the build sequence. Specifically, before the app is installed on my USB-connected device I would like to send a key event to wake the device. Can the ADB commands…
4
votes
1 answer

Android: Read APN using ADB shell

According to this post, manually-entered APNs are contained here: /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.x­ml However, this file can't be accessed using adb shell cat or adb pull. Is there any workaround for a…
A.G.
  • 2,037
  • 4
  • 29
  • 40
4
votes
6 answers

ADB Command to set volume?

Is there any Adb command to set the volume to a particular value? I know that we can do adb shell input keyevent for volume up and down but i want to set it to a particular value. If I change it it DB then I have to reboot the device for the…
Lost
  • 12,007
  • 32
  • 121
  • 193
4
votes
1 answer

how to fix: failed to connect to dumpstate service

I try to run bugreport using adb. adb bugreport and i get: failed to connect to dumpstate service How to fix it? and get bugreport? I try also: adb shell sh -c 'bugreport | gzip > /sdcard/bugreport.gz' and same problem
LunaVulpo
  • 3,043
  • 5
  • 30
  • 58
4
votes
2 answers

Can't run adb commands in bash script

I'm trying to launch Android tethering settings from adb shell. The main purpose of doing so is to enable USB tethering mode by running a shell script. I'm using the following set of commands on my Ubuntu Terminal (12.04): adb shell am start -n…
Vinit Shandilya
  • 1,643
  • 5
  • 24
  • 44
4
votes
0 answers

Select individual Android device over TCP/IP in ADB

I need to be able to direct commands to a single device when multiple devices are connected in ADB via the adb connect command. Running adb devices gives me the following output: List of devices attached 192.168.1.72:5555 …
4
votes
1 answer

Google Play installed on Genymotion fails to start

Genymotion 2.0 has no Google Play as several people have reported here. I have Genymotion 2.0 running with ADB. Running as a Galaxy S4 with Android 4.3. I have tried to install and run Google Play 4.5.10 and 4.4.22. Genymotion allows drag and drop…
MEC
  • 1,690
  • 1
  • 17
  • 23
4
votes
6 answers

micromax a111 is not detected by adb

Recently i've purchased micromax a111 android device. I am android developer. So tried this device for debugging option. But the adb is not able to detect the device. I have change the settings also, but not working out. If any one have the solution…
Biplab De
  • 1,342
  • 10
  • 30
4
votes
3 answers

pull a database from genymotion emulator on to local disk

I am using genymotion for my dev and when I create a database I can't see it in DDMS folder of genymotion emulator. When searched on google I am able to see the database on adb shell but don't know how to pull the database to my local disk to view…
Siva
  • 9,043
  • 12
  • 40
  • 63