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

12
votes
2answers
2k 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
288 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
339 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
6k 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
426 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. ...
5
votes
1answer
2k views

How do I change Android screen orientation via simulating acceleration?

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
465 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
650 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
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
3k 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 ...
8
votes
2answers
4k 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
26k 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
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 ...
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
13k 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
287 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 ...
23
votes
3answers
18k 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
237 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
158 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
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 ...
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
272 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
9k 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
577 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
783 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
12k 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
970 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
428 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
505 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
17k 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
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 ...
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
130 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
9k 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 ...