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
5 answers

How to connect internal Android adb to itself

Starting from Android 4.0, there is a "adb" command in "system/bin" folder Using this, i want to run adb server/client inside Android OS and connect to itself. I am trying to accomplish this by "terminal emulator" installed on my non-rooted phone…
ahikmat
  • 121
  • 1
  • 2
  • 6
4
votes
1 answer

What is adb command to open camera in Video capture using one particular app?

I want to be able to open camera app using adb command in video capture mode: I am already using following command for it: adb shell am start -a android.media.action.VIDEO_CAPTURE but if more than one applications have defined that intent then it…
Lost
  • 12,007
  • 32
  • 121
  • 193
4
votes
1 answer

Android: Change Device language automatically without device restart

I can change device language using following adb command: adb shell setprop persist.sys.language fr;setprop persist.sys.country CA;stop;sleep 5;start This command will restart device after changing device language. But is it possible to change…
Sajal Saha
  • 169
  • 2
  • 12
4
votes
0 answers

Are Android's service calls still working?

I'm looking for a solution to send a sms on my android phone through my desktop via adb. When I was at page 3 on Google I knew I needed help. I've found some solutions to do this: create my own service and call it from adb, execute the native sms…
4
votes
1 answer

After upgrading my nexus 4 to 4.3, adb in not recognizing it

My device driver for nexus 4 is not installing on my windows, after trying several times. My sdk tools and platform tools are updated to the latest version.
Harshit Gupta
  • 335
  • 2
  • 14
4
votes
2 answers

Restore default trace mode adb

In order to fix my adb setup I`ve set ADB trace mode to all using the following command: set ADB_TRACE=all Now that I've resolved my issue, I would like to reset the ADB trace mode to the default (out of the box) value, so my cmd output doesn`t get…
Jeroen Mols
  • 3,436
  • 17
  • 24
4
votes
2 answers

Nexus 7 disconnects in Windows/Eclipse/ADB

My Nexus 7 used to work fine in Windows 7 64bit, but now all of sudden when I connect it, it shows me the new device screen, it shows in Eclipse/ADB as Nexus 7 with Android 4.3 (correct), and then disappears a second or few later, with Device…
TomaszRykala
  • 927
  • 6
  • 16
  • 33
4
votes
2 answers

Copy a batch of files from Android to PC

I wrote a piece of script to copy some files to my PC from an Android device: adb shell ls /sdcard/Download/0*.log > tmp while read line do echo $line adb pull $line . done < tmp rm tmp However, it seems there is something I missed; it…
JackWM
  • 10,085
  • 22
  • 65
  • 92
4
votes
1 answer

Can't show android device in ubuntu 13.04

I have a Android tablet device that can't be showed by android devices on my laptop(T61), but it worked fine on DELL PC with the same OS: Ubuntu 13.04. I've update the adb to the latest platform-tools:18.0.1 and export ADB_TRACE=all After : $sudo…
herbertD
  • 10,657
  • 13
  • 50
  • 77
4
votes
1 answer

Service call isms with ADB shell (Android SDK)?

Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText". There are some parameter but I don't know what it means (5, s16, i32, 0).…
kiwibe
  • 53
  • 1
  • 5
4
votes
2 answers

Get result code of adb shell command

How should I get $? of adb shell ? I would like to check the result of adb shell mkdir /xxx. I executed mkdir command by adb shell and failed but the result of $? is 0. $ adb shell mkdir /xxx mkdir failed for /xxx, Read-only file system $…
Sea Mountain
  • 369
  • 1
  • 4
  • 11
4
votes
3 answers

Nexus 7 not being picked up by adb (when I connect it to the laptop via usb)

I run the command "adb devices" and it doesn't list the nexus 7 device even though the drivers are installed correctly. The drivers show up as "Android Composite ADB Interface". I have "USB Debugging" turned on in the nexus 7 device. Also, I did…
TheDude
  • 1,421
  • 4
  • 29
  • 54
4
votes
1 answer

Always run adb as root on a rooted device

So I have a rooted SGS3 running the lastest CyanogenMod nightly. I am trying to use DDMS while developing but have run into a problem. I do have root access on my phone (evident when I use an adb shell and use the su command), however DDMS does not…
pogo2065
  • 226
  • 1
  • 3
  • 14
4
votes
1 answer

How to start adb server over tcp programmatically

How can i start adb server over tcp programmatically in android...with root permission i found that this command will do... setprop service.adb.tcp.port 5555 is there any way to execute this programmatically in android
Akilan
  • 924
  • 1
  • 7
  • 19
4
votes
2 answers

null root node returned by UiTestAutomationBridge by uiautomator

I have an issue running uiautomator in my python script (a similar shell script runs fine). I use the following method for convenience: import subprocess def host_exec(cmd): p = subprocess.Popen(cmd, shell=True,…
MishaP
  • 188
  • 1
  • 9