Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [adb]

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.

Filter by
Sorted by
Tagged with
12
votes
6answers
99k 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 ...
12
votes
3answers
34k views

Is it possible to enable Location Services via Shell?

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? I'm on a rooted Phone. Extra Points: Is it also possible to change other system-related ...
12
votes
2answers
22k views

How to uninstall a system app using adb uninstall command (NOT remove via rm or any other way)

Have to mention this to avoid possible confusion, this question is not duplicate. This question is specific to using adb to uninstall a package. There are several similar questions but are all ...
12
votes
5answers
76k views

Moving installation location on non rooted Android 5 Lollipop device

I have a Moto G (2nd generation) with Android 5.02 on it. Internal SD card is about 8Gb and I have an external SD card with 16Gb free space. Moving application to SDCARD from the application's menu ...
12
votes
4answers
137k views

What do I type in PATH variable for ADB server to start from CMD?

I am following a Wiki on how to install and set up Android SDK and I am stuck at a step where I am supposed to test if the ADB server works by using the command adb start-server. Is this command ...
12
votes
1answer
9k views

Recursive adb pull

How to copy a whole directory (and all of its content recursively) over USB with adb pull? For instance to backup the SD card. Attempt: $ adb pull /sdcard backup failed to copy '/sdcard' to 'backup':...
12
votes
3answers
102k views

Why can't I get root access from shell?

> adb shell sh-4.1$ su Permission denied I have rooted my phone successfully. I know this because I'm able to install apps on SD card and I have a program called SD Maid that is able to operate ...
12
votes
3answers
7k views

Linux program to transfer file from/to an android device?

Do you know if there is a linux program (possibly nautilus plugin) to transfer file from/to an android device? What is in my mind is a program which does "adb push", "adb pull", and "adb shell ls" in ...
12
votes
4answers
22k views

Accessing android device via ADB shell with broken touchscreen (can't authenticate)

So, the touchscreen on my Nexus 4 broke this weekend. I have a new device coming in, but in the meantime I need to be able to access the device to use a few different apps and send/receive some SMS ...
11
votes
5answers
9k views

How to prevent adb shell from exiting upon Ctrl+C

When I adb shell into my device (from Windows desktop), and run some command there, sometimes I want to terminate that command. The standard unixy way to do it is with Ctrl+C key combination. However, ...
11
votes
1answer
20k views

Failed on cp file to /system - Cross-device link

I'm trying to mv .apk file from my /sdcard to /system and getting following error: failed on 'XXX.apk' - Cross-device link I did remount my /system as rw root@ghost:/ # mount -o rw,remount /dev/...
11
votes
2answers
81k 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. :)
11
votes
3answers
8k views

Where to find description of all “/system/bin/service” calls?

In one answer I was adviced to use service call phone 2 s16 "$number". It works, but in service list I see other useful things I don't know how to use and can't easily find the information on the ...
11
votes
3answers
18k 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: ...
11
votes
6answers
76k views

How can I find out which bands my phone supports

Background: I recently bought the Padfone X, and have been attempting to get it on my network. Part of this effort has been verifying information I have found online which claims that it supports LTE ...
11
votes
3answers
3k 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
66k views

How do I take a full image backup of an Android device? [duplicate]

I am trying to do a full system image backup of a Samsung Galaxy Tab 4. It is unrooted at present, and is running Android Kitkat 4.4.2 . I have no desire of rooting it as of now. I have tried ...
11
votes
3answers
5k 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 ...
10
votes
2answers
3k views

What is this `adb` utility I keep getting advice to use?

In a bunch of questions on this site I see answers telling us to execute adb shell or adb logcat and so on. Now, I'm not an entirely clueless user, so I downloaded and installed Termux and have a ...
10
votes
2answers
65k views

Clear Caches from ADB?

How do I clear caches (app, individual apps, Dalvik, ART if possible) via ADB? Using apps, recovery, or doing it through Settings are not options for me. Also, my phone is not rooted.
10
votes
3answers
5k 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 ...
10
votes
1answer
9k 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 ...
10
votes
2answers
8k views

How to connect ADB over 3G/4G?

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 ...
10
votes
3answers
26k views

adb command to search the filesystem

Is there an adb command similar to "locate" or "grep" that would help me find a file on my Android device? I'm curious about adb specifically, not a search app. EDIT: "find" has been suggested, ...
9
votes
3answers
17k views

How to set WIFI proxy via adb shell?

Genymotion 2.2 & Android 4.0 I want to set a global HTTP proxy in Android, and all Apps will go through this proxy. Now I can only do this in GUI as following way: Wi-Fi -> WiredSSID -> Modify ...
9
votes
9answers
42k views

Why doesn't Huawei provide just the USB driver to use ADB?

I'd like to use the MyPhoneExplorer application to sync my Android smartphone with Windows over USB. This requires first installing a driver for the phone and the ADB application. However, the ...
9
votes
2answers
10k views

How can I determine storage directory from ADB?

Is there a way I can use ADB to determine the external storage directory (equivalent of the Android API call Environment.getExternalStorageDirectory())?
9
votes
2answers
35k 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 ...
9
votes
3answers
79k views

How do I get permission to create this file in an android shell?

I'm trying to root a Kindle and I'm stuck. Getting permission denied and don't know how or what permissions to change. mike@Inspiron:~/Downloads/android-sdk-linux/platform-tools$ adb shell shell@...
9
votes
3answers
11k views

How to pull only newer files with “adb pull”? (Android SDK utility)

With the command "adb pull /sdcard/" I can copy all the contents of the internal memory of my Android phone into my current local directory (and "adb pull /mnt/extSdCard/" does the same with the ...
9
votes
5answers
15k views

Activate Device Administrator via ADB

Is it possible to activate Device Administrator via ADB command instead of tapping "Setting -> Security -> Device Administrators --> Select App --> Activate" on handheld? If it's possible, how?
9
votes
1answer
19k views

A way to get location coordinates from command line

I'm looking for a command line, or a series of commands that can dump or list the latitude and longitude on a rooted device. I connect to a device using ADB shell. A way that will cause the ...
9
votes
1answer
28k views

Backup/Restore SMS/MMS via ADB on a non-rooted device?

Is there any way to backup/restore SMS and MMS messages using ADB, when the device is not rooted? adb pull won't work here, as the corresponding database (/data/data/com.android.providers.telephony/...
9
votes
1answer
28k views

How do I install missing command line tools onto an Android device?

Android installations do not always have all the tools one would expect to have on a Unix-like system. For example, right now I have a problematic device which doesn't have find CLI utility. I mean, ...
9
votes
5answers
15k 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 ...
9
votes
1answer
3k views

How can I access multiple user spaces from adb?

I am running KitKat on a tablet with two users: primary (owner) and secondary. I need to access a file generated by an app of the secondary user. When I plug the tablet into my (Ubuntu) desktop via ...
9
votes
3answers
4k views

Extract TWRP backups made with adb

I have a Samsung Galaxy S2 GT-I9100 smartphone with LineageOS and TWRP. Every week I make a backup with the following command: adb backup -f twrp-20170322.ab --twrp boot data system I may optionally ...
9
votes
1answer
3k views

Creating a backup with adb results in 41 byte file

I have an old droid RAZR Maxx (4.1.2) that I decided I want to root, but I want to make a backup first just in case. I've followed instructions from this site: How To Create a Full Android Phone or ...
9
votes
0answers
423 views

How to stop apps from doubling overscan?

For some reason a chunk of the digitizer broke on the bottom of my phone. I tried to use adb shell wm overscan 0,54,0,324 to resize my screen smaller until I can get a new phone, but it's giving bad ...
9
votes
2answers
52k views

ADB not working, but Fastboot is

I recently bought a used Nexus 5. It came with the L preview on it, and I decided to flash CM 11 instead. My last phone was a Nexus S, and I've flashed various ROMs to that thing in the past. Using ...
8
votes
3answers
34k views

Windows doesn't recognize Nexus 7 in recovery mode

So I have the Nexus 7 (2012). When the tablet is on and USB debugging is enabled, ADB recognizes it. But when I shut it off and put it into recovery mode, then press power and volume up to sideload, ...
8
votes
4answers
14k 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 ....
8
votes
1answer
8k 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 ...
8
votes
4answers
14k 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 ...
8
votes
2answers
7k views

Applications are not installed with adb restore

I have non-rooted Android 7.0 device (NVIDIA Shield Tablet) which was previously backed up with adb backup -apk -shared -all -nosystem -f mybackup.ab But restoring it with adb restore mybackup.ab ...
8
votes
2answers
29k views

How can I enable adbd during boot on Cyanogenmod?

I am stuck during the boot process, at first before entering the passphrase for /data and now at the SIM PIN screen. At this point, adb is inaccessible (normally adbd would start up after unlocking /...
8
votes
1answer
73k 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
8
votes
1answer
21k views

How to backup data on a non-booting, unrooted phone?

I have a Samsung Galaxy S3 (SGH-I747 for AT&T) that is not rooted. Recently it started shutting down in the middle of use and not start up again. At first, plugging it into the charger would get ...
8
votes
3answers
977 views

Multiple consecutive individual ADB backup/restore without prompt

I was looking into how to do batch backups through individual adb backup/restore commands (to have separate .ab files per package/application/data/etc.) (I'm aware of the Helium (Carbon) desktop app ...
8
votes
2answers
35k 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 ...