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
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
2k 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
2k 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
2k 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
7k 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 ...
7
votes
2answers
3k 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 ...
2
votes
2answers
1k 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
23k 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)? ...
10
votes
1answer
7k 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 ...
3
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
2k 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
11k 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
272 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 ...
22
votes
2answers
15k 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
214 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
2k 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
152 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
4k 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
6k 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 ...
3
votes
1answer
1k views

How can I use su again after OTA-upgrading my rooted phone?

I had previously rooted my droid when it was running 2.2 froyo. Using the OTA upgrade, i got a gingerbread (2.3.4) for my phone. As obvious, the root privileges were gone..but the superuser app and ...
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 ...
0
votes
1answer
258 views

Failed to find init.goldfish.rc

adb shows that I have init.goldfish.rc present in the emulator device. I guess this file must exist somewhere in PC. However I could not find the file in the PC. Why it is so?
1
vote
1answer
2k views

Stop Media Playback through adb

I'm testing some settings on a phone, and unfortunately the only control I have is through adb right now. My issue is that while I can start playback of a music file through the following command, I ...
3
votes
2answers
8k views

Documentation for adb shell getevent / sendevent

Is there any documentation on the format of the getevent and sendevent shell commands? specifically the ones for touchevents. or is this device-dependent? it is a bit hard to guess what those ids are ...
2
votes
2answers
521 views

Up and down arrows in adb shell

I have an HTC Desire HD. When I connect to it with adb shell from Windows, the up and down arrow keys work fine and I get command history. But when I connect to it from Mac OS, the up and down arrows ...
1
vote
1answer
725 views

4 Android Devices on a USB Hub [closed]

I need to be able to see 4 devices using adb with a hub. When all 4 are connected with usb debugging enabled only 1 of 4 shows up, and even if that devices is unplugged and a different device uses ...
3
votes
1answer
11k views

adb push and mount problems

I'm using Android 2.3.3 and I want to copy the iwconfig file to /system/xbin. First I tried doing it with adb push using this: adb push iwconfig /system/xbin But in return I had: failed to copy ...
4
votes
2answers
2k views

How to connect ADB over 3G/4G? Or how can an ADB listener over network vulnerability be leveraged over GSM?

I keep seeing warning signs about enabling ADB over Network when you aren't connected to a WiFi network, but what if I want to connect ADB over 3G/4G ? Whenever I try to do it with any of the ...
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 ...
3
votes
3answers
931 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 ...
4
votes
0answers
406 views

Locked out of Android Vortex MID *permission denied with ADB

Here's the back story: I bought an used Android tablet. The guy said the power connector was broken so the tablet wont be charged. I took it apart and figured out the battery was dead. I have an ...
3
votes
1answer
485 views

Sony XPeria Arc: How force DNS resolution with a specific host?

I've made my website and it can be accessed only through specific domain name. http://my.specific.domain.name. And of course, you have to change your /etc/hosts configuration and add ...
3
votes
1answer
16k 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 ...
6
votes
3answers
2k 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 ...
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, ...
-1
votes
1answer
128 views

Rooting Motorolla X2 adb shell problem

i tried this tutorial and in step 1 i followed method 2. I try step 3, and when i try adb shell it works fine. but the line after, sh /sdcard/motoroot-step1.sh, I get sh: Can't open ...
3
votes
3answers
8k views

How do I access .img files with yaffs2?

I've tried mounting them in Ubuntu, no luck, mount does not recognize the yaffs2 file system. I've tried yaffs2utils and ./unyaffs2 but it doesn't actually unpack the img files, I've posted an issue ...
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?
6
votes
2answers
22k 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 ...
3
votes
0answers
448 views

Error: “reloc_library cannot locate 'fdatasync'”

I have my phone connected to my laptop via the USB cable and ADB is able to identify the device. When I run adb devices it returns the phone in the list of connected devices. Running the command adb ...
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 ...
1
vote
3answers
3k views

adb devices doesn't list Samsung Galaxy S Cyanogenmod 7.1

I am unable to list my device under adb devices and my problem is similar to that of Mad Scientist except that in his case Windows took the Google Drivers from the android SDK. Ever since I have ...
0
votes
0answers
148 views

Is is possible to make a non-rooted Huawei U8110 (T-Mobile Pulse Mini) recognisable by the `adb devices` command on OS X?

Currently, on OS X 10.6.8 Snow Leopard, this is all I get, even with USB debugging enabled on the phone: $ ./adb devices List of devices attached $ The phone shows up under About This Mac, and ...
21
votes
2answers
15k 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 ...
1
vote
0answers
159 views

How can you enable “Use secure credentials” from the shell

On the ICS ROM I'm using, the option to enable the secure credentials is missing from the menu, but the sub system seems to be there since Keystore Locker can communicate with it. So does anybody ...
3
votes
1answer
2k views

Does ADB push and pull work on non-rooted phones?

I just discovered about the command adb push and adb pull which supposedly lets people push and pull data from within the internal memory. Now my question is, can this be used on non-rooted phones? ...