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

Unable to uninstall SoundHound application from android

I am having serious problems with the SoundHound application, from my HTC Desire S unit. I should be able to remove it in the standard way, by entering "Applications > Manage Applications", finding SoundHound and uninstalling it. But alas, I have no…
lobner
  • 593
  • 1
  • 7
  • 15
3
votes
4 answers

adb shell auto-complete under Windows 7?

I tried on linux and ash from busybox does auto-complete command line... But under Windows 7 when I press Tab it doesn't work. Any idea to make Windows 7 smart? :) Thanks! Looks like auto-complete is done, but nothing echoes back after when tab is…
echo
  • 789
  • 2
  • 12
  • 21
3
votes
4 answers

Start debugging Android application right after reboot

Helo ! I am working right now with an application that uses BOOT_COMPLETED receiver. So if I want to debug this application with some breakpoints in its class, I have to reboot my phone and connect to it in the proper time, but I am always too…
hsz
  • 148,279
  • 62
  • 259
  • 315
3
votes
1 answer

Android - Multiple Connected Devices via USB

Is it possible to connect two (or more) android devices via USB to the dev machine and debug programs on both devices at the same time? I am trying to do this with an Atrix and Nexus One with no luck. I couldn't find much documentation about this…
irwinb
  • 993
  • 2
  • 10
  • 20
3
votes
0 answers

ADB Command to set alarm volume to 0 (completely silent)?

On Android 13 (particularly LineageOS 20), the alarm volume level seems to have been limited to a minimum of 1, which means there is still sound coming out, whereas in older Android versions such as Android 8.1 (LineageOS 15.1), the alarm volume…
SteveGP
  • 31
  • 2
3
votes
2 answers

Swipe release in ADB / Python

I'm trying to automate a swipe input that goes from x1,y1 to x2,y2 quickly and then at the final position holds on to the screen for 5 seconds before releasing... How can this be done in Python using ADB? I tried this but it just slowly swipes for 5…
3
votes
5 answers

Adb stopped by some reason?

Sometimes my adb disconnected. Why i am getting like this : - [2011-09-27 17:39:43 - adb] [2011-09-27 17:39:43 - adb]This application has requested the Runtime to terminate it in an unusual way. [2011-09-27 17:39:43 - adb]Please contact the…
Praveenkumar
  • 24,084
  • 23
  • 95
  • 173
3
votes
0 answers

Android scoped storage on Android 11 - permission denied

The scenario is that my app is creating some files on its external storage /sdcard/Android/data/myPackageName and during testing automation I need to retrieve some files from that folder using adb. The compileSdkVersion and targetSdkVersion are set…
Lino
  • 5,084
  • 3
  • 21
  • 39
3
votes
2 answers

How to get IMEI using adb command on Android 13?

There is a question about Getting IMEI number using ADB commands Android 12. adb root adb shell "service call iphonesubinfo 1 i64 0 | cut -c 52-66 | tr -d '.[:space:]'" I tested the method, and it works well on Android 12. But from android 13 on,…
James Feng
  • 184
  • 1
  • 14
3
votes
1 answer

Expo: android app stopped installing after "work" profile got installed onto my phone

I had an expo based react-native app that worked perfectly when I had only personal profile on my phone. Lately I also connected "Work profile" on my Samsung S20 and now I can't develop my personal app. I'm running a typical expo build: "scripts":…
WrRaThY
  • 1,533
  • 2
  • 10
  • 14
3
votes
1 answer

Couldn't start project on Android: Error running adb: Exception occurred while executing 'list':

I've recently upgraded my phone to android 13,now i'm trying to run a very simple react native project via expo go,but i getting these errors.I've updated expo go ,but it didn't work. Opening exp://127.0.0.1:19000 on SM_A528B Couldn't start project…
amir
  • 31
  • 3
3
votes
1 answer

Back up android with adb backup

With the backup command you could make a complete backup of android smartphones, now that I know only the pull command remains but it is not like the backup command, are there alternatives?
tecno78
  • 87
  • 1
  • 5
3
votes
0 answers

(SOLVED) failed to detect device when first installing flutter in Ubuntu (Linuxmint 21)

I installed flutter for the first time, according to the link Linux Install Flutter step by step. after everything else was ready (android sdk, avd, etc), i tried through avd and it worked. helloworld app can run. then I want to try on real devices.…
3
votes
1 answer

How to translate device screen position to sendevent position?

I know about the input tap x y shell command, however, I'm trying to understand how to perform a click using the sendevent command. I been able to achieve it with the following command: sendevent /dev/input/event5 3 53 X && sendevent…
Cesar
  • 41
  • 2
  • 5
  • 16
3
votes
0 answers

adb shell cmd package compile not working

Overview I execute the command: adb shell cmd package compile -m speed -f my-package immediately returned Success. Next, I determine success with the following command. adb shell dumpsys package my-package The relevant result is as follows. Dexopt…
k8890
  • 31
  • 4