Questions tagged [adb]

For issues specific to the Android Debug Bridge (adb), a command-line tool to interact with Android devices and Emulator instances. See the full tag wiki for details and hints.

Filter by
Sorted by
Tagged with
6
votes
1answer
16k views

“adb devices” successfully shows device, but “adb connect usb” inevitably fails, any suggestions?

I have an ASUS ThinkPad, Android 4.4.2, Kernel 3.10.20. I've checked Settings->Developer Options->USB debugging. I've disabled Wi-Fi and BT (because I've seen some devices have some conflict there). ...
6
votes
1answer
320 views

Harden adb on Android 2.3

Actually I was never thinking about leaving my adb debugging enable on my cellphone when going outside. Now on cyanogenmod 10 and newer, it asks me to verify the rsa key of the host, which makes ...
6
votes
1answer
45k views

How to perform a full system dump/backup with a broken screen?

So, yesterday my phone took a serious tumble. It is now essentially useless, as the screen either fails to turn on, or when it does, there is nothing useful to see (just lines of primary colors, ...
6
votes
3answers
5k views

How to pull the apks from my android phone

I have a rooted android phone. I am trying to pull the applications from /system/app/. However this simply does not copy the apk. What I have tried. adb shell su cd data cd app ls ...
6
votes
3answers
5k views

“Too many files specified; only takes APK file and verifier file” problem

I have some devices attached to my PC. Now I want to install Astro to a specific emulator. Unfortunately, I get this error. hieund@hieund:~/Downloads$ adb install "Astro File Manager 2.5.1.apk" -s ...
6
votes
4answers
16k views

Does adb backup include contacts?

Does the command: adb backup -all -f backup.ab include contacts in the backup?
6
votes
2answers
2k views

What options exist when the vendor does not supply an ADB driver for an Android device?

I bought an Android phone and the vendor does not offer any drivers whatsoever. The Android SDK and the drivers that come with it don't seem to work with the device, but the device itself reports as ...
6
votes
1answer
4k views

No confirm prompt when trying to use adb backup

I'm trying to do an adb backup of my Galaxy S3 (i747m), but after receiving the "Now unlock your device and confirm the backup operation" order from adb, I never receive the prompt on the device. It ...
6
votes
3answers
20k views

Unlock Screen with ADB Android 4.2

Previously with Android 4.1, doing something like: adb shell input keyevent 82 #(KEYCODE_MENU) would unlock the screen at first boot and would then allow further commands to launch applications ...
6
votes
2answers
26k views

adb shell mount command: documentation?

I'm creating a guide for noobs on editing the SystemUI.apk on the US Galaxy S3. But, before I post the guide, I want to make sure I know my stuff! I'm looking to learn about ADB (and ADB shell) and ...
6
votes
1answer
34k views

why is my file system suddenly read only?

Some background: My HTC Desire HD has several issues. The first issue being that I can not connect to it using a USB cable. So I found that I can tell ADB to work over wifi and I was using this ...
6
votes
2answers
7k views

How to add contacts using adb without user interaction?

Following this I found out how to add a contact using adb. The only thing that's bugging me is that the user has to okay/cancel the action, because a create-contact dialog appears on the screen. What ...
6
votes
4answers
9k views

adb input keyevent 26 - Not waking device up

I am trying to wake a device up using the following adb command adb input keyevent 26 This correctly emulates the power button keypress if the screen is on, but will not turn the screen on if it was ...
6
votes
2answers
4k views

adb restore progress

Using the backup and restore function with adb (as discussed in Full Backup of non-rooted devices) there is no progress available and often it is very hard to follow the adb logcat output as long ...
6
votes
1answer
3k views

What is a “partial application install” via adb?

Android's adb has a "partial application install": $ adb install Android Debug Bridge version 1.0.32 ... adb install [-lrtsd] <file> adb install-multiple [-lrtsdp] <file...> ...
6
votes
1answer
8k views

How to take backup of all installed APKs from Phone to PC? [duplicate]

How do I take backup of all installed apks from my sgs2 to PC using android sdk/ 3rd party tool etc? My phone is not rooted. I can install/uninstall apks using adb, but is there any similar command ...
6
votes
1answer
2k views

Storage location of “adb_keys”

I have a Galaxy s3 (I9300) that has a broken touch screen (display is fine). I therefore can not click the authorization dialog that pops up when I try to access the device via adb on any ROMs above ...
6
votes
2answers
2k views

Making mediaserver immediately scan a file created through ADB

The mediaserver in my stock and rooted Android 6.0.1 (running in Nexus 6) doesn't detect new files created or moved to into /sdcard using adb. It doesn't detect until I do a soft/full reboot which I ...
6
votes
1answer
4k views

Simulate missed call from ADB shell

On the ADB shell, I run the command adb -s <serial_number> shell am start -a android.intent.action.CALL -d tel:123456 to place a call on my testing device. It works great. But I also want to ...
6
votes
2answers
1k views

Protect ADB access via network?

I have several Android devices in a local network. (Android Set Top Boxes from Geniatech, running 4.2 Jelly-Bean) If these boxes have problems or need debugging, I simply connect to them via adb ...
5
votes
3answers
55k views

ADB does not see connected Samsung S4

I'm on Windows 7 and have developer options including USB Debugging enabled. I have opened Kies and it recognizes the S4. However when I try adb devices, nothing to be found. It works perfectly fine ...
5
votes
2answers
7k views

App not installed for this user [duplicate]

I see App in my Apps section of settings which says App not installed for this user. It's completely greyed out and I cannot uninstall it. When I install the same from play store it says incompatible ...
5
votes
1answer
49k views

How to Install App as System App [duplicate]

My S3 has a damaged motherboard (says Samsung Tech Center), only boots into safe mode. If I am to keep using the device I have to make the apps into system apps, so they run in safe mode. One way is ...
5
votes
3answers
29k views

fastboot set_active command does not exist

I am trying to root my Xiaom mi a2 phone. But i am stuck on changing the active partition. When i enter "fastboot set_active b" it doesnt execute the command. Instead i get a list off all available ...
5
votes
2answers
15k views

adb listing all forwarded ports

I have forwarded machine port to emulator using following command adb forward tcp:1234 tcp:8080 I wanted to see currently what all ports are forwarded to avoid any conflicts. How to do that ?
5
votes
1answer
4k views

ADB pulling files from /data/data fails due to symlinks. How to skip symlinks in ADB pull?

I can run adb pull /data/data/com.xlythe.saolauncher/databases ./ or adb pull /data/data/com.xlythe.saolauncher/files ./ and it works fine. However, if I try adb pull /data/data/com.xlythe....
5
votes
1answer
4k views

adb backup not working for certain app

I need to get all files of a certain app (com.valvesoftware.android.steam.community), but adb backup only gives me a 1KB AES encrypted file. upon decrypting it there is nothing inside the tar archive ...
5
votes
2answers
5k views

ADB shell-ing to wifi connected device when usb device present

I have two devices connected to my workstation simultaneously, one by usb, the other over wifi. C:\>adb devices List of devices attached Cxxxxxxxxxx2 device 192.168.60.69:5555 ...
5
votes
1answer
5k views

Can apps be controlled through adb?

Can an installed application be completely controlled via adb? For example: Consider I need to to export my Contacts to SD Card. So here there are basically 5 Steps involved 1)Open Contacts ...
5
votes
3answers
14k views

How do I access .img files with yaffs2?

I've tried mounting them in Ubuntu, no luck, mount does not recognize the yaffs2 file system. I've tried yaffs2utils and ./unyaffs2 but it doesn't actually unpack the img files, I've posted an issue ...
5
votes
3answers
7k views

trying to adb backup but dialog doesn't show

I have sony xperia P device and I want to flash its ROM to get Marshmallow(I currently have android 4.0.4). I want to do full backup of my phone before doing this, I knew about adb backup command, ...
5
votes
1answer
2k views

Button to allow ADB backup not working

I have a Oneplus One running CyanogenMod 12.0. (Based on Lollipop 5.0) I'm trying to create a backup using ADB. I executed the command, and it gave me the usual prompt to unlock my phone and allow the ...
5
votes
2answers
9k views

ADB - Android emulator - Unable to record video - screenrecord not found with Android 5.11

I installed android emulator, the SDK Tools v24.1.2, Android v5.1.1. After all this the emulator is UP and I am able to run my app. Where I ran into problem was while trying to do a screenrecord ...
5
votes
1answer
15k views

Terminal or ADB command to force-stop applications

What is the terminal or adb command to force-stop an application? Like for freezing we use pm disable application_name.
5
votes
2answers
30k views

How can I get ADB to properly recognize an Alcatel One Touch 995 device on Windows/Ubuntu?

The problem I am trying to deploy a custom application to an Alcatel One Touch 995 running Android 2.3.6. I using Eclipse to compile the source code and push it onto the phone. The Android Device ...
5
votes
2answers
10k views

Stop Media Playback through adb

I'm testing some settings on a phone, and unfortunately the only control I have is through adb right now. My issue is that while I can start playback of a music file through the following command, I ...
5
votes
1answer
4k views

Error launching ddms.bat: “Failed to get the adb version: Cannot run program ”adb“: CreateProcess error=2, The system cannot find the file specified”

I've been following these very detailed instructions to take a screenshot on my Motorola Flipside. When I get to the step #10 where I launch ddms.bat I get this error and my phone doesn't show up: ...
5
votes
1answer
840 views

Obtaining app storage details via ADB

TL;DR: On-device, we can navigate to Settings › Apps, and for each app separately can call up details on storage used: by the app itself, by its data, by its cache. Is it possible to obtain those ...
5
votes
4answers
72k views

Samsung J5 : Use SD card as internal memory

I'm actually trying to use my SD card as internal memory on my Samsung Galaxy J5 with 6.0.1 android version. I saw some post on google and i follow this tutotial : http://www.phonandroid.com/galaxy-...
5
votes
1answer
13k views

Fastboot doesn't see nexus 6p

Currently trying to unlock my bootloader, but cannot get my nexus 6p to determine that it's connected to my PC. I can use adb commands while it's on, but booting it into fastboot mode with the adb ...
5
votes
2answers
9k views

How to set static IP on command line or adb shell?

I can't seem to use netcfg on Nougat. If I use ifconfig ip is not updating.If there is another method to change IP on command line or adb shell, I am all ears.
5
votes
3answers
7k views

What is the applypatch tool and how does one use it?

I recently stumbled upon the applypatch tool, but I couldn't find any documentation for it online. Here is the usage output (this is after typing adb shell) shell@android:/ $ applypatch --help ...
5
votes
5answers
10k views

adb push: sync but not copy

adb push seems to push everything into the dest folder regardless of their changed/unchanged states. So it wastes a lot of time. Is it possible to sync rather than copy (i.e. to rsync rather than cp)? ...
5
votes
4answers
11k views

Getting Segmentation Fault on recovery

It's an Android 4.0.3. I'm trying to fix my tablet, because it doesn't start anymore. running fastboot devices returns nothing. Then, I'm trying to do that through adb. adb devices returns List of ...
5
votes
2answers
3k views

Running a tasker task via SSHDroid (or adb shell)

I'm trying to run a tasker task manually from ADB Shell, via SSHDroid. I'm running the following in putty (Windows SSH client): am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -es task_name ...
5
votes
1answer
1k views

Get ADB to trust all computers

Is there something I can do to make my phone trust all computers to use ADB on my phone? I have root, Resurrection Remix on Android 7.1.1, and I am open to editing some files. I will only be plugging ...
5
votes
2answers
7k views

How to verify an ADB backup file is complete and in a good state?

This is not a duplicate of How to verify a backup file from ADB backup. The poster there probably didn't know that an unrooted phone requires -nosystem (ref) and ended with a 0 byte file, where my ...
5
votes
1answer
6k views

How do I change Android screen orientation via simulating acceleration? [closed]

I have developed an app and I need to test it. I have borrowed some devices from my friends and bought a few. Now problem is that I want to test it in both landscape mode and portrait mode but I don't ...
5
votes
2answers
2k views

Up and down arrows in adb shell

I have an HTC Desire HD. When I connect to it with adb shell from Windows, the up and down arrow keys work fine and I get command history. But when I connect to it from Mac OS, the up and down arrows ...
5
votes
3answers
376 views

Device recognized as ????? in ubuntu

Hello good people of stack exchange, I am having trouble setting up my Ubuntu 11.04 boot to use for app development on a hardware device. I have followed the instructions here to try and recongnize ...

1 2 3
4
5
37