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
67 votes
7 answers
89k 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-...
Izzy's user avatar
  • 90.8k
20 votes
3 answers
41k views

How to recover a deleted file from /data partition on a rooted phone?

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 ...
K. Hatake's user avatar
  • 315
48 votes
4 answers
303k 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 ...
Nate Parsons's user avatar
147 votes
10 answers
179k 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
9 votes
1 answer
11k views

Why does "adb root" do 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: C:\Users\ituser> adb root C:\Users\ituser> adb remount Not running as ...
helper's user avatar
  • 285
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 ...
user1068378's user avatar
116 votes
4 answers
520k 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 ...
Jonas's user avatar
  • 5,017
13 votes
2 answers
13k 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 ...
aligf's user avatar
  • 233
22 votes
3 answers
34k 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 ...
Izzy's user avatar
  • 90.8k
37 votes
3 answers
104k 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, ...
Izzy's user avatar
  • 90.8k
1 vote
1 answer
827 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 ...
Fermat561's user avatar
  • 111
3 votes
1 answer
11k 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 ...
Nathan's user avatar
  • 31
52 votes
4 answers
57k 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....
ingorichter's user avatar
72 votes
3 answers
484k 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?
Thomas Vos's user avatar
  • 3,980
29 votes
7 answers
42k 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 ...
Gilles Quénot's user avatar
50 votes
10 answers
38k 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 ...
Adi Inbar's user avatar
  • 1,403
22 votes
2 answers
505k 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 ...
Jenabictak's user avatar
22 votes
2 answers
87k 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....
TheOnlyAnil's user avatar
21 votes
2 answers
89k 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 ...
Emil's user avatar
  • 782
8 votes
1 answer
6k 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 ...
Edgar Griñant's user avatar
79 votes
4 answers
232k views

Enable and disable system apps via ADB

Is there any adb command to enable/disable a system app? Thanks
lao's user avatar
  • 893
6 votes
1 answer
49k 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, ...
reidLinden's user avatar
2 votes
1 answer
11k 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.
Manish's user avatar
  • 21
24 votes
8 answers
135k 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 ...
Aleksandr Dubinsky's user avatar
9 votes
1 answer
40k 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, ...
Display Name's user avatar
124 votes
6 answers
276k 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.
Blacklist Human's user avatar
19 votes
2 answers
66k 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 ...
Audrius's user avatar
  • 191
18 votes
2 answers
41k 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/...
Izzy's user avatar
  • 90.8k
16 votes
6 answers
90k 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 ...
Razaborg's user avatar
  • 161
12 votes
2 answers
6k 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 ...
HaLo2FrEeEk's user avatar
12 votes
1 answer
13k 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 ...
davejoem's user avatar
  • 223
11 votes
2 answers
20k 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 ...
sgon00's user avatar
  • 342
8 votes
4 answers
17k 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 ...
Levi De Haan's user avatar
3 votes
1 answer
8k 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 ...
Nostromo's user avatar
3 votes
2 answers
11k 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 ...
davidbaumann's user avatar
3 votes
1 answer
9k 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 ...
fweigl's user avatar
  • 183
26 votes
2 answers
17k 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, ...
Bob's user avatar
  • 725
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 ...
Graham Borland's user avatar
9 votes
1 answer
18k 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 ...
Fahad Yousuf's user avatar
8 votes
1 answer
11k 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 ...
That Brazilian Guy's user avatar
8 votes
1 answer
31k 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 ...
T. Kirkland's user avatar
5 votes
1 answer
14k views

How to grant certain apps root permission through ADB? [duplicate]

I have an Android TV box (4.4.2, armv7), and I can login the device as root by ADB (local network). What I want to do is to give certain apps root permission. How can I do it?
punnpkin's user avatar
5 votes
1 answer
12k 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 ...
Arti's user avatar
  • 245
60 votes
1 answer
87k 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 <...
Akshat Mittal's user avatar
8 votes
1 answer
36k 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? ...
Frederick Nord's user avatar
4 votes
1 answer
4k 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. ...
Vatish Sharma's user avatar
22 votes
2 answers
328k 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?
Timothy Dillan's user avatar
21 votes
4 answers
105k views

Uninstall system app failed using 'adb shell pm uninstall'

I attempted to force uninstall in ADB, but failed: $ adb shell pm uninstall -k org.openintents.filemanager $ adb shell pm list packages -f | grep -i manager package:/system/app/FileManager.apk=org....
user avatar
19 votes
7 answers
64k views

How to reinstall an uninstalled system app through ADB?

My phone is an unrooted Samsung Galaxy S7 Edge running Oreo 8.0. Yesterday when removing bloatware from my phone, I accidentally uninstalled a system app using the adb command: pm uninstall -k --user ...
Nico's user avatar
  • 193

1
2 3 4 5
8