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
0 answers
18 views

Any shared R/W folder for any app and adb?

I have a simple question about android but I just can't find any answer: Is there any folder in a recent Android (10+) that is accessible in R/W to any application and also to adb shell, without root? ...
  • 113
1 vote
0 answers
19 views

how to find which process is continuously uploading data

My phone seems to be suddenly uploading GBs of data at speed of 8+Mbps. I cannot identify which direction app is doing this. But systems network indicator seems to show that is uploading data. Just ...
  • 193
0 votes
0 answers
70 views
+100

Automate Changing hotspot ap band through macrodroid

I'm using old Android device(one plus running Android 12.1) as hotspot, it has support for both 2.4ghz and 5ghz band, but one at a time. To automate charging cycle, I'm using smart switch. But smart ...
  • 61
0 votes
0 answers
38 views

ADB Shell / Magisk : Add folder to /system problem

I have an old phone on which I installed a new custom ROM, but the WiFi does not work because /system/etc/wifi is missing. I just have to move the vendor's folder from system/vendor/etc/wifi with ...
user avatar
0 votes
0 answers
40 views

Ethernet over USB + ADB | Dynamically switch between Host and Peripheral mode in OTG

Problem: I own an android device in a remote location that I use to run various tests and operations. I need to be able to send ADB commands while also connect the phone to a wired internet connection....
  • 101
0 votes
0 answers
37 views

My Android TV seems to be rebooting frequently in sleep mode and causing ADB to be disconnected, why?

This is the log I got from adb logcat when the TV is at sleep mode: 03-05 00:50:40.242 9534 9647 I uicksetsdk.son: Starting a blocking GC Alloc 03-05 00:50:40.242 9534 9647 I uicksetsdk.son: ...
1 vote
0 answers
31 views

How to increase recovery partition size?

I'm totally lost right now. I want to flash TWRP 3.7 on my Galaxy S7 herolte. However, it won't work because the recovery partition is only 46MB. So I wanted to increase the size - a process I've done ...
  • 111
0 votes
0 answers
25 views

Why are files with wrong character encoding name write-protected?

I'm unable to delete the files with wrong character encoding in names on my phone. I plug it into my Windows PC and try to delete it in File Explorer. It says the files are write-protected: This ...
  • 496
1 vote
0 answers
60 views

Android scoped storage on Android 11 - permission denied

The scenario is that one app is creating some files on its external storage /sdcard/Android/data/myPackageName and during testing automation I need to retrieve some files from that folder using adb. ...
  • 111
0 votes
0 answers
26 views

Is there any way to turn off/on a grayed out notification from an app through an ADB command?

My default phone/call app doesn't allow me to turn off notifications. When I go into the 'Apps and notifications' and find the phone/call app and try to turn them off, the switch is grayed out and ...
1 vote
1 answer
57 views

Is there a way to permanently delete specific (phantom) alarms using adb shell?

My phone has mysteriously created a phantom alarm meaning that no GUI app or widget shows this alarm on my phone and thus nothing allows me to see to set, delete, or view this alarm. Using adb dumpsys ...
  • 121
0 votes
1 answer
67 views

ADB sideload regularly loads LineageOS ROM, but gets stuck at 0% with stock firmware, why?

I'm trying to restore the stock firmware for a Samsung S10e. It's currently setup with the LineageOS recovery image, and the LineageOS firmware. I've rebooted in the (LineageOS) recovery, factory ...
  • 103
1 vote
0 answers
29 views

How to access the block device that represents the SD card on an android device thru ADB?

My android's SD card got corrupted while trying to access the data with a card reader. I'm trying to create a dd image of the block device that represents the SD card. Can this be achieved thru ADB (...
  • 11
1 vote
0 answers
40 views

Limit maximum screen brightness when using auto brightness via ADB on Samsung Galaxy S23 Ultra

Is there any way to limit the maximum brightness on the S23 Ultra or other Samsung devices, I want to save more battery without having to use it manually. Many thanks
  • 11
0 votes
0 answers
78 views

change adb device name

The android device identifies itself as device for ADB (Android Debug Bridge). $ adb devices List of devices attached 5727aa6d device In my case LineageOS 20.0 test build the name contains ...
  • 3,484
0 votes
0 answers
24 views

How to get titles of installed apps on device? [duplicate]

I connected Android device to desktop with Windows using USB. I need to get titles of installed apps. What command for Windows command line to complete the task? I used ADB for other tasks, but while ...
  • 11
1 vote
0 answers
64 views

How to exit `adb sideload` mode in recovery mode?

I accidentally chose to apply a package with adb sideload. I have tried pressing all the necessary buttons at once but nothing seems to be working. How do I exit?
1 vote
0 answers
45 views

ADB Shell: Reading exit codes from windows

So, I'm making a little batch script to be able to automate the whole process of flashing new roms for my Galaxy S6. Since its screen is broke, I have to do everithing manually from the adb shell, and ...
  • 43
1 vote
0 answers
28 views

ADB Connection via Mobile Hotspot

How can I connect my phone to my Mac via ADB while using my Mac that is connected to the phone's hotspot? The port is already open on 5555, on a normal WiFi connection I can just connect via the IP ...
  • 11
2 votes
0 answers
75 views

full adb restore not restoring [unencrypted] .ab file to bootloader unlocked Lineage device

This is a follow-up troubleshooting question to this one here in this very same forum. After repeatedly confirming the connection through both of adb devices -l and fastboot devices -l tantamounting ...
0 votes
0 answers
142 views

fastboot oem unlock showing (remote: 'Unlock operation is not allowed')

I am trying to unlock my Lenovo K8 Plus' bootloader, but as soon as I type fastboot oem unlock or fastboot flashing unlock it says (remote: 'Unlock operation is not allowed'). On the device it says ...
1 vote
0 answers
20 views

Is it possible to see why my backup with adb is not working? [duplicate]

I play some games by a developer and there is no cloud save so most players would use adb to back up and move their save files. Lately though when trying to back up the game, it's just producing a 1kb ...
1 vote
0 answers
95 views

adb push/pull as root

adb pull and adb push can be used to transfer files from and to the device via the ADB connection. However, even on a rooted device, these commands seem to operate with user permissions. I can access ...
1 vote
1 answer
29 views

What might prevent ADB from writing to a Settings.Secure key?

I am trying to edit the value of a Secure Settings key over ADB with the command: settings put secure camera_double_twist_to_flip_enabled 1 For some unknown reason, the value of this key is 0 and ...
  • 21
1 vote
0 answers
85 views

Send android clipboard content to connected Macbook over ADB

I have connected my Android mobile phone to my Macbook via ADB. Through ADB shell commands, I have copied a text from an application to the Android's clipboard. Now, I would like to send this copied ...
  • 11
1 vote
0 answers
330 views

ADB command to permanently disable Android 12 microphone & camera indicators

I want to permanently disable the microphone and camera usage indicator on Android 12. I tried the following ADB command, but it only disable for some minutes: adb shell cmd device_config put privacy ...
user avatar
1 vote
0 answers
34 views

Is there a way to enable Google Location Accuracy via ADB or via some other command on Android 13?

Within location services on Android 13 devices, there are several services such as Google Location Accuracy. I have taken a snapshot of secure, global and system settings before and after enabling ...
3 votes
1 answer
553 views

ADB Sideload stuck on serving update.zip at 0%

I'm using adb sideload update.zip command, but it is stuck on serving at 0% (Verifying update package ... on phone). I tried adb usb command, but the error is closed. The device state is sideload. ...
1 vote
1 answer
37 views

adb pull not honoring trailing slash, push ignores permissions

If I use adb push mydir/ /sdcard/Documents/ the result is as expected: all files from within mydir/ end up inside /sdcard/Documents/ (just the permissions are not kept, even not when using -a; on the ...
  • 90.1k
1 vote
2 answers
55 views

adb server stutters ubuntu desktop

My environment is: Ubuntu 20.04.2 LTS (xubuntu to be more specific), NVidia driver 470.103.01, Android SDK 33 When I start adb server by running some adb commands, the UI, mouse and other things ...
-1 votes
1 answer
289 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. ...
1 vote
0 answers
50 views

How to authorize unauthorized device via Android Debug Bridge (adb) for non-working screen stuck at boot-time pin prompt for Pixel 5a?

Android 13. Basically, my screen doesn't work anymore but it works otherwise. Previously I was able to set up AirDroid cast through a painful process with an accessibility talkback feature. My device ...
1 vote
0 answers
28 views

How to ensure android device is always connected to wifi regardless of its state?

Is there any developer setting option or adb command that forces android devices to always maintain their wifi connection even if the device is idle or locked? Sometimes my devices don't respond to ...
  • 11
0 votes
1 answer
29 views

How to chose an Android device for testing software?

The software I produce on Android isn't an app at all. It's a mathematical modelling library, built entirely with the NDK, which is tested with a command-line test harness in the ADB shell. It is ...
1 vote
0 answers
33 views

Offset screen to non-broken area

My android tv is broken and about half the display is invisible. I followed this answer and tried to offset the display using adb shell wm overscan 960,540,0,0 This is supposed to move display to ...
  • 780
2 votes
0 answers
98 views

Which partitions to back up for a "complete" backup?

I have a Galaxy S10e running crDroid 13. I don't have TWRP on it (since it had to be installed from the custom LineageOS recovery), but https://stackoverflow.com/questions/29442630/copy-full-disk-...
  • 163
1 vote
0 answers
33 views

adb downgrade install fails even with -d

I'm attempting to install a pretty old version of Chrome (44.0.2403.133) on a Nexus 5X (Android 6). It already has Chrome on it so I ran adb install -r -d path/to/chrome.apk However, even with -d, ...
0 votes
1 answer
201 views

root - Can't edit hosts file

I am using Redmi Note 11 running on Custom ROM - Xiaomi Eu Specs: My device is rooted via Magisk. I want to edit the hosts file. I have tried using ADB, CX File Explorer, X-Plore Manager but I am ...
0 votes
0 answers
43 views

How to detect cpu architecture and deliver correct apk?

There are a variety of CPU architectures that android systems use such as arm64-v8a, armeabi-v7a, armeabi, x86_64 and x86. Is there a way for adb or any other tool to detect the architecture of a ...
0 votes
0 answers
25 views

Some tablets respond to pings, others don't

There are dozens of tablets on my table that are all connected to the same 5GHz Wi-Fi network. All IP addresses were given by DHCP in subnet 192.168.34.0/24. I want to find the ip addresses of all of ...
0 votes
0 answers
179 views

Download file from Android shell

I am making a shell script for Android to run on ADB, however, the script should download a file. Commands like wget and curl aren't available in /system/bin. Here are a few possibble solutions that I ...
  • 79
1 vote
1 answer
80 views

Connect laptop's webcam with new Genymotion

I noticed that the new version of Genymotion 3.3.x doesn't have anymore the (very useful) webcam activation feature. As I would just need that and I have no need to use more advanced features, is ...
  • 11
2 votes
1 answer
37 views

Motorola stuck in Android Recovery - trying to recover photos/documents - tagged posts don't seem to be a match

My daughter's Motorola One Vision is stuck in Android Recovery mode. I have read the recovery TAG posts but can't find one that exactly matches my scenario. The phone came with Android version 9, but ...
  • 21
0 votes
0 answers
32 views

Record manual actions and convert them to adb shell am start intents/actions?

Question Is it possible to record phone inputs and the accompanying intents/actions that are executed within an app, and to reproduce them automatically with adb shell? Context I was looking into the ...
  • 359
1 vote
0 answers
33 views

How can one robustly and automatically configure Orbot through ADB?

Context Whilst automating a calendar setup over tor, and I was looking for an open source, and more robust way to automatically configure Orbot to: 0. Allow the Connection request (prompt: ok) Select ...
  • 359
1 vote
0 answers
81 views

Opening notification with ADB and notification ID on Android

I am trying to open a notification on my Android device using ADB and the notification ID, but I am getting the following error message: Starting: Intent { act=android.intent.action.VIEW cat=[android....
4 votes
0 answers
123 views

How can we access Settings > Safety & emergency on Android via ADB commands?

How can we access Settings > Safety & emergency via ADB commands? I tried the below commands but none are working. 1. adb shell am start -n com.android.settings/com.android.settings.emergency....
  • 41
1 vote
0 answers
51 views

How can I get the output of an application via ADB?

I would like to get the text output of Google Voice2Text feature [Android9] via adb. The one you get when clicking the microphone on the keyboard (Google Voice Typing in the pref panel). I tried adb ...
1 vote
0 answers
127 views

dumpsys battery in Termux

I am trying to get battery info in Termux. I granted android.permission.DUMP and android.permission.PACKAGE_USAGE_STATS via ADB for com.termux (Termux app) Then I opened Termux and types in /system/...
  • 79
0 votes
0 answers
24 views

Can I check for multi-process apps on a device using adb?

I have an Android device and I want to know either: whether there are currently any apps running in multiple processes whether there are any apps installed with the ability to run in multiple ...
  • 101

1
2 3 4 5
45