People who code: we want your input. Take the 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
3
votes
1answer
37k 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 specified....
21
votes
3answers
97k 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....
3
votes
1answer
5k 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 ...
8
votes
1answer
2k views

Attempting to brute force Android security pattern through TWRP via adb

Yesterday I somehow forgot the Android security pattern on my phone. Due to muscle memory I sort of know what it was, but can't figure out the true pattern. Therefore I'm attempting to brute force it ...
4
votes
3answers
22k views

Can adb be used to recover SMS messages while in permanent “Safe Mode”?

I have a non-rooted Droid X2 that is in permanent "Safe mode", but I want to recover SMS messages. SMS Backup and Restore will NOT work because safe mode only allows system apps to run. adb shell ...
3
votes
3answers
4k views

Is this the right way to use dd for a full backup?

Sadly my device (sm-g3185) isn't supported by any of the CWM or NANDbackup so I am trying to do a backup manually. I found this thread which tells me to open one terminal (I'm on Arch Linux) and run: ...
1
vote
1answer
8k views

How to install adb/fastboot in cmd (with usb-drivers)?

I need adb for some reason, but don't know how to install it and getting the usb-drivers? I heard you have to download the full android sdk? What is to do?
3
votes
1answer
9k 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 com.huawei....
49
votes
7answers
177k views

Is there a way for me to run Adb shell as root without typing in 'su'?

Is there a way for me to run Adb shell as root without typing in su? I want to be able to have root access without going into the shell.
29
votes
2answers
39k views

How do I know when “adb backup” is finished?

I have a non-rooted Verizon Samsung Galaxy Nexus, and I wanted to try the "adb backup" feature. Possibly in preparation for rooting, but that's not really relevant to the question. I want to back up ...
31
votes
7answers
64k views

Backup and restore Android Settings and Application through ADB

I would like to ask if it possible to backup and restore all Android Settings and applications through ADB. I tried: adb backup -all adb: unable to connect for backup It is not working, while all ...
33
votes
4answers
63k views

Is there a way to see the device's screen *live* on PC, through ADB? [duplicate]

I am a vlogger and after getting HTC Desire HD, found out its camera was all I ever needed. However, I usually have to see myself while recording video, to control my facial expressions, and with a ...
43
votes
9answers
488k views

fastboot doesn't see device

I've read a lot of articles about this problem but I can't resolve it. I decided to install my developer application on phone using wifi. To do this I need to do some things with my phone. The first ...
12
votes
4answers
9k 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 ...
8
votes
2answers
6k views

Why is my Android not restoring the app data from its Google Drive backup?

I'm testing a new version of our app that now supports Android Auto Backup (by targeting API over 23). I've managed to get the system to back up the app's data by leaving it overnight (two nights), ...
13
votes
3answers
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: ...
8
votes
2answers
31k 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 /...
17
votes
4answers
43k 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 ...
9
votes
3answers
28k 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 ...
8
votes
2answers
27k views

Android ADB connect to device with broken USB and no root

I've read through the thread below and come across 2 solutions for connecting a device with ADB. https://stackoverflow.com/questions/4893953/android-run-install-debug-applications-over-wifi/19940301#...
7
votes
4answers
17k views

Does adb backup include contacts?

Does the command: adb backup -all -f backup.ab include contacts in the backup?
3
votes
2answers
28k views

What does “Archive does not contain 'android-something.txt'” mean?

So I am trying to flash my OnePlus One with CM12s through fastboot on command prompt, but whenever I type fastboot update romname.zip I am presented with: archive does not contain 'android-info.txt' ...
15
votes
4answers
128k 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 ...
13
votes
4answers
28k 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. ...
9
votes
5answers
16k 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 ...
2
votes
1answer
2k views

How to get 2nd IMEI number using adb?

I am currently using this command adb shell "service call iphonesubinfo 1" to get IMEI number, but it only returns 1st one. Does anyone know how I can get the 2nd IMEI number?
9
votes
2answers
12k 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 ...
2
votes
1answer
2k views

Fastboot connection problem

I am trying to install Lineage OS 16.0 on my Moto 4X. I unlocked the OEM bootloader. But when I enter the command 'fastboot reboot bootloader' it shows '< waiting for any device >'. There it stays ...
2
votes
4answers
10k views

adb backup on Marshmallow - is it different?

Device and settings: Moto X Play ( Stock 6.0.1), unrooted, USB debugging enabled in developer options and verified using adb devices. Other USB/ Developer options, as in pic below Enabled desktop ...
2
votes
1answer
2k views

Access encrypted /data Partition over ADB and recovery (TWRP, LineageOS 16, Redmi Note 4)

I have a Redmi Note 4 (mido) Android phone with a broken screen: the screen lights up, but otherwise it stays entirely "black". I already replaced the screen, but with no luck - the cause of the error ...
1
vote
1answer
577 views

Does “adb backup” also backup /data/misc/vold - the Encryption Key for Adoptable SD card?

I want to make sure that using adb backup -apk -shared -all -f ~/backup.ab will also save /data/misc/vold? I am trying to backup before rooting, in order to be able to gain access to the encryption ...
1
vote
0answers
131 views

fastboot cannot see my phone (moto3g) when adb can

Introduction: My phone is moto3g (bootloader unlocked), my OS is Debian GNU/Linux 10 (buster) and I want to install Debian native on it. To do so, I need root my device, and to do it i have to use ...
4
votes
3answers
27k views

USB drivers for using ADB with Samsung Galaxy S on CyanogenMod 7.1?

I recently installed CyanogenMod 7.1 on my Samsung Galaxy S i9000 and I have some problems now to get ADB on my Windows 7 64-bit computer to recognize the device. Currently, adb devices returns no ...
3
votes
1answer
739 views

Commands run on terminal but throw errors in shell script

I created a .sh script which sets app permissions on Android devices. If I push the script on /sdcard and run it through adb shell with command sh ./test.sh, the following error occurs on each ...
2
votes
1answer
8k views

Samsung Galaxy S3 I9300 is not detected by fastboot under Ubuntu 14.04

When I connect my device in Download mode to my laptop, it is not detected by neither adb nor fastboot commands: fastboot devices and sudo fastboot devices returns nothing when device is connected ...
2
votes
1answer
393 views

Can I access my Android through ADB if the phone can only get to the fastboot menu?

I would like to recover message attachments from a Pixel 3 that died recently. (Yes, I should have had them saved and backed up, but I missed that option for message attachments.) However, the phone ...
1
vote
3answers
7k views

Pulling an apk of paid app from the device

I was pulling the .apk files from the device using the following command: ./adb pull /data/app/com.example.tracker-1.apk When I tried using the same command for the encrypted app as below: ./adb ...
1
vote
1answer
243 views

How to delete some files on unbootable phone with low memory?

I had been ignoring low memory on my android phone (Nexus 6P running copperhead OS) for some time. OS suddenly crashed out of no where and started booting up infinitely. After forcing it to restart ...
1
vote
1answer
1k views

Wondering if i can debloat some google apps from unrooted lg phone for my father?

My father being older does not want to modify his phone, however he has a LG L70 and no sd card, and doesn't use some unnecessary Google apps, such as play, books, and whatever else. My question is ...
36
votes
8answers
167k views

ADB can discover devices but not fastboot

I've searched on the web about this problem and it's usually solved by installing the appropriate drivers. Problem is I'm on a Mac. When I plug in my device, it can be discovered when I run adb ...
21
votes
9answers
134k views

Batch install apks from computer to Android without actually touching my Android

I want to batch install apks from my desktop directly. Such as I downloaded many apks on the desktop and want to install apks without actually touching my android. How to do this?
5
votes
1answer
53k views

How to Install App as System App [duplicate]

My S3 has a damaged motherboard (says Samsung Tech Center), only boots into safe mode. If I am to keep using the device I have to make the apps into system apps, so they run in safe mode. One way is ...
7
votes
3answers
35k views

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

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 (...
16
votes
1answer
33k views

Is it possible to backup and restore an app with data via ADB?

Basically, I want to install an app with my settings already configured to a bunch of phones. My thinking was Install app on phone 1 Configure Dump app and Data to PC ADB app and data to phone 2 ...
8
votes
6answers
67k views

Android ADB Shell Recovery Mounting

*Question: I need assistance mounting an Android phone's internal data using the Android ADB Shell while the unit is connected via USB and in recovery mode. How do I form a proper mount command? See ...
10
votes
1answer
24k 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 ...
7
votes
2answers
21k views

How to change “Preferred Network Mode” using adb without reboot?

I'm trying to change my phone's (CM 12, Stock 4.2, both rooted) preferred network mode from "GSM/WCDMA" (0) to "WCDMA only" (2) and vice versa (there can be other modes too), using command-line only. ...
2
votes
1answer
12k views

How to turn on the wi-fi hotspot using ADB?

Do you have any idea how can we configure and turn on the wi-fi hotspot using the command line (ADB console)?
18
votes
2answers
16k views

Why can't the su binary simply be copied (techical response please)

I have rooted several Samsung devices and the underlying "goal" so to speak seems to be to get the su binary in /system/xbinand install Superuser.apk. My question is why does one have to jump through ...
17
votes
3answers
7k 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 ...