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

Send SMS through ADB to phone

I want to send test SMS messages from my PC via adb, to the phone. Is this possible? I've seen scripts to automate sending SMS from the phone, but I want to simulate SMS messages to the phone. I was able to do this via the emulator by telneting to…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
4
votes
4 answers

Android - adb tcpip error

I want to connect to the Android device using adb over the network. I am familiar with How can I connect to Android with ADB over TCP? and with https://developer.android.com/guide/topics/usb/index.html and follow the guidelines. Specifically, I did…
Mr.
  • 9,429
  • 13
  • 58
  • 82
4
votes
1 answer

Asus transformer is not visible through adb

I have a problem with adb on Windows 7 and Asus Transformer (ISC, 4.0.3) adb devices shows empty list. I've installed Asus PC Suit, USB debugging is switched on. On Linux everything works fine.
4
votes
3 answers

Android mount the filesystem with write permission

The Android device I am using does not hold sqlite3 on it, so i thought to push it to the device after pulling it from the AVD. I had no problem pulling it from the AVD, though I cannot push it to the device since I need to enable a write…
Mr.
  • 9,429
  • 13
  • 58
  • 82
3
votes
6 answers

Capture Complete LOGS In Android

I was wondering how do i take complete logs from android device (From the point of My application initialize to any crash or till force close of my application). Reason i am posting here is my application is crashed some point,but when i take logs…
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
3
votes
4 answers

Android adb permission error

I have installed the android SDK but I’m getting an error when using a hardware device, executing “./adb device$ I get this error: List of devices attached ???????????? no permissions While if I execute “sudo ./adb device” there is no…
Hera
  • 101
  • 1
  • 7
3
votes
5 answers

ADB missing in Ubuntu for HTC Desire S?

So I switched from Win to Ubuntu 11.10 for my Android development. In the same way as ADB drivers for Win7 was a problem, something weird is happening in Ubuntu as well. I try to run a (runnable) application, but my connected Desire S is somehow not…
Krøllebølle
  • 2,878
  • 6
  • 54
  • 79
3
votes
3 answers

Android: Phone isn't recognized by ADT after upgrading

I just upgraded to the latest Android SDK (r16) and Eclipse (3.7.2). Now I can not use USB devices. I can connect the phone to my Mac (Lion) and share data but the "adb devices" returns an empty list (only emulators are displayed). Yes.. I have…
xpepermint
  • 35,055
  • 30
  • 109
  • 163
3
votes
1 answer

Sending AT commands from Powershell script to Android phone via adb

I have a little script that I run in adb shell of Android phone (/system/etc directory), which enables to communicate with the modem by sending/receiving a single AT command. The script itself, if run in adb shell, works OK. That's what it looks…
3
votes
4 answers

trouble running the emulator

If I run my application when there is allready an emulator running, the applications isn't run on the existing AVD, but a new one is started. [2011-12-22 18:03:15 - Report_v6_2] ------------------------------ [2011-12-22 18:03:15 - Report_v6_2]…
MastAvalons
  • 1,150
  • 1
  • 14
  • 23
3
votes
1 answer

Adb can't detect android devices in Max OSX 10.7.2

I installed android sdk but adb can't detect android devices % adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached % I tried and conformed some following methods and…
tbl
  • 823
  • 1
  • 8
  • 11
3
votes
2 answers

Android Screenshot in PHP

Is it possible to take a screenshot of my Android device using PHP? I suppose that I need to take a screenshot using adb (exec an adb command) and then display the result in my PHP code? Have someone tried something similar? Any suggestions?
glarkou
  • 7,023
  • 12
  • 68
  • 118
3
votes
2 answers

How to stop android service from a adb

am startservice com.xxx/.service.XXXService i can start a service through the command above , but the am manual doesn't say anything about stop service. how can i do that?
WoooHaaaa
  • 19,732
  • 32
  • 90
  • 138
3
votes
5 answers

adb devices command shows nothing

At the moment I'm busy with the Android SDK. I got it working, but when I entered $sudo adb shell. It gave sudo: adb: command not found. For this problem I checked this link: adb devices command not working But if I enter $sudo adb devices now.…
Michielodc
  • 743
  • 2
  • 8
  • 11
3
votes
3 answers

no permissions for samsung galaxy 2s

I just got a new Samsung Galaxy 2S phone to test my app. When I tried to ran the app, it shows AVD NAme N/A, target unknown and state ??? I have enabled debug mode and unknown sources on the phone. I am developing using Ubuntu and I edited…
Yu.
  • 171
  • 3
  • 8