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
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
3
votes
1 answer

Why is ADB stopping phone from ejection in Windows?

I ran this on the Windows command prompt to disable doze mode as I'm getting no notifications when Samsung Galaxy S25 is locked. adb shell dumpsys deviceidle disable All went well, but I couldn't eject the phone as ADB was still in use. Is there a…
Trev
  • 141
  • 7
3
votes
1 answer

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

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

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
  • 25,198
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
  • 163
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
3
votes
5 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…
3
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
  • 171
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
  • 423
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
  • 355
  • 3
  • 6
  • 16
2
votes
0 answers

ADB debugging stopped working, Samsung S21, Macos, Catalina

My primary testing device has stopped working over adb on macos catalina. I have done a lot of troubleshooting that will be detailed out below. TLDR; The device works fine on another desktop, and on the mac in parallels (windows 10). Other devices…
2
votes
2 answers

How to control android phone with broken screen from computer when there is a password?

My phone's screen is broken. I want to be able to use it using a PC (I just need to use two apps for a short while). I have a password on my phone. If I remember correctly, I have USB debugging enabled. I don't know if I had ever checked the option…
Huzaifa
  • 143
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…
1
2 3 4 5 6