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

2
votes
3answers
14k views

can't use adb shell in recovery mode

I have a china tablet named Quest. I have accidentally repeated pattern lock more than 5 times. Now I have also forgotten the email address. So for a factory-reset of my tablet I simply booted it ...
1
vote
0answers
122 views

Is there any way to dump the Data Usage log through the ADB shell?

The reason I would need to dump these data is because in smalls display (S5301) doesn't fit everything and data is cut. I couldn't do anything to move that graphic. Look, I've searched in Google ...
0
votes
1answer
408 views

How old is the datalog when just starting “logcat”?

When I run adb -d logcat it dumps data from a time before. How old is that data?
1
vote
2answers
2k views

adb restore across different devices, android versions

Once upon a time, I ran this on an Android 4.3.0 Nexus 7 2012 running ParanoidAndroid: adb backup -all -nosystem -apk -shared \ -f backup-all-nosystem-apk-shared-201309132331 Now I would love to ...
1
vote
1answer
3k views

Sony Xperia Z1 won't start up again!

As you may know, you have to backup the TA-partition before you put a custom ROM on the Sony Xperia Z1. I've backupped the partition with this .bat file: ...
1
vote
0answers
169 views

HTC Desire S-Off

My HTC Desire is stuck in a boot loop: HTC Desire Boot Loop I am trying to set S-Off so that I can use the Windows version of ADB and delete some apps/data off the phone memory. I don't want to ...
2
votes
1answer
8k views

How can I enable adbd during boot on Cyanogenmod?

I am stuck during the boot process, at first before entering the passphrase for /data and now at the SIM PIN screen. At this point, adb is inaccessible (normally adbd would start up after unlocking ...
0
votes
3answers
17k views

How to fix “error: device not found” when I try to use ADB

I'm trying to get my phone (JiaYu G3T) working under adb on Windows 8 x64 (worked fine on Windows 7 x64 before reinstalling my OS). Driver Android Composite ADB Interface, version 8.0.0.0, works ...
1
vote
0answers
592 views

Permission denied while trying to do MKDIR

I am loading media files into the /sdcard folder on my Android device and playing them and everything seems to work fine. When I tried to do a MKDIR on this folder, it said that my permission is ...
2
votes
0answers
360 views

adb shell superuser access without approve from phone

I'm running MIUI 3.9.27 on my HTC Desire S. I accidentally froze my miui launcher (com.miui.home) and after reboot, phone stuck on boot animation, but seems everything running except miuiHome. I ...
1
vote
1answer
612 views

fastboot serial number?

On occasion I've seen the serial number reported by adb and fastboot differ. Is there a way to reliably determine what the fastboot serial number will be from adb?
0
votes
1answer
1k views

How to enable experimental reverse port forwarding in chrome?

Commonly you have a web server running on your local development machine, and you want to connect to that site from your device. If the mobile device and the development machine are on the same ...
0
votes
0answers
428 views

Fail to connect to ADB Wifi when device goes to idle state?

I am connecting to my Android phone with ADB WiFi (no USB plugged in). However, whenever my device goes to sleep, I am losing connection and unable to reconnect. In what I am trying to do, I need to ...
0
votes
2answers
2k views

root cannot list filed in /data

1|shell@maguro:/ # ls -l /system/xbin/ -rwxr-xr-x root shell 59816 2013-07-11 02:12 dexdump -rwsr-sr-x root root 67008 2013-10-08 17:24 su shell@maguro:/ # ls /data opendir ...
2
votes
1answer
4k views

Problem with ADB on my Nexus 4 (unauthorized phone)

When running adb devices in cmd, it says that my phone is unauthorized. It appears that it has something to do with the RSA fingerprint prompt. I don't remember ever getting such a prompt. Yes, I am ...
3
votes
3answers
2k views

How do you remove permanent adb authorization?

I have a Nexus S running Cyanogen 10.1.2 (Android 4.2.2). I require adb authorization, but I accidentally "permanently" authorized a device. How do I remove the "permanent" authorization, so that ...
0
votes
1answer
580 views

lsusb lists Galaxy Samsung Tab s2 & adb devices lists nothing

really, I do all my efforts to run an android project through eclipse on a tablet "Samsung galaxy Tab s2/ GT-P3100" under linux (Ubuntu 12.04). i add the vendor id of samsung in ...
0
votes
1answer
13k 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, ...
2
votes
2answers
701 views

adb shows devices as offline but system_profiler detects the devices fine

I have several devices (mix of tablets and phones) connected to my mac mini. Some of them are connected directly while some are connected by a good quality hub. $ system_profiler SPUSBDataType | ...
0
votes
0answers
76 views

Fetch stock recovery

I have a Samsung Galaxy SL gt-i9003 [ROOTED] and I was trying to fetch the stock recovery to kepp it as a backup for flashing a custom recovery... I've tried doing the same via ADB command cat ...
0
votes
1answer
6k views

How do I install USB drivers in Ubuntu 13:04 for Nexus S?

I am trying to follow this guide: http://forum.xda-developers.com/showthread.php?t=2163085 However I am unable to connect to my android phone via USB. I think I need to install the USB drivers ...
0
votes
1answer
751 views

unlink () and rmdir() errors when running adb wipe command

I'm trying to wipe my device using adb shell su -c wipe all, but when I run it I get the following errors: unlink() error on '/system/vendor/res/images/dock/dock.png' 'Read-only file system' and ...
2
votes
0answers
23 views

Get phone data out when screen is dead [duplicate]

I have rooted Samsung Galaxy S2 with Rootbox Android 4.2.2 installed. My phone screen is dead and I want to get following data out of the phone. SMS (Most important) Photos Other files in internal ...
1
vote
1answer
7k views

Clockwork: error: cannot load 'recovery-clockwork': No error

I am trying to flash a recovery-image file into my Nexus 7 but the flashing fails know that I am working on windows and my image file is located in the same folder as adb and fastboot files are ...
1
vote
3answers
4k views

Pulling an apk of paid app from the device

I was pulling the .apk files from the device using the following command: ./adb pull /data/app/com.example.tracker-1.apk When I tried using the same command for the encrypted app as below: ./adb ...
2
votes
2answers
5k views

adb-shell : /sbin/sh: command: not found

I've managed to root Google Nexus 7 (2013 Wi-Fi) and now I have CyanogenMod 10.2-20130919-NIGHTY-grouper running on it and Clockworkmod recovery v6.0.1.9 following this guide. Then I downloaded and ...
0
votes
2answers
2k views

Error installing Android 4.3 using adb sideload

Situation : My phone battery drains out completely one day and even after charging it fully the phone is still stuck in boot-loop with Nexus 'X' logo. What I did : Tried factory reset from recovery ...
5
votes
4answers
8k views

ADB on Ubuntu does not recognize Nexus 4

I'm unable to get my Nexus 4 phone recognized by ADB on Ubuntu (12.04 with a newer kernel installed: 3.8.0-30-generic). Developer mode is enabled on the phone. The device shows up in lsusb: $ lsusb ...
2
votes
0answers
150 views

Will adb restore increment the custom binary flash counter?

With adb backup an archive of all apps and their data can be retrieved from the phone. I could not find any clear information which exact files and partitions are accessed during the process. If it ...
1
vote
1answer
2k views

change file permission in BlueStacks player qwerty.kl

I want to edit BlueStacks '/system/usr/keylayout/qwerty.kl' to add few more key map to this file, but I cant able to edit this file due to permission issue. Any suggestions on how can I change file ...
1
vote
3answers
2k views

Can I update the adb shell's environment variables?

I wanted to update the PATH environment variable permanently in the adb shell. I guessed the shell was mksh for I've found /system/bin/sh pointing to /system/bin/mksh. Then I tried Making a new file ...
10
votes
3answers
5k views

Can't use ADB with Nexus 4 after 4.3 update

Here's a funky issue. I've been using ADB without any problems on 4.2.1 and 4.2.2 on my Nexus 4 (Stock Android and some CM10-based ROMs). When I flashed a CM10.2-based rom (JellyBro, I believe?) a few ...
0
votes
2answers
517 views

Can I disable USB Debugging on Android smartpones from Windows via adb.exe?

I have to install Applications on dozens of android smartphones and I am currently writing a program to automate this process. I know I can't remotely enable USB Debugging, so my question is: Can I ...
0
votes
1answer
5k views

Permission denied for adb push file to /data/data/xxx/file/

I used "adb pull" to backup Final Fantasy III saved data and it worked well, but it doesn't allow me to push it back after the factory reset. D:\AndroidSDK\sdk\platform-tools>adb push d:\save.bin ...
0
votes
2answers
1k views

adb start-server and listen on all interfaces

ADB in Android 4.3 SDK implemented -a option. What I want is: adb -a start-server so the background process is bound to all interfaces, but it does not work. I need to start it like this on ...
1
vote
0answers
739 views

problems detecting Asus nexus 7 on Windows 7 Home Professional (driver installation problem)

I am having problems getting my Asus Nexus 7 detected on a laptop with Windows 7 Home Professional When I connect the device to the computer, it says USB debugging mode enabled, but the computer does ...
0
votes
1answer
329 views

adb shell ls giving strange results

Environment: running adb in command window on Windows XP PC running adbKonnect on Nook Simple Touch (rooted; running Android 2.1) When I type adb shell ls \sys I get a list of the folders there. ...
2
votes
3answers
5k views

The command 'adb root' works, but 'adb remount' results in “Operation not permitted” message

I'm trying to remount /system to copy some files to it. I tried the following with adb: adb root adb remount The first command works fine (because my phone is rooted), but the second tells me that ...
1
vote
0answers
1k views

adb input swipe to unlock slide screen lock and open notifications

When I use the command adb input swipe, the slider slides all the way to the right, but does not 'click', so the screen does not unlock. I calculate the coordinates based on the (not visible) 'swipe ...
2
votes
1answer
525 views

Is it possible to run any sort of hardware diagnostics through ADB

I have a Samsung Galaxy S4 that I had for a little over months before getting caught outside in a serious rainstorm. As I was pulling the battery out of the phone, I noticed the screen flicker. I ...
5
votes
2answers
3k 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 ...
1
vote
1answer
3k views

ADB/fastboot over Serial/COM ports?

Long story short, my phone messed up and it's stuck in a bootloop. The phone in question is a Coolpad 7560U, also known as Orange Nivo, running Android 4.1.2 Jelly Bean. Data and cache wiping do not ...
1
vote
1answer
3k views

Unlock Screen with ADB Android 4.1.2

I have a Sprint Galaxy S3 (v4.1.2?) that I've rooted with CWM. Last week the glass and display cracked, so now I can't access it directly. I'm able to access it with adb so would like to use ...
0
votes
1answer
646 views

Connecting android tablet as testing device

I have a problem related to connectivity between my desktop (Windows) and tablet (Android 4.1). I bought a new device (Colorovo City Tab Vision 7) and now I want to use it for testing of my ...
9
votes
3answers
2k views

Why do we need Kies (ADB driver) in Windows but not in Linux?

Why do we need an ADB driver in Windows but not in Linux? I have been working on Android for the past few months in Windows. To run my project on my Samsung device I had to install Kies first. ...
0
votes
2answers
453 views

path for echo binary location

I am unable to find the "echo" binary in the /bin path (supposedly the path for storage of essential binaries) on Galaxy S2 on which I am working on. And yes, the "echo" command is perfectly working ...
1
vote
1answer
3k views

Using ADB to change the screen lock

I am looking for a way to change the screen lock type from slide to password, and set the password via adb command line. I have a device with the setup I want, and one that has slide lock. I'm pretty ...
2
votes
2answers
824 views

Uninstall from emulator doesn't work

I'm doing my first steps with Android. I'm using a Mac, and no Eclipse. I've installed my first toy application with adb install bin/*.apk and verified that it existed in the emulator. Then I made ...
1
vote
1answer
447 views

How do I get the common name of an app having the package name (like com.android.blabla)? (command line or included app)

I’m interested in a way to go from the package name (e.g. com.android.providers.telephony) to it’s common name (Phone/Messaging Storage). The answer should only assume shell access (adb) on the phone ...
5
votes
1answer
1k views

How can I see the fingerprint of my adbkey?

You should know that Android 4.2.2 (or just before) introduced RSA key checking for adb access. – The device asks now if you want to allow access. To avoid asking every time, the computer presents an ...