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

3
votes
2answers
3k views

How to pull only newer files with “adb pull”? (Android SDK utility)

With the command "adb pull /sdcard/" I can copy all the contents of the internal memory of my Android phone into my current local directory (and "adb pull /mnt/extSdCard/" does the same with the ...
3
votes
2answers
16k views

Phone is rooted but has no SU application and can't access SU command on adb shell?

All this time, I thought that once I've rooted my phone, it means that I will also have SU access to it. This is true for the first device I rooted. When I rooted it, a SuperUser application appeared ...
3
votes
3answers
21k views

ADB status offline when trying to root Kindle Fire

I'm trying to root Kindle Fire but it always show "ADB status: Offline" when I start "run.bat". Could you help me out of this problem? :( I tried to plug, unplug, connect, disconnect the Kindle many ...
3
votes
3answers
4k views

Lost data upgrading roms, but data is still there when viewed with Clockwork and Clockwork alone. Can I recover it?

I lost my data upgrading to M1 CM10.1 through CMUpdate, but I still see it when I go into clockwork recovery mod. I tried accessing it through adb and adb shell but I cannot find it. Furthermore my ...
3
votes
1answer
3k views

“remount: not found” error

I want to install an application as a system application. To do so, I must remount the system partition RW, to do so I run the command adb shell remount rw in a terminal, but I get the error ...
3
votes
2answers
3k views

How can I put my Nexus 7 back to factory default ?

I have a Nexus 7, that I rooted and upgraded once, but it now seems that something changed it. As it is registered in Google Play, there are way too many applications that I cannot install on it. I ...
3
votes
5answers
8k views

adb doesn't detect my Defy (Motorola MB525) after I call adb kill-server (rageagainstthecage exploit). Any ideas?

I'm trying cyanogen's mod approach to root my Defy. I can do adb shell, it works as intended. But after I run adb kill-server and try an adb shell I get error: device not found It seems my phone ...
3
votes
1answer
2k views

Using ADB shell, How I can disable hostspot / tethering on lollypop Nexus 5

My screen got broken and I've been using my phone with a VNC Server installed on it, but this morning i'd the stupid idea of enable hotspot just to see if I can use my mobile data plan on my laptop, ...
3
votes
3answers
508 views

Install app without touchscreen or ADB?

My phones digitizer seems to have gone bad (after 5hrs of few app updates and 3hrs of a fall, working twice after that for 10minutes). It doesn't seems that the USB Debugging option is enabled on the ...
3
votes
3answers
4k 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 ...
3
votes
1answer
2k views

Can “adb remount” be used on a stock phone (unrooted)?

Is it possible to use adb remount with a standard firmware and without having rooted the device? If not, is there another way to force the system to make /system writable without rooting the device?
3
votes
1answer
706 views

How to prevent data extraction from rooted phone via adb?

I've a question regarding security in a rooted device. Being superuser means that you can access the /data/data directory, and that's a lot of personal data (I think it is almost all the data there ...
3
votes
3answers
24k views

USB drivers for using ADB with Samsung Galaxy S on CyanogenMod 7.1?

I recently installed CyanogenMod 7.1 on my Samsung Galaxy S i9000 and I have some problems now to get ADB on my Windows 7 64-bit computer to recognize the device. Currently, adb devices returns no ...
3
votes
1answer
5k 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 ...
3
votes
4answers
21k 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 ...
3
votes
2answers
2k views

Edit hosts file on Kindle Fire

I'm trying to edit the hosts file on a Kindle Fire. I should say that I'm not interested in rooting the device (unless I have to) and am not trying to hide adverts or prevent software updates etc. I ...
3
votes
3answers
3k 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 ...
3
votes
2answers
10k views

Can't connect to the device with ADB when it's in recovery mode

I am having some problems with my Samsung Galaxy S2 and I want to start an fschk session on the device. So, I installed Android SDK with platform-tools. I can access to the device when it's normally ...
3
votes
2answers
6k views

Do I need Android SDK to connect my phone in USB debug mode?

I'm following the steps provided here to root my Samsung Captivate (Galaxy-S). I install the USB drivers in the link provided. Whenever I connect my phone, I get the error There was a problem ...
3
votes
3answers
2k views

ADB command to wipe data the phone?

I have 200 Russian Phones to flash with UK Firmware. Now when i flash the UK firmware through Odin, it works fine but Russian firmware is still on it, however it does become UK if i factory reset the ...
3
votes
3answers
4k views

Physical Device does not show up in Android Device Chooser

I posted this in stack overflow, but I figured it would be more relevant here. When I open the DDMS, it shows the device there. However, when I try to run my program, Eclipse opens the Android ...
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 ...
3
votes
1answer
2k views

How to get “Non-Root” access on Emulators ?

I am running adb on emulators and by default, the emulators give root access. When I execute 'adb shell', I get root access to the emulator(virtual device). For some reason, I want to have non-root ...
3
votes
2answers
5k views

How to “adb connect” to Samsung Galaxy Tab (P3100)?

I am trying to connect to my tablet (Samsung Galaxy Tab P3100) through network. > adb connect 10.0.0.2 unable to connect to 10.0.0.2:5555 > adb connect 10.0.0.2:5555 unable to connect to ...
3
votes
2answers
2k views

Backing up everything on my kindle fire with ubuntu before installing firefirefire, can't get past Hellions with blue flames when rooting

I'm trying to follow this post in order to install firefirefire on my kindle fire: http://forum.xda-developers.com/showthread.php?t=1369405&page=1 I'm at the part at the beginning of the guide ...
3
votes
1answer
202 views

Fail to install CM13 on Oppo Find 7a

I would like to install Cyanogenmod 13 on my Oppo Find 7a. I am following the instructions from CM wiki. I am using a laptop with Linux (LMDE2). I fail to install a TWRP recovery. Fastboot seems to ...
3
votes
1answer
76 views

touch screen and usb not working: any way to remotely control my phone?

I recently had my phone water damaged during my vacation. The phone still boots up but it doesn't respond to any touch input. When connecting to PC, a notification would appear on my PC that the ...
3
votes
1answer
146 views

Can you dump the contents of your phone (os + apps + data) and run that in an emulator/Android Studio?

Is there a way to dump the contents of your phone (OS + apps + data) and run them on a PC in an emulator of some sort? I feel like there are security implications to being able to do this but with ...
3
votes
4answers
4k views

Does adb backup include contacts?

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

windows 8 - keeps disconnection samsung from computer

I recently upgraded from windows xp to windows 8 and I have a problem with the USB-connection. When I plug-in my samsung galaxy s3 to the computer - a symbol pops-up and the adb-client can comunnicate ...
3
votes
1answer
777 views

Colored output in adb, e.g. for ls command

Is it possible to have colored output in adb shell, e.g. for the ls command? I've tried ls --color=auto . etc, but that doesn't seem to work. Colored output, however, works in adb shell, e.g. with ...
3
votes
2answers
14k 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 ...
3
votes
1answer
2k views

error with adb push

Hi I want to push an APK Expansion file to my phone so I am executing: C:\Users\dogface\AppData\Local\Android\android-sdk\platform-tools>adb.exe push c :\main.1.com.redcricket.Audiobook.obb ...
3
votes
2answers
16k 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 ...
3
votes
2answers
2k views

Can't connect an already booted device to adb

Every time I want to connect my phone to adb via USB I need to turn it off, plug the cable and turn it back on. Is this the right way to go or am I missing something? Documentation doesn't seem to ...
3
votes
1answer
4k 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)? ...
3
votes
2answers
5k views

Galaxy S2 - Accessing Internal phone memory in Recovery Mode

How can i access to Internal Storage in Recovery mode using Android Debug Bridge (ADB.exe) ? C:\Users\MohammadReza\Desktop\platform-tools>adb devices List of devices attached 4F58000600000001 ...
3
votes
3answers
1k views

Deleting Pictures through adb - Yet They Remain in Gallery

I'm attempting to write a script to test out a camera for long periods of time, and one of the issues right now is the fact that it runs out of space when pictures are taken. My initial approach is to ...
3
votes
1answer
23k views

How to mount system in rw mode if no custom recovery

When I changed my build.prop for spoofing another device model, I copied build.prop from another device having gingerbrad but my system is froyo. When I rebooted, I lost my internet connection. It ...
3
votes
1answer
2k views

Samsung Galaxy Tab 7" Plus — adb drivers

I have a Samsung Galaxy Tab 7" Plus tablet on my hands, and I am trying to test my "large" scale layouts. The device shows up in harddrive mode on my computer (Win XP), but adb does not recognize it ...
3
votes
2answers
55 views

How can I get Reverse USB Tethering to work on my KitKat device? I've already got it running on my Jellybean device

FWIW Reverse USB tethering works great on my Jellybean device, lets assume it has the serial number 0123456789ABCDEF, here are the commands I use to get it running: adb -s 0123456789ABCDEF shell su ...
3
votes
1answer
110 views

How to make Android Amoled screen to display colours for hardware testing, through commands?

In hardware testing i want to display colours like red, green, blue etc.., on the android screen i.e., Amoled display. Can you help to do this through commands and how the invoke the android display ...
3
votes
1answer
4k views

adb pull - copy whole folder to computer

How do I copy a folder from my android device to a certain folder of my computer? if I use this command: adb pull efs It copies the contents of the efs folder to my computers root directory. I ...
3
votes
1answer
682 views

How can I get the refresh rate via ADB?

How can I use ADB to get the refresh rate of a device's screen? For context: I'm working on a python script that is going to display how many dropped frames occurred while it was measuring. In order ...
3
votes
1answer
906 views

How can I access multiple user spaces from adb?

I am running KitKat on a tablet with two users: primary (owner) and secondary. I need to access a file generated by an app of the secondary user. When I plug the tablet into my (Ubuntu) desktop via ...
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

How to end call via adb in android 2.2.1?

Im creating small call center like system based on pyadb. I was developing for my phone which has custom SlimKat ROM - kitkat based. To call i do :adb shell am start -a android.intent.action.CALL -d ...
3
votes
1answer
16k views

Stuck in Fastboot?! Help please!

I tried to get CM11 on my LG G2 on Bell Canada's network and I really messed it up. I can no longer get into recovery, adb doesn't see my phone, but download mode works (though I have no idea how to ...
3
votes
2answers
3k views

Adb can't see my device - PAP5400

When I connect my Prestigio PAP5400 DUO to my PC, ADB cant find it. I think the driver is wrong but I can't find right one. I have tried installing many drivers. PS: I have debugging mode ...
3
votes
1answer
2k views

Why is adb backup with system apps unsafe? (Holo backup)

In holo backup, adb backup with system apps is said to be unsafe. I was and am not sure why it is. But I tried it anyway, and slept then when I woke up in the morning, my computer crashed. So I am ...