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.

learn more… | top users | synonyms

1
vote
1answer
384 views

How can I change pointer locations setting in developer options from adb shell?

I need to be able to select and deselect "pointer locations" from the developer options menu using adb. adb shell am start -n com.android.settings/.DevelopmentSettings, but once I'm there I can't ...
1
vote
2answers
489 views

Error setting up Android USB debugging on Ubuntu 14.10

I have an Android phone from LG, and I want to use it for USB debugging. I followed the following steps: Enabled usb debugging in developers option on phone. After connecting to PC, phone shows as ...
0
votes
1answer
122 views

Which Android emulators can co-exists on single machine?

Which emulators can co-exists on single Windows machine and be used simultaneously for app development (adb support)? I'm using Genymotion which seems to work on bare system; AVD x86_64 requires Intel ...
1
vote
1answer
476 views

Why does this app not restore from Google Backup until I specify the set in adb?

I read this great answer about how sets work, but I'm seeing behavior I don't understand in this app. I just installed on a device that has never had the app installed (I think, see bottom) and ...
3
votes
3answers
22k views

fastboot flash bootloader = FAILED (remote: (InvalidState))

I'm trying to flash bootloader on my Nexus 7 (2012) and getting FAILED: mbp:nakasi-lrx21p alexus$ fastboot flash bootloader bootloader-grouper-4.23.img sending 'bootloader' (2100 KB)... OKAY [ ...
0
votes
1answer
178 views

ADB disconnect while using adb forward

I'm using JADS HTTP & HTTPS Proxy application along with 'adb forward tcp:8080 tcp:8080' to setup an HTTP proxy/tether setup on my laptop. This works fine for most of the time, however some sites ...
2
votes
1answer
3k views

Recursive adb pull

How to copy a whole directory (and all of its content recursively) over USB with adb pull? For instance to backup the SD card. Attempt: $ adb pull /sdcard backup failed to copy '/sdcard' to ...
1
vote
0answers
265 views

How to root from adb?

I have a tablet called General Mobile E-Tab 4. I bricked it. It stays on load animation. I can reach recovery but there are 3 options: reboot device wipe data/factory reset wipe cache partition I ...
0
votes
3answers
13k views

Insufficient Storage on changing default install location

After downloading an APK file from Play Store. It always prompts "Insufficient Storage" dialog. I changed the default install location into external memory(SD card) using adb command adb shell pm ...
0
votes
2answers
2k views

Unable to adb push on Samsung S4

I absolutely can't push to /system/app/ using adb on a rooted S4 with rw remounted filesystem. adb says: Read-only file system Mounts: /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ...
0
votes
1answer
190 views

My Nexus 7 isn't being detected by Windows. No OS on Nexus 7

I wiped my OS from my Nexus earlier as I had a ROM that I wanted to flash. When I proceeded to try and flash the ROM to my Nexus 7 using flash-all.bat (I installed ADB and Fastboot and Drivers using ...
0
votes
0answers
73 views

ICS device name not recognised under adb

I have a device to which I recently flashed CM 9 which I use for testing backward compatibility in apps. However, adb doesn't seem to recognise it. adb devices outputs the following when it is ...
0
votes
2answers
894 views

Tablet listed under adb devices, but not under lsusb while in recovery

I am working with a Gemini devices GEM1000 tablet, I have performed all the steps to get adb working, and the device shows up under 'adb devices' so I go to the bootloader with 'adb reboot bootloader' ...
1
vote
1answer
997 views

Permission denied while installing a system app with SSH

I have the APK file for an application I want to install as a system application via SSH on rooted Android tablets. I'm able to install this application via ADB with a script but the installation ...
0
votes
1answer
752 views

Windows doesn't show device in Explorer

After updating my Nexus 7 to the latest version of Android (4.4.4 at this point), Windows decided that it would no longer show the device in Explorer in MTP mode. PTP worked fine, but obviously this ...
1
vote
2answers
4k views

Need one-line adb shell su push & pull to access /data from Windows batch file

I've been struggling for two days. Hope for help here. I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on rooted kindle fire hd 7", 2013 (kfsowi). Just learned I ...
0
votes
1answer
242 views

Nexus 5 nothing bootable?

I add Paranoid OTA on my Nexus 5, and I tried to uninstall it. During the processus, everything totally failed and my phone start rebooting itself all the time. Now : ADB is not working. (I tried ...
3
votes
1answer
3k views

A way to get location coordinates from command line

I'm looking for a command line, or a series of commands that can dump or list the latitude and longitude on a rooted device. I connect to a device using ADB shell. A way that will cause the ...
2
votes
4answers
3k views

Does adb backup include contacts?

Does adb backup .all -f backup.ab include contacts in the backup?
2
votes
1answer
2k views

How can I enable USB Debugging on an LG G2 (vs980) with a broken screen? [duplicate]

I have an LG G2 (vs980 - Verizon). The digitizer and screen is broken - I can view it, but not submit input. The device has fastboot and TWRP capabilities, and I can get to ADB from TWRP. The device ...
0
votes
1answer
3k views

adb shell remove directory with patenthesis windows

I'm trying to delete a directory that contains parenthesis in its name. So far I've tried: adb shell rm -r "sdcard/music/SomeArtist - (good stuff)" And I get: /system/bin/sh: syntax error: '(' ...
0
votes
0answers
38 views

Windows thinks phone is “Removable Storage” so adb won't work

When I plug in my phone to flash a new ROM onto it, I can't use adb and fastboot because windows thinks my phone is "removable storage." It doesn't list the Google phone driver anymore as an option, ...
0
votes
1answer
112 views

Eclipse is not able to detect smartphone

Debian 7.6, Eclipse 3.8. When i program with API8 for my HTC Froyo I have no problem: running the debug session i see the device in the device list and I'm able to debug my app. Since I started with a ...
0
votes
1answer
465 views

adb sync shows Product directory not specified

I am using android in an emulator integrated with eclipse. I was trying to import my gmail contacts into my emulator. For that purpose, I exported my gmail contacts to a .vcf file (contacts.vcf) from ...
1
vote
1answer
249 views

Why can't I upload binaries to Android Sony Xperia Z?

I recently upgraded my Android to 4.4.4 via 4.3.? When I was on 4.2.* I had no problem either uploading apks and pictures via usb nor via adb install / push. Symptoms below, any help appreciated. I'd ...
0
votes
1answer
159 views

How do I create an archive for easy extraction to /data/local/tmp/ in “adb shell”?

Usual shar archives fail to extact in adb shell due to problems with lock directory and temporary files for HERE documents. Zip archives are also not an option. How do I make an archive that can be ...
2
votes
0answers
398 views

Asus Transformer Tab tf300t stuck on asus screen. No ADB, no fastboot, no recovery, no os

I'm very happy with cm11 on my Galaxy s3 so i wanted to try it on my tf300t. First i unlocked the bootloader which i succeeded in doing. Then i flashed clockworkmod recovery via adb. However, when i ...
2
votes
0answers
3k views

SDCard permission issue

I have a Samsung S3 which I have installed Cyanogenmod on with a view to carry out some procedures with root permissions. At the minute I am trying to create a .img file of the userdata memory block ...
0
votes
1answer
4k views

how to adb wait-for-device until the home screen shows up?

I need to unlock my screen using adb, and wait-for-device exits way too early(when the device is booting up), and screen unlock fails. Is there a way to detect that the home screen, so I can fire ...
1
vote
2answers
2k views

Samsung S3 - Device Memory Damaged

I have a Samsung S3 GT-i9300 which has an error on booting up. It goes through the Samsung splash screen then displays the following: Device Memory Damaged The data partition has been ...
1
vote
1answer
394 views

adb device not found

When I enter ./adb devices I get Device not found. Yet I can successfully unlock my phone via ./fastboot oem unlock. I can't turn on debugging since my phone is stuck in a bootloop and won't start ...
0
votes
1answer
343 views

Secure ADB connection over network

I am using Geniatech ATV Android Set Top Boxes running android 4.2.2 for a current project. I might put some of those devices in public places like shopping centers. These boxes are connected to the ...
0
votes
2answers
251 views

Trying FTP file located in /data/data

I'm trying to use WinSCP to FTP a file out of /data/data (well, it's directory is contained in the /data/data directory, which is the important part). But I get a "Code: 5" error from WinSCP, access ...
0
votes
1answer
69 views

Get to data without touch access

The screen of my Nexus 4 has a crack and touch is not working anymore. I'd like to get to some of my data using adb, but can't authorize it because I can't click/touch the authorization dialog. Is ...
1
vote
1answer
758 views

Unlock not working (ADB FLASH)

So I'm trying to flash adb my android (mostly following this guide), and I'm getting stuck at the unlock device step. I can successfully unlock, but once I reboot my device it reverts to being ...
19
votes
5answers
5k views

ADB backup creates 0-byte file; prompts for current backup password even though I never set one; “Failed to set password” for Desktop backup password

The problem: Every time I run ADB backup, I get a message near the bottom of the home screen saying Backup starting..., followed by a message saying Backup finished a few seconds later despite the ...
2
votes
2answers
2k views

MTP not working but ADB works fine

I use Samsung Galaxy S4 Mini Android Phone, its MTP mode is not working just after I plugged it in to another PC some time for just USB charging. I re-installed the driver on my PC and removed the ...
1
vote
0answers
226 views

Can I pull data off of a Moto 360 (smart watch) using ADB?

I am a complete beginner to the world of Android, but I am also an intrepid forensics examiner. I have been given the opportunity to conduct research into pulling data from certain wearables, namely ...
1
vote
0answers
503 views

Bricked chinese android

Recently I edited build.prop of my Note 3 smn9006 clone with mtk6572 for enabling navigation bar, i.e qemu.hw.mainkeys=0 and restarted. Nothing happened. Then again I tried to enable navigation bar ...
-1
votes
1answer
137 views

Get device's component information and health status

Is there any option provided by Android by which we can list down all the hardware and software component of smart phone? Also, we can check the health staus of all the hardware components. For ...
2
votes
1answer
3k views

How to authorize device for adb when the touch control is completely broken?

My Nexus 7 2012 has fallen from a table and though the display as well as the device itself is fine, the touch control is completely broken. You cannot tap or touch anything. I believe I can manage ...
3
votes
2answers
1k 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 ...
3
votes
1answer
6k views

Unlocking Nexus 4 with cracked screen [duplicate]

Recently a short fall broke not only my Nexus 4's cheap phone case, but the digitizer as well. The LCD and everything else is perfect, however the touch screen only works on the top quarter of the ...
3
votes
1answer
2k views

Howto get device's features with adb

Howto get device's features with adb - e.g. whether it has accelerometer, screen is capable landscape mode... These values are set in XML during build: <feature ...
7
votes
2answers
21k views

ADB not working, but Fastboot is

I recently bought a used Nexus 5. It came with the L preview on it, and I decided to flash CM 11 instead. My last phone was a Nexus S, and I've flashed various ROMs to that thing in the past. Using ...
0
votes
0answers
1k views

Moto X: Download pictures and data with broken touchscreen

Someone threw my Moto X straight at the ground, so the screen displays nothing but weird paint-like colors in some corners. And it doesn't seem like the touchscreen is working at all, since when I ...
1
vote
1answer
1k views

Unlock encrypted Android from ADB

I have the following problem: Somehow, this evening the touchscreen of my Sony Xperia Z broke. I have two thin cracks in the display and everything on the right side of the crack does not react. I ...
3
votes
0answers
2k 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 ...
-2
votes
1answer
5k views

Stock Nexus 4 stuck in bootloop

My Nexus 4 suddenly went into bootloop today after getting drained last night. I tried booting into recovery mode, but as it is not rooted or unlocked, fastboot and adb sideload do not work. I want ...
0
votes
0answers
30 views

Enabling adb via recovery mode [duplicate]

I'm using a HTC One S (Ville C2) with TWRP as the recovery image, however I currently cannot see anything on the screen because the screen is cracked. I'm trying to recover the data inside the phone ...