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
65 votes
6 answers
87k views

Is there a minimal installation of ADB?

When it comes to troubleshooting, I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data, Full Backup of non-...
user avatar
  • 89.1k
18 votes
2 answers
26k views

How to recover a deleted file from /data partition?

I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need. Is it possible to create an image (.img or something similar) of the /data ...
user avatar
  • 195
46 votes
4 answers
298k views

Broken screen while debug mode was disabled. How can I re-enable adb?

The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback. Before I go to get it ...
user avatar
142 votes
10 answers
168k 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 ...
user avatar
5 votes
1 answer
8k views

Why "adb root" does nothing?

I have a OnePlus 6T. It is rooted by TWRP and Magisk. I have set ro.debuggable to 1. But when I type adb root it does this: I cannot even use adb pull on system files.
user avatar
  • 245
6 votes
2 answers
21k views

Configuring ADB for Nexus 4 on Ubuntu 11.10

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to ...
user avatar
12 votes
2 answers
12k 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
112 votes
4 answers
495k views

Where in the file system are applications installed?

I have installed a few Android applications both with the adb install MyApplication.apk command and via a webserver (like an alternative to Android Market). But where in the Android file system on my ...
user avatar
  • 4,957
1 vote
1 answer
597 views

adb device doesn't listed on cmd {Lenovo K8 Plus}

I am trying to root my Lenovo K8 Plus after unlocking bootloader. I try to install TWRP and somehow the TWRP recovery doesn't open and the phone is struck in the bootloop. I then fastboot the device ...
user avatar
32 votes
3 answers
84k views

How do I get my device detected by ADB on Linux?

I just got my shiny new Wileyfox Swift – and before putting it to use I want to oem unlock and root it (as I usually do with new devices ;) Trouble is, though usb-debugging is enabled on the device, ...
user avatar
  • 89.1k
3 votes
1 answer
10k views

Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen

My Galaxy S7 Edge has a broken screen (totally black, and doesn't respond to touch). However, the phone does turn on and is recognized by Kies 3 and SmartSwitch. I am also able to unlock the phone via ...
user avatar
  • 31
18 votes
2 answers
28k views

Obtain package name AND common name of apps via ADB

I'm looking for a possibility to retrieve both, the package names and the common names of apps installed on an Android device via ADB – or at least to retrieve the common name if the package name is ...
user avatar
  • 89.1k
47 votes
4 answers
55k 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 com....
user avatar
22 votes
2 answers
497k views

How to enable USB Debugging in Android if forgotten pattern for screen-unlock?

I want to use some third party software to clear my device's screen unlock pattern which I forgot. They require USB debugging enabled but I don't have it enabled in my Android. How do I turn on USB ...
user avatar
64 votes
2 answers
433k views

How to mount /system rewritable or read-only? (RW/RO)

How can I mount the /system directory rewritable or read-only on my Android phone?
user avatar
  • 3,782
21 votes
2 answers
83k views

Can I enable USB debugging using adb?

I own a Samsung Galaxy S3 and the display is broken and USB debugging is set to off too. How can I enable it using ./adb commands? I have done these steps already: data/data/com.android.providers....
user avatar
50 votes
10 answers
36k views

ADB backup creates 0-byte file; prompts for current backup password even though I never set one; "Failed to set password" for Desktop backup password

The problem: Every time I run ADB backup, I get a message near the bottom of the home screen saying Backup starting..., followed by a message saying Backup finished a few seconds later despite the ...
user avatar
  • 1,363
6 votes
1 answer
48k views

How to perform a full system dump/backup with a broken screen?

So, yesterday my phone took a serious tumble. It is now essentially useless, as the screen either fails to turn on, or when it does, there is nothing useful to see (just lines of primary colors, ...
user avatar
2 votes
1 answer
7k views

How to set Wi-Fi HTTPS proxy, not HTTP, via adb shell?

For HTTP I found a link: How to set WIFI proxy via adb shell? But I want to setup HTTPS proxy via adb shell.
user avatar
  • 21
27 votes
7 answers
38k views

Activate USB tethering from the command line

I would like to activate USB tethering from within a bash script. I've found TetherSettings action name from aapt dump xmltree com.android.settings.apk AndroidManifest.xml | less +/ether The ...
user avatar
9 votes
1 answer
38k 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, ...
user avatar
106 votes
5 answers
237k views

How can I shutdown my Android phone using an 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.
user avatar
7 votes
1 answer
3k views

ADB pull stops after first error

I am trying to do a full copy of /sdcard of my unrooted OnePlus 3T to my Windows PC. So far I've tried: adb pull /sdcard/ C:\mylocalfolder\ Works OK but as soon as there is an error it stops the ...
user avatar
3 votes
1 answer
8k views

How to take full image backup of partitions or eMMC?

I have an Archos 55 Platinum here. There is also a unofficial TWRP, if this might help. I would like to make a backup of the storage of the phone, like dd for any partition, so I can inspect the ...
user avatar
75 votes
4 answers
186k views

Enable and disable system apps via ADB

Is there any adb command to enable/disable a system app? Thanks
user avatar
  • 853
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
22 votes
8 answers
123k views

Control Android with broken screen from PC

My rooted Galaxy Nexus has a broken screen. How can I use my PC (ie, via ADB) to control the phone? androidscreencast would be the ideal solution, but its keyboard/mouse control feature does not work ...
user avatar
19 votes
2 answers
52k views

How to find out currently running user name/ID from ADB

I am having Nexus 7 running multiple users. I am trying to find out which is currently running user using ADB. The best I could get so far was to check legacy directory linking which is either linked ...
user avatar
  • 191
18 votes
2 answers
67k 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 ...
user avatar
  • 752
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
8 votes
4 answers
16k 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 ...
user avatar
4 votes
1 answer
9k views

How to set up a socks5 with Android cli?

I found articles how to set up a http-proxy. But can't find any info, how to set up a socks5 proxy. My goal is to route all traffic from apps, etc throught this proxy. Is this possible? How then ...
user avatar
  • 223
3 votes
1 answer
8k views

How to turn off cellular radio in Lollipop/JellyBean using adb?

I've been trying to find out how to kill/turn-off cellular radio (on a rooted device) using some command on ADB. My research only found that I should either (using GUI) enable Airplane Mode, or type ...
user avatar
1 vote
1 answer
2k views

Android 6: connect as camera per default

When I connect an Android 6 phone with my pc via USB, it always connects as "USB for charging". I have to set it to "connect as camera" (PTP) manually (for ADB to work) every time. Can I set a ...
user avatar
  • 183
25 votes
2 answers
16k 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, ...
user avatar
  • 715
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
  • 89.1k
19 votes
3 answers
54k views

Why is "insufficient storage" wrongly reported when installing an .apk via adb? [duplicate]

I have an HTC Desire running Froyo. It is not rooted, nor have I installed any custom ROM. I get an "Insufficient Storage" error when I'm trying to install an app via adb/eclipse. The .apk is only ...
user avatar
8 votes
1 answer
10k 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 ...
user avatar
9 votes
2 answers
9k views

Storage location of "adb_keys"

I have a Galaxy s3 (I9300) that has a broken touch screen (display is fine). I therefore can not click the authorization dialog that pops up when I try to access the device via adb on any ROMs above ...
user avatar
  • 193
8 votes
1 answer
23k views

How to run adb and fastboot commands from Termux?

Is it possible to run adb and fastboot commands using Termux terminal emulator? I am wanting to run commands from one Huawei T3 7 to another using USB/OTG cable. Need to unlock bootloader but have no ...
user avatar
9 votes
1 answer
12k views

Connecting to WiFi via ADB Shell

I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via wpa_cli using the method #1 ...
user avatar
3 votes
1 answer
5k views

How to pull data from internal memory on an unrooted phone?

Yesterday, I suddenly discovered that I had lost all the user files on the internal memory of my android phone. All my photos, my music, my PDFs, audio recordings, everything. I will explain the ...
user avatar
57 votes
1 answer
83k views

What all does ADB backup and how do I restore part of it?

I am soon going to unlock bootloader and root my Nexus 5, but I didn't wanted to wipe all the data so I thought of using the ADB backup function to restore after rooting is done. adb backup [-f <...
user avatar
8 votes
1 answer
29k views

Entering safe mode from adb shell

My question is similar to this one, but I don't necessarily have a powered off device. How can I enter Android' safe mode (or make it boot into safe mode the next time) from within my recovery image? ...
user avatar
2 votes
1 answer
5k views

How to install a firmware without losing your data and restore the previous one in case it goes wrong?

I have a OnePlus 5T and I can't install OTA updates anymore because my firmware is too old. In addition to that I don't have a full backup of my device because I'm using encryption and TWRP doesn't ...
user avatar
  • 317
4 votes
1 answer
2k views

How to mount system under super partion?

Google has recently changed the way to mount system and introduced Dynamic Partitions. Previously in a rooted adb shell, I used to run mount -o rw,remount /system to mount system in read-write mode. ...
user avatar
7 votes
1 answer
11k views

How to access /storage/emulated/10 (multi-users env) in adb shell on Android 9+ without root access?

I have two Android system users configured. $ pm list users Users: UserInfo{0:Owner:13} running UserInfo{10:security space:13} running UserInfo{999:XSpace:800010} running When the mobile ...
user avatar
  • 282
14 votes
2 answers
257k 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
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
2 votes
1 answer
22k views

How to Install Android Apps to the SD Card by Default

I am following this tutorial for moving apps to sd card. How to Install Android Apps to the SD Card by Default But My Default Location is not changing. And My Phone Memory is full and unable to ...
user avatar

1
2 3 4 5
7