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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
32 views

using fastboot to flash an image on Windows remains stuck on < waiting for any device >

I have a Linux based MCU device that's connected using USB into which I'm flashing a boot or system image using fastboot. On an ubuntu host machine, I use fastboot with root permissions via sudo adb ...
user avatar
  • 11
1 vote
1 answer
95 views

Why does 'adb.exe devices' not see my phone on Windows 10?

I have USB Debugging & File Transfer both enabled on my phone (Blackview A80Pro) and I have installed the USB driver for my phone as recommended by Blackview. But though 'adb.exe version' shows ...
user avatar
  • 129
0 votes
0 answers
56 views

fastboot boot boot.img failed

I am using Ubuntu 20.04.3 LTS and when trying to boot into, or flash, the TWRP recovery image I compiled, I receive error: $ fastboot boot boot.img downloading 'boot.img'... FAILED (command ...
user avatar
0 votes
0 answers
66 views

Allow apps to connect to cellular network on android device while using the WIFI ADB protocol

I have an android device which is using the cellular internet to connect to a private network. As so...the only door to connect to that private network is through my cellular network provider. I have ...
user avatar
0 votes
1 answer
33 views

How I update the Google USB Driver on a Windows 7 laptop?

I am trying to update my Google USB Driver to perform adb debugging with my Google devices with a laptop running Windows 7 SP1 x64 Ultimate. I currently have Google USB Driver v7: I went to https://...
user avatar
0 votes
0 answers
42 views

Get "Pointer location" in adb logcat using filter

I have Samsung Galaxy Watch4 and need to automate tapping and swiping in app. I can't see the X, Y when enabling "Pointer location" on the watch. How can I filter (adb logcat logs) to show ...
user avatar
1 vote
0 answers
207 views

How to timeout ADB connect <ip>

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 <not android device> the command will hang for 30 seconds until it say "...
user avatar
1 vote
0 answers
556 views

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 ...
user avatar
  • 479
0 votes
0 answers
30 views

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 ...
user avatar
0 votes
0 answers
76 views

Extract all files from Samsung Galaxy S8 Note (no root)

I have a Samsung Galaxy S8 Note from a customer who bought it from a "trustable" second-hand shop called asgoodasnew and the smartphone price was paid by rates by the original owner and it ...
user avatar
0 votes
2 answers
473 views

How to use ADB in a Batch file to open a Windows File Explorer window

I tried posting this on Stack but was told it may be more appropriate here. I'm trying to run a bat that will open a folder on an android device using ADB in Windows. For the life of me I have ...
user avatar
  • 1
1 vote
1 answer
1k views

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 ...
user avatar
  • 133
0 votes
1 answer
273 views

In VMware workstation player, running "adb devices" in the guest OS, doesn't show smartphone device

In VMware workstation 16 player, running "adb devices" in the guest OS, doesn't show smartphone device. But guest OS can see it for file transfer Same situation with another smartphone I ...
user avatar
  • 21.6k
1 vote
1 answer
2k views

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 ...
user avatar
  • 21.6k
1 vote
0 answers
870 views

“Unable to locate adb” bug via Intellij Idea Community

I use IntelliJ Idea Community for automation testing over Appium. I do not need Android Studio for this. The emulator starts but I get the message AVD Manager - Unable to locate adb I want to resolve ...
user avatar
  • 11
0 votes
0 answers
92 views

Supplying more power to USB device over a USB connection to PC

I have multiple Android devices that I need to be connected to a PC over USB at all times (using a powered USB hub or connected directly to one of the USB ports on the PC) Now the Android devices I ...
user avatar
  • 10.3k
1 vote
1 answer
37 views

windows 10: process 1 output used as process 2 input: pipes

process 1 : adb shell screenrecord --bit-rate 6000000 --size 1280x720 --output-format=h264 - process 2: ffplay -f h264 normally ffplay takes its input as an argument (-i _input) How to pipe those ...
user avatar
  • 113
0 votes
0 answers
27 views

How do I use a batch file to convert directory name to one with backslashes before spaces for use in linux shell

I am writing a batch script in windows 10 to move files from a specific folder on my android phone to my computer and then delete the files on my phone. I would like to only have to define only one ...
user avatar
0 votes
1 answer
222 views

Adb creates the error "adb: CreateFileW 'nul' failed: The system cannot find the file specified"

As the title says, ADB shell produces the error "adb: CreateFileW 'nul' failed: The system cannot find the file specified" whilst trying to start a daemon. I'm an android developer and adb ...
user avatar
0 votes
2 answers
5k views

“Unable to locate adb” bug via Android Studio

0 I'm 2 months into Android Studio,I run the latest version(4.0.1 for Windows 64-bit) to be precise and also run the latest gradle offline build dependencies. So far,I've setup my Android Sdk well ...
user avatar
  • 117
0 votes
1 answer
133 views

Computer RSA key changes each time I use Nox android player

I checked "Always allow USB debugging..." for my PC in my phone. However, each time I use Nox android emulator, computer RSA key changes and I should confirm it again. Why this happens? Is ...
user avatar
1 vote
1 answer
1k views

How come ADB can't access files without enabling USB debugging, but the Windows Explorer can?

I've tried backing up my Android (Note 8) device using ADB. I've noticed that Developer Mode > USB Debugging must be enabled in order to even communicate with the device. However, it seems that ...
user avatar
2 votes
1 answer
3k views

(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 ...
user avatar
0 votes
0 answers
2k views

Kali linux adb pull error cannot connect to deamon

I am trying to pull an apk from adb shell using command adb pull but I am getting this error, here is my terminal: * daemon not running. starting it now on port 5038 * ADB server didn't ACK * failed ...
user avatar
1 vote
0 answers
12k views

How to uninstall ADB drivers from Windows 10?

If I type "adb devices" to CMD I want it to be unrecognized. Not sure if this question for superuser but it's related to Android. I have installed this automated installation, however it's not ...
user avatar
3 votes
1 answer
3k views

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 ...
user avatar
  • 43
0 votes
1 answer
313 views

ADB works in linux terminal but don't works in Android Studio

I try run application in Android Emulator inside Android Studio. Emulator works but when I run my apk in emulator I get error: Installation did not succeed. The application could not be installed. ...
user avatar
0 votes
1 answer
896 views

How can I run adb command from the same device?

Normally you have your Android device with adbd running on it. You connect the device with your pc for example using usb cable (with dev mode on) and you can see the device and run specific adb ...
user avatar
1 vote
0 answers
739 views

Android Studio Cannot Show the List of Devices Via USB

My android studio does not show the list of devices to run the app. But when I run 'adb devices' from the terminal, I can see my device and can install the app from here. I have tried everything but ...
user avatar
  • 11
0 votes
1 answer
94 views

Connecting a Google pixel to a host PC while using USB keyboard

Is it possible to connect a Google pixel to a PC and adb in, while having a USB keyboard connected to the pixel? I tried the following setup, and the keyboard worked, but the PC didn't detect the ...
user avatar
1 vote
2 answers
207 views

Android Studio 3.5.1 can't run app on any device by adb

I am trying to debug app on my Android Studio(version 3.5.1). My environment is MacOS 10.14, Macbook Pro. When I run app on AVD, everything works fine. However, when I run app on real device, I always ...
user avatar
  • 11
1 vote
1 answer
25k views

Android Studio Shows Error Running App: no target device found

List of things I have already done, but the problem persists: Enabled USB debugging option in mobile developer options, didnt work so i also enabled allow installing apps via usb, but nope. Changed ...
user avatar
  • 11
1 vote
0 answers
167 views

List of adb devices in command prompt not showing

I've been trying to run adb on my laptop. At first, it just wouldn't run at all. Now, after trying different fixes, I've gotten the daemon to start, but it won't list my phone as an attached device. I ...
user avatar
1 vote
0 answers
2k views

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 ...
user avatar
1 vote
1 answer
3k views

Android Studio Error: ADB exited with exit code 1

First of all: Yes, I have read countless threads for hours on the issue presented in the title here and related issues. On running my very first example app with Android Studio on Windows 10, I get ...
user avatar
  • 11
0 votes
0 answers
337 views

Missing Android trusted certificates

I wanted to setup Burp Suite to use it as a proxy in order to debug an app that I am currently developing. Since I need to use HTTPS too, I followed this guide to install a root trusted CA certificate....
user avatar
3 votes
1 answer
1k views

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 ...
user avatar
  • 31
0 votes
1 answer
142 views

how to run android studio application with adb wifi on ubutu18

i want run android studio applcation with adb wifi on ubuntu. this is error mmessage: " Unable to connect to device 'R17B2502570 no permissions (user in plugdev group; are your udev rules wrong?); see ...
user avatar
0 votes
0 answers
19 views

Android device not recognized in several programs (Windows 10)

I have a problem getting my Android device to work in Visual Studio for Debugging. I almost tried everything I could find in the last days: enable USB Debugging Install ADB drivers Change Protocols ...
user avatar
0 votes
1 answer
1k views

Connecting to Android x86 vm by USB/SSH

Does anyone know, how can I connect by adb to virtual Android via USB or somehow else? I have rooted Android 7.1 on Vmware workstation
user avatar
  • 3
1 vote
0 answers
314 views

How Can I connect the emulated device on genymotion on windows with the adb on wsl?

I'm trying to setting up an environment to develop in react native. I've installed the sdk-android, the npm of react native on wsl and the genymotion on windows. I want to use the vscode on windows ...
user avatar
1 vote
0 answers
24 views

How turn on android device without power button & turned off

Is there any way to turn on my android device with broken power and up/down volume buttons? I have connection to laptop with adb but adb devices returns empty list since device is off. Device: Pixel2 ...
user avatar
1 vote
0 answers
11 views

Need clarification on flow of android debugger connect protocol over network

We have Android 7.1 booted on qemu kind of virtual platform. We are trying to connect ADB debugger over network. The platform uses slirp for communication between virtual platform and the host. We ...
user avatar
1 vote
0 answers
1k views

Make streaming via ffmpeg of the screen recorder of android

I can record screen via this command then read the content in streamin via ffplay: adb exec-out screenrecord --bit-rate=16m --output-format=h264 --size 800x600 - | ffplay -framerate 60 -framedrop -...
user avatar
0 votes
1 answer
1k views

Android SDK tools not generating adbkey.pub

When connecting my phone (galaxy S8 with lightRom v14) to pc (ubuntu 18.10) it asks me to allow file access (mtp i guess) but doesn't ask for adb permission (no dialog). When inspecting .android on my ...
user avatar
  • 1
1 vote
0 answers
150 views

Cannot Connect Galaxy S7 to Windows 10 Laptop for USB Debugging

As the title says, I cannot get my Samsung Galaxy S7 to connect to my computer and be recognized by adb devices for USB debugging. I've been at this for a few days now with no luck. State of my ...
user avatar
  • 113
1 vote
0 answers
453 views

Connecting Raspberry Pi 3 to android over ADB failure

Currently I'm trying to connect a Raspberry PI 3 to an android tablet over adb. Used to work for quite sometime and now it doesn't. If i do a lsusb, the device appears however adb devices -l shows ...
user avatar
2 votes
4 answers
5k views

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: ...
user avatar
  • 21
21 votes
5 answers
111k views

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 ...
user avatar
  • 311
2 votes
0 answers
531 views

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 ...
user avatar
  • 121