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

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 ...
1
vote
2answers
6k views

Can adb be used to recover SMS messages while in permanent “Safe Mode”?

I have a non-rooted Droid X2 that is in permanent "Safe mode", but I want to recover SMS messages. SMS Backup and Restore will NOT work because safe mode only allows system apps to run. adb shell ...
1
vote
0answers
679 views

Can't connect android emulator to look at local sites and services [closed]

I'm trying to use an Android emulator to use services running on my local machine. I have a site running under IIS which in my host file looks like this: 127.0.0.1 www.local.company.co.uk I ...
1
vote
0answers
345 views

Package cannot be (re-)installed or uninstalled

Was trying to install SDMove.apk (sideload) from my ICS tablet. adb reported: Failure [INSTALL_FAILED_ALREADY_EXISTS] However when I issue uninstall command, it reports Failure as well. When I try ...
2
votes
2answers
1k 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 ...
0
votes
3answers
482 views

portable Wi-Fi hotspot configuraiton

How it is possible to enable portable Wi-Fi hotspot from ADB shell or by editing some configuration files on Android Jelly Bean? I need to do it interactive for automatic test server
0
votes
1answer
1k views

Android ADB unable connect with IP address

I have successfully installed Android OS in Oracle virtual box, but I have one problem: I cannot connect to ADB in the Android OS virtual box. In my Network settings in virtual box: When I select ...
1
vote
0answers
3k views

Rooting failed htc one x : adb server is out of date

Tried to root my mobile HTC One X AT&T Build number 1.73.502.1 710RD ATT US edition referring the following link. Root HTC One X Restarted twice but the phone was not rooted. adb server is ...
2
votes
2answers
1k 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 ...
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: ...
2
votes
2answers
3k views

ADB 'su: permission denied' in recovery mode on rooted device

ADB 'su' command returns 'su: permission denied' on a fully rooted device in recovery mode. I can modify folders and files that require root access on phone (when it's booted). ADB also works when ...
1
vote
1answer
145 views

TMobile G2X as dev phone

I'm trying to use my T Mobile locked LG G2X as a dev phone while I wait for my GNex4. I can't get the phone to be found by ADB. I installed the p999 driver from LG's website. This didn't help ...
4
votes
1answer
2k views

Is it possible to set device's Latitude and Longitude using ADB SHELL?

I know how to set locatlon for emulators using device configuration interface from Motodoev Studio for example. But, how I can set locatlon for a device?
5
votes
2answers
9k 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 ...
2
votes
0answers
174 views

How to have adb recognizing my Nikon s800c on windows 7?

Has anyone got ADB to work correctly for the Nikon S800C? I've followed the instructions mentioned here, but to no avail. I am using Windows 7, and can see a yellow alert mark in the device ...
6
votes
1answer
537 views

why “ls -al” does not show file size info in /dev/socket directory?

In /dev/socket directory, if runs "ls -al" in adb, there is no file size information. I would like to know why there is no such information, in the condition that in other directories can show file ...
4
votes
2answers
14k 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 ...
3
votes
1answer
2k 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 ...
12
votes
2answers
3k views

What's the difference between 'adb push' and 'adb install'?

Will adb push only copy the file into the target location whereas adb install copies the file into the target location and also sets the proper permission for you?
0
votes
1answer
306 views

Why LG GT540 after boot it disconnects with ADB

Why when my phone LG GT540 is running and seen by ADB after bootup it disconnects (not from PC just from ADB, as PC still can see it it Device Manager) after few seconds after bootup sequence? The ...
3
votes
1answer
1k 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 ...
2
votes
0answers
403 views

Disable Slide to Lock

I have a Cruz T301 which is rooted. The screen calibration is a bit off and I cannot access the home screen. (It is next to impossible to use the slide to unlock.) Basically, it will slide to the ...
1
vote
2answers
8k 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
463 views

Can the on-board ADB Server find the device itself?

I know that Android devices have an on-board adb server. I am able to start the server through the terminal emulator and run adb commands, but the device itself does not show up in the device list. ...
4
votes
1answer
3k 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 ...
0
votes
1answer
528 views

No Devices on shell

I try to send an intent using an android-shell. The app starts, "su" works nice, but when I enter something like "adb shell am broadcast -a android.intent.action.SCREEN_ON" I receive an error: ...
3
votes
0answers
695 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 ...
1
vote
1answer
1k views

Linux ADB Driver for LG Viper (LG-LS840)

On most devices I've run across I can plug the device into a Linux machine and no additional drivers are needed in order for ADB to communicate with the device. However on two LG devices from last ...
0
votes
1answer
3k views

How to create a soft link between root partition and ext3 partition(on SD)

I am trying to create symbolic links of /data/sdext2/app/* on /data/app. This is what I did in adb shell ln -sf /data/sdext2/app/* /data/app/ But it is telling "link failed No such file or directory". ...
3
votes
2answers
4k views

Prestigio Multipad USB debuging

I am having troubles with Prestigio Multipad PMP3370B. I enabled USB debuging in Settings, but when I plug in my device to a computer and start adb devices, it does not recognize it. Does anybody have ...
1
vote
1answer
3k views

Unable to copy files to /sdcard

Due to a configuration error I made combined with an OTA update (Android 4.1.2), I had to re-unlock my bootloader to regain root on my GSM Galaxy Nexus. This process wipes the entire phone, including ...
3
votes
2answers
2k 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
3answers
8k views

Trigger “mount as disk drive” (aka “USB Mass Storage” mode) from PC

I've got an HTC Incredible that I sync to my Linux box. I'd like the Linux box to automatically detect that the phone is attached (I can do that via adb wait-for-device), and then automatically put ...
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 ...
3
votes
2answers
2k 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 ...
4
votes
1answer
29k views

How can I mount or unmount the SD Card using ADB?

The sdcard can be umounted by using the umount command. unmount /mtn/sdcard/.android_secure how can it be remounted again . I tried using the mount command mount /mnt/sdcard/.android_secure
1
vote
1answer
2k 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)? ...
11
votes
1answer
9k 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 ...
4
votes
3answers
5k views

Can't access my old files after switching ROM from AOKP to CM, even though they're still there

Initially I thought this was a problem with Google Play / Apollo, but I realize now that when I plug in my phone via USB, I can't see any of the many, many folders and files present on /sdcard that I ...
1
vote
1answer
3k 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 ?
3
votes
1answer
2k views

How to enable adbd to listen to a port at boot time in Android?

I have a rooted HTC Hero, and what I want to do is to enable the adbd to listen to a port at boot time. I tried some code found here: setprop service.adb.tcp.port 5555 stop adbd start adbd in an ...
5
votes
2answers
14k views

Obtaining root by modifying default.prop(ro.secure)?

To get a privileged shell you need to modify the following lines to the given values in the default.prop file ro.secure=0 ro.debuggable=1 persist.service.adb.enable=1 I have the extracted the ...
3
votes
0answers
317 views

ADB Shell command that can test MLS / SPC codes? [closed]

I am a Republic Wireless subscriber with the Motorola Defy XT. The Defy is a decent phone, but unfortunately very little space has been dedicated to internal application storage (300MB) and often we ...
25
votes
4answers
23k 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 ...
1
vote
1answer
257 views

If I 'adb push' a file to /system/xbin, will it persistent?

If I 'adb push' a file to /system/xbin, will it persistent? will it stay until I flash another image? $ adb push myfile /system/xbin/myfile Thank you.
3
votes
2answers
3k 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 ...
2
votes
2answers
3k views

type “adb shell su” in terminal (cmd in win or console in Linux ) let the terminal hang [closed]

I just want to input more shell commands after typing adb shell su, but the terminal just return an "#". It appears to be unresponsive to further commands. How can I solve this problem? Recompile ...
1
vote
0answers
169 views

How to connect SPICE MI 310 to eclipse Android Device Manager?

I want to use my SPICE Mi 310 (with Android 2.3.3) to test my Android applications. But I am not able to see the device in Android Device Manager in Eclipse. I have been trying to find a suitable ...
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 ...
1
vote
3answers
7k views

Trying to install ADB USB Drivers, but Nexus is never appearing in Device Manager

I'm trying to install the google-adb-drivers.zip file (obtained here) on a Windows 7 64-bit system. The phone is the Nexus S 9020T. USB connectivity works correctly for file transfer mode. When I ...