Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
2 answers
3k views

Redmi 5 Plus boot loop after messing with the smallest width option in Developer options

So, I was bored and I decided to check some developer options to see what they could do. I found this option called 'smallest width', at first, I set it from 392 to 100 and it automatically set itself ...
0 votes
0 answers
14 views

Infinix S4 refusing to hard reset

My Infinix S4 is refusing to boot/on completely whenever I try to turn it on. It just shows Infinix and then turns off and then shows Infinix again and then turns off. It keeps doing that way till the ...
0 votes
1 answer
5k views

Booting twrp.img with fastboot doesn't work "FAILED (remote: unknown command)

I am trying to boot twrp.img on my LG G6 ThinQ using adb and fastboot. I reboot into fastboot mode and do: fastboot boot ../users/******/downloads/twrp.img and then it says downloading 'boot.img'... ...
1 vote
0 answers
17 views

How to access ADB shell on Samsung Galaxy S10 stuck in boot loop?

I have a Samsung Galaxy S10 that is rooted and the bootloader is unlocked. Recently, I disabled a series of system packages, and now my phone is stuck in a boot loop. I need to re-enable those ...
1 vote
0 answers
17 views

How to log GPU usage using GPUWatch?

I want to log GPU usage on my app. I see there is GPUWatch option to monitor an app's GPU usage. It shows graphs but how to log this data? I need to save it. Alternatively if there is any other ways ...
0 votes
0 answers
20 views

Is it possible to get the historical timestamps of when I have unlocked or locked my phone using USB debugging?

Is it possible to get the historical timestamps of when I have unlocked or locked my phone using USB debugging? Apparently, this data is tracked in Digital Wellbeing, but it is not necessarily easy to ...
2 votes
2 answers
10k views

"Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS" when using `adb shell pm grant` command

I have installed a clipboard manager, Clip Stack on my Android 11 phone. When the app is opened, the developer helpfully gives the message that background clipboard access has been blocked by Android ...
2 votes
1 answer
49 views

Cannot backup Pixel 6a

I forgot my passcode the other day (Pixel 6a, Android 14) and I was planning to backup my phone, reset my phone, then put all the data back into the phone. I was planning to use ADB, but then I ...
1 vote
0 answers
36 views

who is this mysterious device owner? how do I disable it?

I can't set a device owner on the xiomi duoqin f22. (you can call it "device owner" or "profile owner" etc.) i tried all methods previously given like ejecting sim card, hard reset,...
0 votes
2 answers
914 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
54 views

How to enable component in Android Settings app using ADB shell

Here is what I am trying to achieve, I'm trying to derive an adb shell command that allows me to toggle these switches inside the settings app programmatically. I've used dumpsys to figure out these ...
0 votes
0 answers
30 views

Getting the private IP of the phone on my hotspot when it's connected to data

I want to use scrcpy remotely if I'm on mobile data, so I decided to turn on my mobile hotspot, connect to WiFi, and connect my laptop to it. Of course, that works. But if I disconnect from WiFi and ...
0 votes
0 answers
39 views

"How to activate the system app 'Setup Wizard' 'com.google.android.setupwizard' on Android via ADB without root?" 'Error: java.lang.SecurityException'

The command adb shell pm enable com.google.android.setupwizard returns an error: Error: java.lang.SecurityException: Shell cannot change component state for com.google.android.setupwizard/null to 1. ...
0 votes
0 answers
48 views

How to reinstall all Google Play Store dependencies, specifically Google Account Manager to make the Play Store work again?

I'm using GNU/Linux and the adb command connected on a Samsung phone (specifically the SM-N9600 model, on Android version 10) without root, and also termux to find paths easily on the phone. I ...
0 votes
1 answer
56 views

Bricked my phone after messing with Knox permissions

I have a Samsung S20FE with Android 11 and rooted with Magisk. I have installed 'autostarts' from F-droid wanting to disable the Spotify app which pops up at each boot. When browsing through the app ...
2 votes
0 answers
3k views

Moto M: Phone in "Red State". Does not boot. Cannot enter fastboot or recovery

I tried to install a custom ROM on my Moto M, and failed in the attempt. I uploaded TWRP, and misguidedly executed adb flashing lock afterwards. Now my phone says: Red State. Your device has failed ...
125 votes
6 answers
287k 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.
0 votes
0 answers
166 views

Why can't I uninstall/disable all bloatware through ADB without root?

I recently tried to disable bloatware in my cheap Vivo and Oppo smartphones. These apps named Themes, Game Center, etc. keep giving me notifications that can't be disabled through the UI. The ...
0 votes
0 answers
32 views

How can I install a new OS on a boot looping tablet?

I have an older tablet that I used to use to read. I left it in my drawer for a few years and now I want to do something with it again. When I turned it on it was stuck in a boot loop. I decided to ...
1 vote
0 answers
55 views

Unlocked boot loader ADB issue

I am trying to downgrade my Nexus 6P from Oreo 8.1 to 7.xx. I’ve unlocked the boot loader and can communicate with the device through Google’s adb fast boot command line which works fine (up to a ...
0 votes
1 answer
89 views

Can I Install the Newer Samsung DeX Version on a Galaxy Note 8 SM-N950F?

I own a Samsung Galaxy Note 8 (SM-N950F) and am interested in utilizing Samsung DeX to connect my phone to a Windows PC via USB-C, leveraging the newer DeX features that allow for a more integrated ...
2 votes
2 answers
5k 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?
2 votes
0 answers
45 views

Reset settings when the screen is broken

My device runs on my own android build based on LineageOS 19.1 Not so long ago, I accidentally turned on an experimental feature for my phone and the entire screen went blank. When turned on, the ...
2 votes
1 answer
3k views

ADB Debugging on LG Watch R

I got a LG Watch R for a programming project. First, I had a Gear Live that was now replaced. When I follow the guides step by step, I never get the "authorize this computer" like I did with ...
0 votes
1 answer
4k views

(Not Solved Again) How to root Gabb Wireless Z2?

(UPDATE: The accepted answer has since been patched. 12-16-2021) I have a Gabb Wireless which is an Android that is programmed to be "dumb". By "dumb", I mean it only has core apps ...
2 votes
1 answer
52 views

Unable to connect via adb on a firewalled Android device

Connecting from Linux, using an older adb (downloaded at tried 1.0.41 just to troubleshoot this - no difference, except that the messages now do include "Connection refused"), and the ...
1 vote
0 answers
700 views

How to recover data on a phone stuck in boot?

I know it is a common question. But I have been browsing the internet for the past 2 days and I can't find the answer to my specific case. So, I have a Redmi Note 5 pro Indian model. But for the past ...
0 votes
1 answer
25 views

Getting app data off a huawei u8815/ascend g300 and wileyfox swift

I'm looking to get a copy of my personal data from some old phones and thought you may be able to help. Just some necessary info before starting. I have already tried to do this by turning the huawei ...
1 vote
0 answers
21 views

Programatically query port # for Wireless ADB?

Every time Wireless Debugging is enabled, its listening port is randomized. Is there an way to programatically identify the current listening port for Wireless ADB connections, such as via a system ...
3 votes
2 answers
22k views

Get internal storage path for pulling over ADB

I want to get an internal storage path for pulling over ADB, and by "internal storage", I'm referring to the folder that's shown to you on a PC when you connect your device. I can use adb ...
0 votes
0 answers
25 views

How to download all audios from the com.android.deskclock application in android using adb?

The issue is that I couldn't find the audio files for this application. Is there any way to do this, for example, using ADB, which I can run from the notebook menu.
0 votes
0 answers
71 views

Does anyone else have a mysterious UID appear in their ADB? (-253)

I input the command adb shell dumpsys netstats detail and found "-253". The "-253" doesn't have any package name, and this is the only mention of "-253" I could find in ...
0 votes
0 answers
65 views

"Changing sensor privacy requires the following permission: android.permission.MANAGE_SENSOR_PRIVACY" when trying to change sensor_privacy

I would like to use the following command from ADB service call sensor_privacy 4 i32 1 to turn OFF my sensor, but it gives me Changing sensor privacy requires the following permission: android....
1 vote
1 answer
104 views

Android Wireless Debugging Runs Under Different Private IP Range than WiFI

Android 13 on Unihertz Jelly Star. Never had a problem up until today when I was attempting to use scrcpy and got annoyed enough by the constantly changing port number assignment for the Wireless ...
3 votes
2 answers
12k views

How to bypass/authorize ADB RSA key with broken touch AND screen?

I've tried everything I could find on the internet (mostly on StackOverflow). These I've already tried without result: Page not found - Stack Overflow shell - How to solve ADB device unauthorized in ...
0 votes
1 answer
57 views

ADB stopped working after installing Windows 11 23H2

I've been using ADB from the command prompt on this Microsoft Surface Book 3 laptop with success for about a year. It upgraded to Windows 11 23H2 from 22H2 a couple of weeks ago, and since then, ADB ...
2 votes
1 answer
2k views

Fail when pull system files in twrp recovery

My phone is Xiaomi Redmi Note 5, bootloader is already unlocked, haven't rooted yet. I boot to TWRP with the command fastboot boot twrp-3.2.3-0-whyred.img. Then .\adb remount .\adb pull /system/fonts ...
0 votes
3 answers
2k views

ADB Wifi loses connection when device's screen turns off - Realme 7 - Android 10

I work on Android Studio while using actual device for ADB using ADB over tcp/ip through command prompt (no additional software). But, this new device gets offline the moment screen turns off. I've ...
17 votes
5 answers
22k 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 external ...
11 votes
1 answer
7k 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 ...
2 votes
1 answer
11k views

Installing APK signed with different key possible through adb install -r?

Android will refuse to upgrade a package, if it is signed with a different key, making me to uninstall first (and lose user data) and re-install. If I install the new APK via adb install -r XYZ.apk, ...
3 votes
2 answers
17k views

How to change network interface used by Android?

When I boot up my Android Device and go to WiFi settings, the status of WiFi remains "Turning Wi-Fi on" forever. I looked it up in logcat logs, and below is the error that I see. E/...
0 votes
0 answers
33 views

Understanding virtual to physical memory translation in Android (google pixel 5, armv8.2-a)

I am using a simple shell script to read out data from /proc/pid/mem. Setup: This is done through android studio by using adb shell and su. Then, I use /proc/pid/maps to read out a memory range, ...
1 vote
0 answers
1k views

Need to push files to android data folder in android 14

I use Fl Studio Mobile to make music on my phone, and I recently switched to a Pixel 8 and need to transfer all of my Fl Studio files to my new phone. It's all in the app's data folder, due to how ...
1 vote
1 answer
4k views

'adb backup -apk -shared -all -f "D:\backup.ab' initiates backup, completes, but produces a file that is only 1kb

I'm attempting to backup my old Android device, a Samsung Galaxy S3, so that I can lend it to my friend while his is away at repairs, then restore it when he's done with it. I have the Samsung USB ...
0 votes
0 answers
37 views

Is there a way to PERMANENTLY disable colour in my phone?

The phone in question is Samsung s21 Fe. I find I am much more productive when my phone is monochrome however I always find myself turning monochrome off without realising and productivity suffers ...
7 votes
2 answers
16k views

How to check if a package is enabled via shell?

I have been writing a tasker task to enable/disable a package. I know adb shell pm enable com.android.contacts will enable the package and adb shell pm disable com.android.contacts will ...
0 votes
0 answers
184 views

Turning on "show pointer" breaks mirrored screen. How to turn off without phone screen

I am trying to help a friend who's screen broke on their Huawei P30. The screen is dead-dead. No touch, no light, nothing. So I tried to connect an external screen to it, an voila, I have a screen. I ...
0 votes
1 answer
34 views

Reinstall apps/services via phone directly?

I uninstalled certain apps/services via adb, then disabled the USB Debugging option. After restart the phone's settings option is not working. Please suggest how to enable developer options, usb ...
20 votes
7 answers
73k 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 ...

1
2 3 4 5
48