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

Ionic - Error "no native targets found" showing up when trying to run on the device

I have managed to connect to the device via ADB both with TCP and USB mode. But Ionic seems failed to detect the device. NPM version is 8.3.1 and Capacitor version is 3.3.4. Both @capacitor/core and @capacitor/cli was installed. I had looking for…
stackunderflow
  • 1,492
  • 1
  • 23
  • 53
3
votes
1 answer

Android Studio does not see my physical device

I connected my phone to the computer, but Android Studio does not display it. The computer displays the phone but Android Studio does not. I tried to change phone and cable but nothing happens. I have already activated the debugging of the phone,…
user17872550
3
votes
2 answers

Is it possible to stream screen of an Android phone if you have adb access?

I just got my screen destroyed and can't see anything on the phone, and I need access to the phone quickly. Since the screen is completely black I can't see anything but I use it for local Android development so adb and all the developer settings…
vach
  • 10,571
  • 12
  • 68
  • 106
3
votes
3 answers

ADB devices stuck authorizing

I'm stuck in "authorizing" status on ADB. I can't bring the "USB debug authorization view" back. On the other hand my phone does says "USB debugging connected. Tap to turn off USB debugging". ❯ adb devices List of devices attached xxxxxxxx …
cglacet
  • 8,873
  • 4
  • 45
  • 60
3
votes
1 answer

Adb push shared_prefs file permissions in Android 11

Until Android 11 I could easily push an xml file to ./storage or ./sdcard and then copy it under /data/user_de/0/com.myapp/shared_prefs to prepare the app for testing. However, with the new storage updates in Android 11, it seems this is not…
danizgod
  • 349
  • 1
  • 6
  • 15
3
votes
2 answers

Is there an ADB command to change the advanced settings of an installed application?

I have been trying to figure out a command using ADB command line to change the advanced settings of an application I am installing through ADB. Once installed I wish to change the following settings to 'allow' by using an ADB command: Is this…
SteenPetersen
  • 188
  • 2
  • 17
3
votes
1 answer

Debug on HTC Wildfire S - Error with Adb

I'm using an htc wildfire S with Android 2.3.3 to debug my app. But every time I deploy it, I get message: [2011-08-01 16:10:48 - motodev_pckafv] Failed to install motodev_pckafv.apk on device 'HT15ATT00191': Connection refused: connect [2011-08-01…
Rodrigo
  • 5,435
  • 5
  • 42
  • 78
3
votes
3 answers

Debug in Nexus one Android Usb Accessory Mode

When we use Nexus one in Usb Accessory Mode , we should turn off the adb mode in the phone. or the Usb Accessory can not access. Does anybody know if the adb mode turned off , how can we debug the apk ? I tried Remote debug . failed. Google sdk said…
Tim Chiang
  • 31
  • 1
  • 3
3
votes
2 answers

Flutter test finished with error: ProcessException: Permission denied

I'm trying to run an end to end test on my device thus I have to ask permission to access position through adb When I run the command from a terminal it's working as expected but when dart:io is executing it throw this exception (and it's the same…
lou habert
  • 186
  • 1
  • 1
  • 18
3
votes
1 answer

Android emulator doesn't work: Failed to open /qemu.conf, No accelerator found and more

Visual Studio Xamarin has problems again. I currently have a Windows Pro 10.0.19043 and the latest version of Visual Studio 2019 (16.10.4) with following components: Microsoft Visual Studio Enterprise 2019 Version…
Alex A.
  • 422
  • 3
  • 12
3
votes
1 answer

How to adb connect to android emulator inside Docker container?

I start a Docker container from budtmo/docker-android-x86-8.1: docker run --privileged -d --name foo -p 4723:4723 -p 5555:5555 \ -e DEVICE="Samsung Galaxy S6" \ -e APPIUM=true \ budtmo/docker-android-x86-8.1 Then, I'm trying to connect to it…
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
1 answer

Is it possible to start an original version of an Android app after I was debugging a debug version of it?

I have 5 devices currently I'm testing my Android app with. I'm running the latest beta version on most of them installed properly from the Play Store. I started a debug version on one of these with Android 11 recently. The debugged app has the same…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
3
votes
1 answer

ADB Shell Command to Grant Storage Permissions on Android 11

The following shell command doesn't work on Android 11 devices. Can someone help me with an alternative? adb shell pm grant com.adobe.reader android.permission.WRITE_EXTERNAL_STORAGE
Varun Bhatia
  • 4,326
  • 32
  • 46
3
votes
3 answers

Android : adb shell, no command adb found

I am simply trying to run the adb shell so I can kill a process for testing purposes. I am in the directory platform-tools and the adb executable is in there. When I try to run the shell it says adb command not found. I am running eclipse (through…
Mike Casa
  • 451
  • 7
  • 14
3
votes
5 answers

scrcpy not working while VISUAL STUDIO CODE is working

I'm using Ubuntu 20.10 and I have installed scrcpy to mirror my phone screen while creating flutter applications, but when I just open Vs code, scrcpy closes with this error :: adb server version (41) doesn't match this client (39); killing...
1 2 3
99
100