2022 Developer Survey is open! Take survey.

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
17 votes
2 answers
30k views

adb backup command on non-rooted device creates an empty backup file?

I recently tried to backup my Motorola Moto G2 XT1068 phone running Lollipop 5.0.1 and after connecting it over USB with usb-debugging ON and I ran the adb backup command to backup my device ...
user avatar
  • 3,235
16 votes
6 answers
87k views

Can't remount /system in rw

I'm trying desperately to push an app with adb on the /system/app folder (to install the PlayStore on my low cost tablet). So I tried to remount the /system partition with root rights: mount -o ...
user avatar
  • 161
16 votes
1 answer
37k 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/...
user avatar
  • 88.9k
16 votes
6 answers
114k 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 ...
user avatar
  • 527
16 votes
3 answers
98k 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 ...
user avatar
  • 163
15 votes
2 answers
10k 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?
user avatar
15 votes
3 answers
17k 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 ...
user avatar
  • 343
15 votes
2 answers
64k 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 ...
user avatar
  • 273
15 votes
2 answers
3k views

Why does "adb reboot" shut down my phone so much faster than usual before it reboots? Is it skipping important steps?

I own a Samsung Galaxy S Relay 4G running Android 4.1.2. Also, I have adb installed on a PC. When I long-press the Power button then tap "Restart", my phone takes about ten seconds to shut down. Then ...
user avatar
14 votes
6 answers
38k views

How to reinstall an accidentally uninstalled app through ADB?

Yesterday when removing bloatware from my phone, I accidentally uninstalled an app using the adb command: pm uninstall -k --user 0 I suspect the culprit to be com.sec.factory.camera, as since that ...
user avatar
  • 143
14 votes
2 answers
113k 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. :)
user avatar
14 votes
3 answers
17k views

Command to install app from phone?

I'd like to SSH into my phone, download an APK, and install it remotely. Is there a command available on the phone that would allow me to do this? EG: wget localhost/file.apk android_install file....
user avatar
  • 2,492
14 votes
4 answers
107k views

I can't see my device in Android adb list

I have LG G3 with android 5.0 lollipop and I want to connect it to my laptop with windows 8.1 OS (For using unity remote). When I connect my phone I can access to storage but I can't see my device in ...
user avatar
  • 261
13 votes
6 answers
103k 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 ...
user avatar
13 votes
1 answer
23k 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/...
user avatar
  • 988
13 votes
5 answers
149k 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 ...
user avatar
  • 1,415
13 votes
1 answer
9k views

Does adb backup/restore still work because it says it's deprecated?

I want to reset my phone but want to recover the system data before doing so. I tried to create a backup with adb and tried to restore it on a virtual device to see if it works. So I tried to restore ...
user avatar
  • 133
13 votes
2 answers
252k views

Factory reset Android using ADB

I am trying to factory data reset my Oppo Neo 7 (Android 5.1) using ADB shell. Any way I can try and link to ADB shell?
user avatar
13 votes
4 answers
10k 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 ...
user avatar
  • 1,605
13 votes
4 answers
30k views

Can I use ADB without connecting over USB?

Is there a way to use adb directly via bluetooth instead of always via usb? -- Thanks for the adb wireless solutions below, but I am looking for something that works well on hotel or public wifi. ...
user avatar
  • 279
13 votes
3 answers
45k views

How to remove the SIM Toolkit from my phone? (Without root or flashing any ROM) [duplicate]

This application is sending a lot of spam to my phone recently, two or three times a day. I deactivated broadcast messages, tried converting USSD pop-ups into notifications to avoid being interrupted (...
user avatar
13 votes
5 answers
37k views

Where to find "adb" version 1.0.32 to install on Ubuntu?

My laptop has Ubuntu 14.04 as OS. I installed latest version of "android-adb-tools" available in "Synaptic Package Manager". After installation, adb command --help says that adb's version is 1.0.31. ...
user avatar
13 votes
3 answers
8k 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: ...
user avatar
  • 231
13 votes
3 answers
18k views

Setting Default applications through ADB

I have an android device (Android 4.4) with two launchers. One comes with the device and the other one is home made. I have the following questions regarding this scenario: How can I set the default ...
user avatar
  • 293
12 votes
5 answers
79k 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 ...
user avatar
  • 263
12 votes
2 answers
11k views

How to find app based on package name?

I've installed a malicious app that is posting ads over my notification bar, but can't find it. I know the java package name for it: com.letang.game103.en using the command: adb shell dumpsys ...
user avatar
  • 223
12 votes
5 answers
24k 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?
user avatar
  • 123
12 votes
3 answers
41k 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, ...
user avatar
  • 285
12 votes
4 answers
8k views

Linux program to transfer file from/to an android device? [closed]

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 ...
user avatar
12 votes
5 answers
29k 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 ...
user avatar
11 votes
5 answers
10k 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, ...
user avatar
  • 1,228
11 votes
1 answer
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 ...
user avatar
11 votes
2 answers
11k 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 ...
user avatar
  • 719
11 votes
1 answer
26k 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 ...
user avatar
  • 381
11 votes
3 answers
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: ...
user avatar
11 votes
3 answers
5k 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 ...
user avatar
11 votes
3 answers
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. ...
user avatar
  • 393
11 votes
3 answers
6k 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 ...
user avatar
  • 3,625
10 votes
4 answers
36k 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 ...
user avatar
  • 101
10 votes
2 answers
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 ...
user avatar
  • 454
10 votes
2 answers
44k 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 ...
user avatar
10 votes
2 answers
12k 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())?
user avatar
  • 303
10 votes
6 answers
45k views

Need one-line adb shell su push & pull to access /data from Windows batch file

I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on rooted kindle fire hd 7", 2013 (kfsowi). Just learned I botched the adb commands because I was running "...
user avatar
  • 201
10 votes
3 answers
15k views

How to use adb over Mobile AP (Portable wifi hotspot)

First : I know about abdWireless app. But my problem is different. I am using my Android mobile as Mobile AP (Portable WiFi hotspot) for using internet on my computer. I want to use adb in wireless ...
user avatar
  • 1,861
10 votes
2 answers
19k views

How to install xapk, apks, or multiple-apks via adb?

xapk, apks, or multiple-apks is the new standard for apps that is basically one folder and multiple apks in it. I know there are apps like apkpure or SAI that can do it, but I want to know how to it ...
user avatar
10 votes
3 answers
13k 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 ...
user avatar
10 votes
2 answers
5k 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 ...
user avatar
10 votes
1 answer
4k 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 ...
user avatar
10 votes
2 answers
59k 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 ...
user avatar
  • 381
9 votes
3 answers
13k views

Is there a way to backup contents of internal SD, while preserving the file's modification date?

I'm having problems with my internal flash storage (namely not being able to create folders in root, which prevents some apps from working, plus periodic unmounts), and I have tried unsuccessfully to ...
user avatar
  • 233

1
2
3 4 5
43