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
0 votes
1 answer
3k views

Error with `adb sideload`when trying to install Android 12 in recovery mode

According to Google's "Get Android 12" guide, The easiest way to get Android 12 Beta on a Google Pixel device is to enroll your device in the Android Beta for Pixel program. but also ...
7 votes
3 answers
3k views

Rsync-like downloads over adb?

NOTE: I asked a similar question here several days ago, but I was told to re-post it to "Stack Exchange Software Recommendations", which I did. Now, I posted this current question to "Stack Exchange ...
5 votes
1 answer
6k views

Half of touchscreen is unresponsive. How can I make Android only use the top half (rotated by 90 degrees)

So I have a broken LG G2 and a near-empty bank account, so buying a new phone isn't exactly an option right now. The bottom 50% of the screen doesn't respond to touch. Right now I am running ...
-1 votes
1 answer
464 views

full adb backup not creating .ab file for Realme 2 Pro

I am unable to create a full phone backup file of my Realme 2 Pro (model RMX1801) through the ADB. The phone runs stock ColorOS 7 (Android 10). The device is not rooted and I do not want to root it. ...
2 votes
1 answer
1k views

Enable Remote unlock from the Settings via ADB (no root)

I am trying to enable the Setting "Remote unlock" from Samsung (in Settings -> Biometrics and security -> Find My Mobile -> Remote unlock) by using the adb. I could enable other ...
0 votes
0 answers
223 views

Resize screen to avoid dead zone - problem with adb

Asking a question because it seems that nobody has got the same problem after resizing it's screen using adb because of a dead zone on my phone over the status bar. I've basically followed the steps ...
1 vote
0 answers
296 views

How to get the phone total uptime?

To describe the issue better I need to define the word "total uptime". We all know what the uptime is: a number of hours since the last reboot i.e. the amount of time when the phone was on. ...
1 vote
1 answer
236 views

ADB accessing shell /data/data/com.<specified_app>

I tried this ADB command: adb shell cd /data/data/com.whatsapp I want retrieve Whatsapp key file without root but I still get permission denied. Any idea how can I get read access of com.whatsapp ...
1 vote
2 answers
4k views

<scrcpy> adb server version () doesn't match this client ()

I'm getting very contradicting messages trying to run scrcpy wirelessly. $ adb connect 192.168.1.200:5555 connected to 192.168.1.200:5555 $ adb devices List of devices attached 192.168.1.200:5555 ...
1 vote
1 answer
139 views

How can I find CID from ADB shell?

I need to know the CID of an HTC 10 but, adb shell getprop ro.cid is unresponsive. Also $ fastboot devices FA********** fastboot $ fastboot oem readcid FAILED (remote: 'unknown command') fastboot:...
0 votes
0 answers
26 views

Data transmitted via ADB makes emulator stopping

Recently, I was running the Visual Studio Android emulator and TCPView, and I saw that the emulator keeps stopping. When I click "Wait", then some data is sent via adb to the emulator and ...
20 votes
3 answers
113k 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.
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/...
1 vote
0 answers
506 views

Android 11 ADB change preferred network mode

Situation I am trying to change the preferred network mode of two Android devices using ADB through the following commands. Both phones run Android 11 API 30 and are rooted. The entries in question ...
0 votes
0 answers
75 views

How to fix context manually or with a tool?

I've installed the new version of MIUI 14 from the MIUI 13 on my Xiaomi device mi 10 ultra, cas codename, after that i receive a system alert about battery and performance application, the issues are ...
2 votes
0 answers
163 views

How to enumerate all possible `adb shell input keyevent` codes for a device?

I have a damaged screen and touch digitizer on an automotive head unit. I am trying to access the diagnostics menu for the unit (Honda Clarity 2018 PHEV non-touring), but the touch input keys are not ...
0 votes
1 answer
116 views

Can't unlock Pixel 6's bootloader

I have no problems finding my Pixel 6 through adb. Also, no problems finding the device with fastboot devices while in fastbootd. But for some reason, when I switch to bootloader, the computer doesn't ...
0 votes
0 answers
43 views

Get a list of unreadable files using ADB

I'm trying to make a backup of a dying SD card on my Samsung Galaxy Note 8. I tried using adb pull, better-adb-sync, and other tools. The problem is that, not all files are readable because of the bad ...
1 vote
0 answers
57 views

How to factory reset a bricked Oneplus 3T?

A friend gave me a bricked oneplus 3T and asked if I could do anything. I assume bootloader is NOT unlocked and usb debugging NOT enabled. I’ve tried msm download tool but I only was able to use the ...
7 votes
1 answer
27k views

How to get adb logcat to filter ONLY by specific app (package name)

Would like to know how can I get the adb logcat of ONLY certain app, and all its errors and messages associated. I've tried before with adb logcat -c; adb logcat | grep com.fitbit.FitbitMobile, but ...
2 votes
1 answer
13k views

How to enable/disable apps using ADB (Android 8.x)?

I cannot get apps enabled or disabled using ADB. Android: 8.0.0 Device: Samsung Galaxy A520 (SM-A520F) I don't have root access to my device. To get the list of the disabled packages I use: $ adb ...
1 vote
1 answer
97 views

Is it possible to rescue data from a Google Nexus 5 which is stuck in bootloop with locked bootloader and no working recovery mode?

I have found my Google Nexus 5 which I had problems with in 2016 concerning the infamous stuck power button. At some point, the phone was stuck in a restarting loop. Then, I managed to leave this loop ...
2 votes
2 answers
4k views

TWRP: vendor partition is not existed

I try to flash LineageOS on a OnePlus 5 (cheeseburger). I installed TWRP 3.3.0-0 from here. I repeatedly wiped the partitions. What I cannot manage is to adb sideload LineageOS 16.0. I get this ...
3 votes
1 answer
770 views

Stock Android always using 100% physical memory. How to free it up with ADB?

I have a non-rooted phone. I just realized why Android is bad at memory management. I'm monitoring running progress in ADB shell with top. I can see the memory is about 100% used. Image resized. ...
3 votes
1 answer
5k views

`adb pull` says it pulled all of the files from my Android phone into my Windows PC, but in reality it didn't

So I am using adb to copy all of my Android files to my Windows PC with this command: adb pull -a /mnt/sdcard C:\backup And when it's done it says all x amount of files have been pulled, I can ...
0 votes
0 answers
54 views

Backup anything inside a folder including file modification recursively with adb backup command

I tried command adb backup -f backup.ab -apk -shared -all /storage/emulated/0 Then I tried inspect with android backup extractor, it just backing up the APK data, while I expect it backups the entire ...
0 votes
0 answers
199 views

Disable "Smart Rotate" feature in Android

I have been trying to find a way to disable the "smart rotate" feature in my Android tablet with adb commands without any luck. I hope someone can help me with this. The smart rotate feature ...
19 votes
4 answers
35k views

How do you pair a Device for Wireless Debugging with a QR Code?

There doesn't seem to be much written on this, but I see an option to pair my device with a QR code scanner. Is there a way to pair my phone with my computer by generating a QR code on my computer and ...
0 votes
0 answers
181 views

Recover Xiaomi Redmi Note 5 soft bricked with bootloader locked

This night I went to sleep, left my Xiaomi Redmi Note 5 charging, and when woke up the phone was off, with the white light on. When tried to turn on, it stays in the Mi.com logo. So I think its a soft ...
0 votes
1 answer
262 views

ROOT: How to allow "install unknown apps" by default for an app?

Since Android 8.0 adb shell settings put secure install_non_market_apps 1 no longer works because we now have to enable it for a specific app. I am using Android 9.0 and I have root access on my ...
0 votes
0 answers
34 views

Reset/Flush Telephony Data Statistics

I'm working with a company that uses Android architecture and an LTE modem for an IoT device. I am working on some software tests that ensure the modem is internally connected properly using dumpsys ...
6 votes
2 answers
6k views

"media: inaccessible or not found" error when attempting to control device volume via ADB

I'm trying to change volume on my device via ADB. When for instance running adb shell media volume --stream 15 --set 0 ...this error is returned (regarding the volume streams): /system/bin/sh: media: ...
1 vote
0 answers
40 views

Is adb pull of same command (same data) will overwrote, appended, or skipped?

I tried adb pull foo/folder baz/folder twice. But during pulling (first attempt), I interrupt (cancel it with ctrl+c) the process, then I tried the same command again (second attempt), it continues ...
3 votes
2 answers
3k views

How to flash something if the data partition is encrypted?

Problem The data on my phone is encrypted and I do not know how to flash something without decrypting it by using Disable Force Encryption. When the data partition is decrypted I can just copy a file ...
1 vote
1 answer
9k views

Error while unlocking bootloader | FAILED (remote: 'Unlock failed - Err:0xffffffff')

I was trying to unlock the bootloader of an old Redmi Note 4x, Downloaded fastboot and adb. I first enabled developer option and turned on USB debugging. I tried finding OEM unlock option which was ...
0 votes
0 answers
25 views

Stop background from stretching while using overscan on Android 10

I have a broken touchscreen zone that i want to disable. So i used Overscan to shift my screen on the right by 10px. However in Apps such as Youtube the main content is shown on the correct size ...
1 vote
0 answers
1k views

"INSTALL_FAILED_ABORTED: User rejected permissions" when installing apk from storage on Android 12

Edit: I notice this error when installing split apks using custom app installer from storage. But now I found this error also occurs when installing normal .apk file (I didn't notice this because I am ...
1 vote
1 answer
8k views

adb sideload lineage.zip yields adb: failed to read command: No error

TL;DR Trying to sideload Lineage, I hit a brick wall getting the following error: D:\Setups\XXXXX\Lineage FP3\platform-tools_28.0.2(ADB_1.0.41)> adb sideload lineage-17.1-20210104-nightly-FP3-...
0 votes
0 answers
110 views

Uninstalled Game Optimizing Service on Samsung Galaxy A50 (Android 9) will be re-installed immediately

I am trying to uninstall Game Optimizing Service bloatware on Samsung Galaxy A50 (Android 9): adb shell pm uninstall --user 0 com.samsung.android.game.gos As soon as i post this command, I see that ...
2 votes
0 answers
416 views

Android: how to use adb commands to block/unblock specific app from using the Internet, on rooted device if needed?

Background I want to temporarily block a specific app from using the Internet on my Android device, using a batch file. The device is rooted, so it should be possible via the PC. The problem I ...
1 vote
0 answers
23 views

Is it possible using Cerberus to enable ADB Debugging on my broken android

I have a OnePlus Nord 5G and stupidly I never enabled ADB Debugging, and now the screen is completely ruined. However, I still have the Cerberus connectivity. I have tried through the various means ...
2 votes
1 answer
334 views

Is there a universal ADB interface for microcontrollers?

ADB is a great tool to communicate between my PC and android device. I was wondering to save space with hobby projects, if it is possible for ADB to be used by a microcontroller? The only reference of ...
1 vote
3 answers
7k views

`fastboot devices` command returns a device with question marks

I am trying to root an Acer Iconia Tab A200 tablet using a script. I have adb working and fastboot works too, however, command fastboot devices returns question marks. E.g.: List of devices attached ...
3 votes
1 answer
2k views

Use phone as USB modem by ADB

I want to use the phone as a backup line for my Linux server. Can I do this by using the ADB? I mean, forward everything to a socket and route the traffic there. I also need some port forwarding, ...
2 votes
2 answers
4k views

How can I get the last dialled number and call duration via adb?

I'm creating a computer system for telemarketing. I'm using adb commands to dial numbers Link Is it possible to get last dialled number and call duration via adb? If it is, how?
0 votes
0 answers
56 views

ADB not working from TWRP for Galaxy S20

Device: Galaxy S20 (x1s) TWRP: 3.7.0 (latest) ADB OS: Linux ADB server doesn't detect the device when connected via USB with device in TWRP recovery. ADB server works fine when the phone is booted in ...
0 votes
0 answers
58 views

Get raw “mobile data usage” data

I’m in a bit of a feud with my mobile data provider and want to prove to them that I started using my mobile Internet after a specific time. Currently, the default mobile data usage in android is not ...
0 votes
0 answers
68 views

How to access Styx Browser & DuckDuckGo sessions/tabs on my Android & transferring them to my Linux PC, possibly ADB method, is root needed?

I've tried every solution recommended. My smartphone is not rooted, it is an LG L355DL, LG K31 Rebel, Android version 10. I got many tabs on my browsers that I need to transfer & review. When I ...
1 vote
1 answer
81k views

Android Emulator - INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113

When I try to install an apk file through the monkeyrunner Python script, getting the error INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113. How can I resolve this issue? ...
0 votes
0 answers
19 views

Honda Clarity 2018 Non-Touring PHEV: how to simulate nav keys to call `systemdiag`?

I have a damaged head unit that no longer responds to touch. I've managed to get access to ADB (I have root and USB debugging was enabled), but the problem now are the touch keys along the side of ...

1 2
3
4 5
47