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

14
votes
2answers
17k views

Is there a minimal installation of ADB?

When it comes to troubleshooting, I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data, Full Backup of ...
11
votes
6answers
21k views

Broken screen while debug mode was disabled. How can I re-enable adb?

The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback. Before I go to get it ...
2
votes
3answers
10k views

Configuring ADB for Nexus 4 on Ubuntu 11.10

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to ...
24
votes
4answers
86k views

Where in the file system are applications installed?

I have installed a few Android applications both with the adb install MyApplication.apk command and via a webserver (like an alternative to Android Market). But where in the Android file system on my ...
25
votes
4answers
20k views

How do you extract an App's data from a full backup made through “adb backup”?

I have been backing up my Nexus 7 with adb backup to back up all files into an encrypted backup. I see that you can restore from a backup with adb restore, but that would wipe all my existing data on ...
4
votes
3answers
4k views

Broken Screen + Using adb shell to run vnc server

I have an HTC HD2 with a completely busted screen, I tried repairing it with a replacement screen but broke the ribbon cable to the screen (oops) sad day, I've got two of these and I've been running ...
4
votes
2answers
19k views

Control Android with broken screen from PC

My rooted Galaxy Nexus has a broken screen. How can I use my PC (ie, via ADB) to control the phone? androidscreencast would be the ideal solution, but its keyboard/mouse control feature does not work ...
21
votes
3answers
17k views

Is there a way to look inside and modify an adb backup created file?

I created a backup of my Galaxy Nexus with adb backup. The resulting file is named backup.db and it's somehow encrypted. I wanted to restore the backup, but it stops when it comes to restoring ...
2
votes
1answer
4k views

How to Install Android Apps to the SD Card by Default

I am following this tutorial for moving apps to sd card. How to Install Android Apps to the SD Card by Default But My Default Location is not changing. And My Phone Memory is full and unable to ...
13
votes
3answers
12k views

Why is “insufficient storage” wrongly reported when installing an .apk via adb? [duplicate]

I have an HTC Desire running Froyo. It is not rooted, nor have I installed any custom ROM. I get an "Insufficient Storage" error when I'm trying to install an app via adb/eclipse. The .apk is only ...
3
votes
3answers
5k views

ADB can discover devices but not fastboot

I've searched on the web about this problem and it's usually solved by installing the appropriate drivers. Problem is I'm on a Mac. When I plug in my device, it can be discovered when I run adb ...
3
votes
1answer
1k views

What's ADB and why is it used for? How do I install it on my device?

There are mentions about ADB on various questions and answers on this site. I'm not exactly sure what ADB is, what it does, how it works and where I can get it: there's little information on the tag ...
0
votes
1answer
4k 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
2answers
1k 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 ...
7
votes
3answers
3k views

Can I use ADB without connecting over USB?

Is there a way to use adb directly via bluetooth instaad of always via usb?
2
votes
2answers
15k 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 ...
0
votes
1answer
1k views

how to change input method with ime command

I want to know how to change input method using the command line. Any ideas? Sorry for my english. I have tried this: C:\Users\admin>adb shell shell@android:/ $ ime list -a ime list -a ...
19
votes
6answers
22k views

Backup and restore Android Settings and Application through ADB

I would like to ask if it possible to backup and restore all Android Settings and applications through ADB. I tried: adb backup -all adb: unable to connect for backup It is not working, while all ...
7
votes
3answers
2k views

Backup using adb on a phone with a dead screen

I have a Galaxy S3, screen is visually and touch impaired. It is USB debug enabled, un-rooted. I'm able to use Droid@Screen to see my screen, which i'm able to unlock. I then run this command: ...
13
votes
2answers
10k views

Why can't the su binary simply be copied (techical response please)

I have rooted several Samsung devices and the underlying "goal" so to speak seems to be to get the su binary in /system/xbinand install Superuser.apk. My question is why does one have to jump through ...
7
votes
3answers
12k views

How to solve: “Failed to push selection: Out of memory”

I Create an article in Stack overflow. But as I found this site, I decide to ask the same question here, because I still need your help. I have made the following steps: Launch Eclipse Go To: ...
8
votes
1answer
879 views

Use android phone with broken screen as WiFi camera

The screen of my android phone is broken and since I couldn't find a replacement screen I thought of using the phone as wifi camera. I've installed IP cam and use the android.screencast to control and ...
5
votes
1answer
1k views

How to find app based on package name?

I've installed a malicious app that is posting ads over my notification bar, but can't find it. I know the java package name for it: com.letang.game103.en using the command: adb shell dumpsys ...
3
votes
2answers
2k 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
3answers
43k views

fastboot doesn't see device

I've read a lot of articles about this problem but I can't resolve it. I decided to install my developer application on phone using wifi. To do this I need to do some things with my phone. The first ...
2
votes
1answer
124 views

is it possible to know the names of the files without root?

I'm saving my games data that I have on my Samsung Galaxy S2 using the adb program and I'm having problems finding out locations and names of files, where are they saved in?
1
vote
1answer
117 views

ADB shell: change IME method gives error “Unknown ID: null”

I bought a Chinese Android 4.2.2 smartwatch and discover it does not have a virtual keyboard. There is also no "input" option in Settings (there is "language" only). I installed a third party ...
1
vote
2answers
2k 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 ...
0
votes
1answer
2k views

adb shell su: permission denied

I was trying to unlock my android phone by adb installed. I tried to followed these steps: adb devices adb shell cd data/system su rm *.key But when I typed and enter su, it's showing permission ...
0
votes
0answers
744 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 ...
10
votes
2answers
2k views

Partial adb restore

ICS devices support creating backups using adb backup, and restoring them using adb restore. Using adb backup, one can select that everything should be backed up, or only a certain package. However, ...
10
votes
1answer
8k views

How do I know when “adb backup” is finished?

I have a non-rooted Verizon Samsung Galaxy Nexus, and I wanted to try the "adb backup" feature. Possibly in preparation for rooting, but that's not really relevant to the question. I want to back up ...
9
votes
2answers
5k views

Can I change some Android settings from the command line?

I would like to activate "USB tethering" from within a bash script, so is there any possibility to run a command line with adb shell to change some Android settings ? Edit1: The following command ...
9
votes
3answers
1k 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. ...
11
votes
3answers
9k views

Android Read recent SMS messages from command line

I have recently broken my Android's screen. (Again) Its a T-Mobile G2 Trying to keep up with my busy technology related life is hard enough without losing my link with everyone. I have rooted the ...
6
votes
1answer
2k views

Is it possible to write to a device's clipboard using ADB?

I am interested in learning how to write to (and if possible, read from) a rooted Android device's clipboard. I hope to do so using ADB over USB and I am not interested in installing any apps to help ...
3
votes
3answers
3k 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
0answers
667 views

Rooting/unlocking Android Nexus One with broken power button using Linux terminal tools

I am attempting to get Cyanogenmod onto my Nexus One, but am running into far more problems than expected. The information on rooting Android devices seems heavily fragmented across the web and the ...
2
votes
3answers
14k views

Android ADB Shell Recovery Mounting

*Question: I need assistance mounting an Android phone's internal data using the Android ADB Shell while the unit is connected via USB and in recovery mode. How do I form a proper mount command? See ...
7
votes
1answer
5k views

Manually switch from ART to Dalvik

I wanted to try out the new ART runtime, but didn't realize my custom ROM doesn't support it. So now I am getting recurring Force Closed messages after booting, and can't get through to the settings ...
6
votes
2answers
23k views

How do I configure ADB for the Samsung Galaxy Y?

How do I configure ADB to recognize my Samsung Galaxy Y? I have installed the USB driver. but when I run adb devices it does not list anything. Following are the steps I followed. Declare your ...
5
votes
3answers
4k views

Restoring an ADB backup onto a different phone of the same model?

We have several Android 4.0 phones of the same model, from the same manufacturer, purchased at the same time, from the same factory batch. We have created a backup of one of the phones using ADB. Can ...
5
votes
1answer
2k 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
2answers
1k 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 ...
3
votes
1answer
2k 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 ...
1
vote
1answer
138 views

I can reverse tether now by using alias but it stops on adb shell command

I made some aliases to quickly reverse tether. alias t='r && sh && n' alias n='netcfg rndis0 dhcp' alias sh='ad shell' alias r='ad kill-server && ad start-server' alias ...
7
votes
1answer
7k views

Is there any way to check the backup that android does?

Today I have been researching a bit about the Android backup options (Since I have seen some people having to lose all their data due to ICS serious bugs). From now, I prefer to use native options, ...
6
votes
3answers
3k 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 ...
5
votes
3answers
4k views

No-name i.onik android tablet not recognized by adb — adb devices empty

I have followed various instructions and finally was able to connect my ZTE Blade to my Ubuntu laptop for USB debugging. The same setup does not work when I exchange the phone by my "no-name" i.onik ...
5
votes
2answers
8k views

adb “Permission denied” to run a “./configure” file

I need to run a configure file into my android phone so I think the best way to do this is to use the adb shell command. I'm running an Android emulator onto a Windows-7 platform, and there I'm ...