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
0
votes
0answers
8 views

How to get the Stoock ROM from Huawei P30 lite New Edition (MAR-LX1B)? [migrated]

I am trying to root my new Huawei P30 lite New Edition(MAR-LX1B). Now I found out that there is no official version of TWRP for Huawei P30 lite New Edition(MAR-LX1B). After a long research I found out ...
-2
votes
0answers
34 views

Hello, I have a water damaged Galaxy A51 that is boot looped, It shows up under adb devices but does not respond to adb commands [closed]

I have a boot-looped Samsung Galaxy A51 that shows up on ADB devices but does not respond to any ADB commands like "root" or anything else. Any help is greatly appreciated. The phone was ...
0
votes
0answers
5 views

permanently disable wifi on an android phone by remaing/deleting it via adb [migrated]

i want to permanently disable wifi on an android phone in a way that cannot be reverted without flashing the firmware via adb. the best way to do it, i'm guessing, is to rename or delete the firmware ...
1
vote
1answer
58 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 ...
0
votes
1answer
53 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 ...
1
vote
1answer
81 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 ...
0
votes
0answers
18 views

What is the-L <SOCKET> parameter for adb and how to use it

I don't quite understand how to use the -L parameter, the command description contains the following: -L SOCKET listen on given socket for adb server [default=tcp:localhost:5037], I don't understand ...
1
vote
0answers
516 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 ...
0
votes
0answers
36 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 ...
0
votes
0answers
41 views

ADB Sendevent is sending 3 out of my 9 events

I've tried to simulate a tap through ADB shell and I've recorded all the events to see what I need to simulate the tap. adb shell "sendevent /dev/input/event7 3 57 110; sendevent /dev/...
1
vote
1answer
18 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 ...
0
votes
0answers
20 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 ...
0
votes
1answer
116 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 ...
0
votes
2answers
4k 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 ...
0
votes
1answer
55 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 ...
0
votes
0answers
20 views

Trying to install using adb an apk (KODI) on an Amazon fireTV 4K - protocol failure - waiting for device

I want to install a soft on an Amazon fireTV 4K using ADB. I have applied the ADB protocol to install. This is the screen copy of Powershell : PS C:\WINDOWS\system32> adb connect 192.168.1.41 ...
1
vote
1answer
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 ...
2
votes
1answer
2k 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 ...
0
votes
0answers
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 ...
0
votes
0answers
9k 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 ...
3
votes
1answer
2k 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 ...
0
votes
1answer
256 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. ...
0
votes
1answer
829 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 ...
1
vote
0answers
690 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 ...
0
votes
1answer
47 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 ...
1
vote
2answers
162 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 ...
1
vote
1answer
23k 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 ...
1
vote
0answers
158 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 ...
1
vote
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
250 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....
2
votes
1answer
678 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 ...
0
votes
1answer
112 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 ...
0
votes
0answers
16 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 ...
0
votes
1answer
728 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
1
vote
0answers
262 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 ...
1
vote
0answers
20 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 ...
1
vote
0answers
7 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 ...
1
vote
0answers
847 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 -...
0
votes
1answer
920 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 ...
1
vote
0answers
142 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 ...
1
vote
0answers
364 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 ...
1
vote
3answers
2k 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: ...
12
votes
5answers
66k 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 ...
2
votes
0answers
448 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 ...
0
votes
1answer
449 views

The command “adb” not working as expected in a macOS shell script but works fine in the macOS terminal

I have a .bat script with some adb commands that I want to run on a Mac. So I changed the extension to .sh and changed the mode so it's executable. Every line works fine when I enter them in the ...
1
vote
1answer
3k views

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 ...
0
votes
1answer
6k views

Use of adbkey and adbkey.pub file present in my windows user folder

I have installed android sdk in my Windows machine. Under user path / .android folder there are two files: adbkey and adbkey.pub What is use of these two files and what information does it contains....
1
vote
1answer
5k views

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 ...
2
votes
0answers
406 views

(adb) How to queue commands for the next recovery boot?

How to create a queue of commands that will run immediately the next time I boot into the recovery? I have tried this command from this thread by Firelord adb shell 'su -c "'"echo "boot-recovery" &...