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

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
0answers
123 views

Will adb restore increment the custom binary flash counter?

With adb backup an archive of all apps and their data can be retrieved from the phone. I could not find any clear information which exact files and partitions are accessed during the process. If it ...
1
vote
1answer
1k views

change file permission in BlueStacks player qwerty.kl

I want to edit BlueStacks '/system/usr/keylayout/qwerty.kl' to add few more key map to this file, but I cant able to edit this file due to permission issue. Any suggestions on how can I change file ...
1
vote
3answers
936 views

Can I update the adb shell's environment variables?

I wanted to update the PATH environment variable permanently in the adb shell. I guessed the shell was mksh for I've found /system/bin/sh pointing to /system/bin/mksh. Then I tried Making a new file ...
10
votes
3answers
4k views

Can't use ADB with Nexus 4 after 4.3 update

Here's a funky issue. I've been using ADB without any problems on 4.2.1 and 4.2.2 on my Nexus 4 (Stock Android and some CM10-based ROMs). When I flashed a CM10.2-based rom (JellyBro, I believe?) a few ...
0
votes
2answers
264 views

Can I disable USB Debugging on Android smartpones from Windows via adb.exe?

I have to install Applications on dozens of android smartphones and I am currently writing a program to automate this process. I know I can't remotely enable USB Debugging, so my question is: Can I ...
0
votes
1answer
3k views

Permission denied for adb push file to /data/data/xxx/file/

I used "adb pull" to backup Final Fantasy III saved data and it worked well, but it doesn't allow me to push it back after the factory reset. D:\AndroidSDK\sdk\platform-tools>adb push d:\save.bin ...
0
votes
2answers
448 views

adb start-server and listen on all interfaces

ADB in Android 4.3 SDK implemented -a option. What I want is: adb -a start-server so the background process is bound to all interfaces, but it does not work. I need to start it like this on ...
1
vote
0answers
594 views

problems detecting Asus nexus 7 on Windows 7 Home Professional (driver installation problem)

I am having problems getting my Asus Nexus 7 detected on a laptop with Windows 7 Home Professional When I connect the device to the computer, it says USB debugging mode enabled, but the computer does ...
0
votes
1answer
191 views

adb shell ls giving strange results

Environment: running adb in command window on Windows XP PC running adbKonnect on Nook Simple Touch (rooted; running Android 2.1) When I type adb shell ls \sys I get a list of the folders there. ...
1
vote
2answers
3k views

The command 'adb root' works, but 'adb remount' results in “Operation not permitted” message

I'm trying to remount /system to copy some files to it. I tried the following with adb: adb root adb remount The first command works fine (because my phone is rooted), but the second tells me that ...
0
votes
0answers
758 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 ...
1
vote
1answer
274 views

Is it possible to run any sort of hardware diagnostics through ADB

I have a Samsung Galaxy S4 that I had for a little over months before getting caught outside in a serious rainstorm. As I was pulling the battery out of the phone, I noticed the screen flicker. I ...
2
votes
1answer
1k views

adb input keyevent 26 - Not waking device up

I am trying to wake a device up using the following adb command adb input keyevent 26 This correctly emulates the power button keypress if the screen is on, but will not turn the screen on if it was ...
1
vote
1answer
2k views

ADB/fastboot over Serial/COM ports?

Long story short, my phone messed up and it's stuck in a bootloop. The phone in question is a Coolpad 7560U, also known as Orange Nivo, running Android 4.1.2 Jelly Bean. Data and cache wiping do not ...
1
vote
1answer
2k views

Unlock Screen with ADB Android 4.1.2

I have a Sprint Galaxy S3 (v4.1.2?) that I've rooted with CWM. Last week the glass and display cracked, so now I can't access it directly. I'm able to access it with adb so would like to use ...
0
votes
1answer
326 views

Connecting android tablet as testing device

I have a problem related to connectivity between my desktop (Windows) and tablet (Android 4.1). I bought a new device (Colorovo City Tab Vision 7) and now I want to use it for testing of my ...
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. ...
0
votes
2answers
185 views

path for echo binary location

I am unable to find the "echo" binary in the /bin path (supposedly the path for storage of essential binaries) on Galaxy S2 on which I am working on. And yes, the "echo" command is perfectly working ...
0
votes
1answer
2k views

Using ADB to change the screen lock

I am looking for a way to change the screen lock type from slide to password, and set the password via adb command line. I have a device with the setup I want, and one that has slide lock. I'm pretty ...
2
votes
2answers
462 views

Uninstall from emulator doesn't work

I'm doing my first steps with Android. I'm using a Mac, and no Eclipse. I've installed my first toy application with adb install bin/*.apk and verified that it existed in the emulator. Then I made ...
1
vote
1answer
254 views

How do I get the common name of an app having the package name (like com.android.blabla)? (command line or included app)

I’m interested in a way to go from the package name (e.g. com.android.providers.telephony) to it’s common name (Phone/Messaging Storage). The answer should only assume shell access (adb) on the phone ...
4
votes
1answer
774 views

How can I see the fingerprint of my adbkey?

You should know that Android 4.2.2 (or just before) introduced RSA key checking for adb access. – The device asks now if you want to allow access. To avoid asking every time, the computer presents an ...
1
vote
1answer
3k views

Running TRIM from shell

Is it possible to run fstrim in stock android 4.3 from adb shell? I understand it runs every 24 hours when the device is plugged in and idle but I would like to run on demand to test a few theories.
1
vote
1answer
279 views

How can I do ADB backup without PC?

I can backup with PC by "adb backup"command. But can I create backup file without using a PC somehow? Android device standalone.
1
vote
1answer
912 views

How to restore adb backup on Nexus 4 (boot loop)?

Recently I have flashed unofficial cyanogenmod 10.2 for my Nexus 4. After testing some features I the device came into a "bootloop" (stays on cyanogenmod logo launcher). I tried to reflash it with cm ...
0
votes
1answer
1k views

Unable to run su in adb shell on an Ubuntu machine

Device: Unbranded Android tablet Android: 2.2 I was trying to root my tablet using my Ubuntu 11.10 machine. I followed the following instructions from a site: 1. adb Install Superuser.apk 2. adb ...
0
votes
0answers
86 views

Can ADB Handle Multiple Connections?

I am trying to script ADB and I was wandering if it can handle multiple installs at the same time in different threads. Does anyone know if this is possible?
0
votes
1answer
9k views

How to recover Galaxy S4 from unrequested ADB recovery mode state?

Last night, my wife turned the sound down on her factory default Verizon Galaxy S4 by Samsung, then later plugged it in at home and it showed a dark screen with the battery charging indicator. This ...
1
vote
0answers
4k views

Changing install location to 2 with `adb shell pm set-install-location 2' results in 'insufficient memory' errors when installing apps

I am using Galaxy Grand GT-19082. I used latest android sdk and unpartitioned new 32 GB SDHC Card. I used adb shell pm set-install-location 2 and it shows that It selected 'External 2'. After ...
0
votes
1answer
134 views

How did can I find important partions of any android devices?

Please Help Me !!! How did can I find important partions of any android device . Using adb or fastboot . Such as, boot, recovery, etc... I mean to backup any androdi device rom . I have tried with ...
1
vote
0answers
93 views

Exotic case of Galaxy Nexus not booting

Symptoms : Put battery into Galaxy Nexus (tried with two different including a brand new one) Plug cord to USB host or charger Large battery charge indicator icon appears in the middle of the screen ...
1
vote
1answer
5k views

ADB connect to a device via TCP/IP

I'm trying to use adb connect: connect <host>[:<port>] - connect to a device via TCP/IP Port 5555 is used by default if no port number is ...
0
votes
1answer
1k views

How do I configure ADB for the Huawei U8650 on Windows?

I have an Huawei U8650 smartphone. And, as I understand, I need system device drivers for it to be able to develop and debug applications for it using Windows. On Linux this is as simple as just ...
1
vote
1answer
346 views

Can adb backup/restore be used to root a device?

I have read a bit about the adb backup format, and it seems quite straight forward. Is it possible to use adb backup restore with a specially crafted backup to root a device? If not, why not? The ...
9
votes
1answer
4k views

Toggling USB mass storage on (or off) via adb commands

Background: I have a USB stick Android device (e.g. RikoMagic) which I mostly run in "headless" mode. Among other things, I've already figured out how to shut it down via a combination of adb and the ...
7
votes
1answer
4k views

What's the difference between a NANDroid backup and an ADB backup?

Could anyone explain the difference between a backup made using NANDroid and a backup made using ADB i.e. using the adb backup command? I've read that both are capable of creating full system ...
2
votes
1answer
453 views

adb connection problem on Kubuntu 13.04 x64

I'm facing a problem with ABD connection under Kubuntu 13.04 x64. Every time I try to push/pull/shell ls the adb disconnects from device. I tried the following solutions: Added device ID into ...
0
votes
1answer
913 views

Using adb backup to recover files in Android

I encountered a situation similar to the question: How can I recover a deleted file on Android? I have a Sensation XE which is not rooted. From the previously linked question, is there away that I ...
0
votes
1answer
395 views

What can I do to save my Samsung Galaxy from a bootloop?

I have a relatively old phone that I would like to make some use of again. It's the GT-I9000, and it's currently stuck in a bootloop. I'd like to install CyanogenMod on it. I've already flashed it ...
0
votes
1answer
1k views

My phone's screen died but it still works. How can I get the text messages from it? [duplicate]

People are still sending me texts even though I can't read them. I've gotta get a replacement quick, but I also need to get the important texts I missed. Is there any way I can get them through my pc? ...
6
votes
6answers
58k views

How do I get my Nexus 7 to show up in the adb devices list?

So I have a Nexus 7 that I'm trying to connect to my Windows computer for debugging over adb. Adb works fine with my phone, but when I plug in the tablet and run adb devices in Windows I get an empty ...
2
votes
1answer
3k views

How install gapps with adb commands

How can I install google apps with adb commands ? I don't know how to unzip . I used busybox. But it is not useful. Please guide me . Thanks to all and everythings. :)
0
votes
0answers
522 views

Android Dongle ADB Shell Recovery Segmentation Fault

I am trying to wipe out data from android dongle with help of ADB commands. When I typed ADB shell command then it will provide me root@android:/#. Now when I type recovery or recovery wipe_data in ...
7
votes
1answer
9k views

How I shutdown Android phone with adb command?

How do I halt an android phone using adb command? I can reboot, but I don't know how to halt. I tried shutdown -k wait command, but it did not work.
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 ...
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 ...
1
vote
1answer
1k views

Is there a USB driver for the alacatel onetouch 983?

I have purchased an alcatel one touch 983 running android 2.3.7 for development purposes. So it is critical that I can view logcat messages and connect to it from eclipse via USB. But so far I have ...
-1
votes
1answer
370 views

'adb devices' is not listing my phone

I am trying to do a full backup of my Galaxy Note 4.1.2 phone using the adb command. t says it couldn't connect to my device. Then I did a 'adb devices' and there where no listed devices. My Windows ...
0
votes
1answer
759 views

No ADB connection to Transformer Prime TF201 on 4.1.1

ADB connection to Transformer Prime TF201 on 4.1.1 With USB Debugging disabled I can see the TF as expected. With USB Debugging enabled I can see an entry under Device Manager for ASUS Transformer ...