Questions tagged [adb]

For questions about Android Debug Bridge (adb), a command line tool that lets you communicate with an emulator or connected Android-powered device.

Android Debug Bridge (adb) is a 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 sends commands. The client runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as DDMS also create adb clients.
  • A daemon, which runs commands on a device. The daemon runs as a background process on each emulator or device instance.
  • A server, which manages communication between the client and the daemon. The server runs as a background process on your development machine.

Source: https://developer.android.com/studio/command-line/adb.html

79 questions
21
votes
5 answers

Unable to locate adb when using Android Studio

Consistently receiving this error message on Android Studio to run app: java.lang.IllegalArgumentException: Unable to locate adb Attempted several troubleshooting options by downloading ADB, but the issue was not resolved. Thoughts?
Mimi D
  • 311
  • 1
  • 2
  • 3
4
votes
1 answer

Using ADB to sendevent touches to the phone, but cant release

I have a HTC 10 which is running CM13 I am trying to send touch events to it by means of ADB and Send Event After sending this: adb shell sendevent /dev/input/event6 3 57 0 sendevent /dev/input/event6 3 53 300 sendevent /dev/input/event6 3 54…
Chris D
  • 61
  • 1
  • 1
  • 6
3
votes
0 answers

How to timeout ADB connect

I'm making automation bash script that will go over range of IP's and try to connect over ADB. If I try: adb connect the command will hang for 30 seconds until it say "failed to connect to '192.168.1.231:5555': Operation timed…
3
votes
1 answer

How to verify rsync daemon on a remote server is accepting connections

I've got an rsync daemon running on an android phone. I just want to netcat the rsync port on the phone (configured on 1873), to verify the daemon is up and listening to the port, but strangely the netcat attempt is rejected. Rsync is working fine,…
Maikol
  • 63
  • 2
  • 6
3
votes
1 answer

Fastboot Stuck, but Device Detected

I am on Manjaro Linux, running adb/fastboot version 29.0.2-ArchLinux. I read others, but their problem is device not being detected and no permission (which is not happening to me). fastboot commands don't seem to work for some reason (it gets stuck…
liontra
  • 31
  • 1
  • 3
3
votes
1 answer

Android - adb logcat works only on shell

When I run adb logcat nothing happens but when I run it in the adb shell then it works ok. Those are the outputs: eduardo@debian:~$ adb devices List of devices attached LGM250CE6PYLFQGU9P device eduardo@debian:~$ adb -s LGM250CE6PYLFQGU9P logcat…
Eduardo
  • 323
  • 4
  • 9
2
votes
3 answers

How to wirelessly push files to Android using ADB via Windows context menu?

By using context menu in Windows I would like to wirelessly push selected file(s) to Android device using ADB. I want to connect to the device, push selected file(s) and disconnect each time, so I crated this simple batch file: @ECHO OFF D:\adb.exe…
Rayearth
  • 345
  • 3
  • 5
  • 13
2
votes
1 answer

Android device can't ping PC while on same network

I have my Android phone connected to my PC (Windows 10 with Android SDK installed). I set up my PC to have a mobile hotspot so the phone can be connected to the PC network. My PC can ping the phone's IP address, but when I want to ping the PC from…
Tina J
  • 579
  • 1
  • 7
  • 21
2
votes
1 answer

How do you get adb devices to work from within a virtualbox virtual machine?

How do you get adb devices to work from within a virtualbox virtual machine? (note- I installed VS 2015 redistributable https://www.microsoft.com/en-us/download/details.aspx?id=53587 for adb devices to not give an error about a missing DLL, on my…
barlop
  • 23,380
  • 43
  • 145
  • 225
2
votes
1 answer

(Android) Unknown USB Device (Device Descriptor request failed)

So I'm trying to connect my Xiaomi mobile with Windows 8.1 pc to unlock bootloader. I get error every time I connect phone Device not recognised. Device manager shows Unknown USB Device (Device Descriptor request failed Code 43). What I have…
2
votes
0 answers

Android Studio: Debugger not connecting to process

Android Studio, when debugging, installs and launches the app, but it stays on "Waiting For Debugger", while Android Studio never connects to the app. This happens on both wireless and wired connections (USB/WiFi), but only on this device. I'm…
Riccorbypro
  • 33
  • 2
  • 5
2
votes
4 answers

Unable to connect Android ADB over TCP/IP

I tried to connect to my phone through WiFi using Android ADB, but I can't connect it. I tried this steps: adb kill-server adb tcpip 5555 adb connect 192.168.1.16:5555 And got this message: cannot connect to 192.168.1.16:5555: A connection…
a.kamal
  • 21
  • 1
  • 2
2
votes
0 answers

Permission change commands do not work for applications (revoke, grant) in ADB Shell, Terminal Emulator

I need to change the permissions of the application through ADB Shell. When you enter and activate a command, no errors appear, I switch to the permissions settings of the application, everything remains the same ... I enter the following…
anarbus
  • 121
  • 2
2
votes
1 answer

Enable ADB Debugging on Android Phone with broken/disabled screen

Dropped my Nexus 6 this morning and now the screen is barely legible and touch doesn't work. Want to remote in with ADB to get what I need off the device; however when I connect it to my laptop I get a prompt to allow debugging (OK/Cancel);…
dr3x
  • 151
  • 2
  • 6
2
votes
1 answer

grep command fails on one Windows PC, but works on other Windows PC w/ same configuration

I want to issue a logcat command to filter logs specifying a keyword (say apk). But I am facing an issue where the grep command is not recognized on one of my windows 7 PC. The same command works perfectly on other PC with same configuration. …
Ashish Chauhan
  • 21
  • 1
  • 1
  • 2
1
2 3 4 5 6