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

adb backup fails for some packages - creates just 47bytes

I like the idea to create backup without any other tools and without require root - so "adb backup" seems to be the perfect solution. But for some strange reason it creates just almost empty backups for some apps. The command I use is: adb backup -f…
Arno
  • 257
  • 1
  • 10
3
votes
0 answers

How to set new parameter to adb shell pm list features?

Help me please I am a developer of a test automation system, making a system for testers. I would be grateful for your help Displayed my parameters like this: x86_64: / # pm list features feature: reqGlEsVersion = 0x0 feature:…
Ashot Agabekov
  • 193
  • 1
  • 10
3
votes
0 answers

Flutter project debug is stopping in my vivo phone

I am facing a difficult problem now. Right now I can't do a flutter debug on my real phone device. I've tried everything possible, but I still get this error and can't debug. However, the installed app works properly. However, the biggest problem is…
celin929
  • 31
  • 2
3
votes
0 answers

How to change IMEI on an android virtual device?

I want to change the IMEI of an android virtual device that is running on android studio's emulator. It seems that google provides all virtual devices with the same IMEI (358240051111110), so apps that identify users by IMEI have trouble running on…
3
votes
1 answer

How can I trigger a BroadcastReceiver on Android 11 using adb?

I have two receivers I want to trigger manually and I can't seem to do it. These are the commands I'm using: adb -s deviceid shell am broadcast -a action android.intent.action.PHONE_STATE or adb -s deviceid shell am broadcast -a action…
casolorz
  • 8,486
  • 19
  • 93
  • 200
3
votes
1 answer

Appium for testing mobile app for call and video meeting like Zoom

I have to implement framework for iOS and Android device for testing app like Zoom, where I have to test call and video functionalities are working fine. However, for this I need to play audio and video stream when user is in-meetig, which makes the…
Karim Narsindani
  • 434
  • 3
  • 14
  • 38
3
votes
4 answers

adb: failed to open app.apk: Operation not permitted

I am unable to run the app on a physical device (Xiaomi) after upgrading the flutter SDK to the latest version. It is working fine on downgrading the flutter and few packages. OS: Ubuntu 18.04.5 LTS The error details are in the below image. I have…
Shyju M
  • 9,387
  • 4
  • 43
  • 48
3
votes
0 answers

Xamarin Tap Simulation (ADB)

I have been using ADB to simulate touch commmands in my application, the plan is to develop a sort of keymapper application that simulates touches in external applications(I don't feel comfortable sharing the app idea in public, despite there…
0xB01b
  • 318
  • 1
  • 10
3
votes
0 answers

Error Initializing ADB Unable to create Debug Bridge Unable to start ADB server Process didn't terminate within specified timeout killing it server

In Android Studio were it was supposed to show physical device list it keeps saying Loading Devices...I tried every possible answers I found online, killing ADB from task manager, reinstalling platform tool, reinstalling android studio, manually…
3
votes
1 answer

adb encounters "munmap_chunk(): invalid pointer" when trying to start server (Debian bullseye)

I'm trying to run adb and getting this output (ran 'adb server'): ADB server didn't ACK Full server startup log: /tmp/adb.1000.log Server had pid: 7913 --- adb starting (pid 7913) --- adb I 11-30 22:28:51 7913 7913 main.cpp:57] Android Debug…
3
votes
1 answer

LG Revolution and Android Development

I am trying to use my Revolution with my Windows x64 machine I got the LG Revolution the day it came out and have been very happy with it so far except for this problem. Whenever I connect the device to the computer (doesn't matter which mode), I…
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
3
votes
1 answer

Are Doze Mode and Idle the same thing?

I'm using Android Studio and i'm trying to test my app when using Doze mode. I've read some links already(including the android documentation about doze mode). However, i'm getting confused. Is there any difference between "IDLE" and "Doze mode"? It…
Yaksa
  • 176
  • 1
  • 12
3
votes
3 answers

Android Studio - Emulator not running

I am getting the error "the emulator process for avd was killed" and I have researched questions on this side with similar issues and tried things like reinstalling haxm and running a fresh install of android studio. Here are the logs, please can…
BranOIE
  • 400
  • 4
  • 19
3
votes
3 answers

ADB devices is empty in windows docker container

This is the output of adb devices inside a docker container (a windows server image - also the host is win 10) PS C:\> adb devices List of devices attached PS C:\> I need to create CI for a Xamarin project, all is done except the part where I need…
Alexandru Circus
  • 5,478
  • 7
  • 52
  • 89
3
votes
0 answers

Not able to run android emulator (android-studio) with react-native

I am just starting to create a new react-native project and I followed the steps exactly as mentioned in setting-up environment for react-native. My development OS: Mac; My target OS: Android I created a local.properties file in my project/android…
1 2 3
99
100