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
2 votes
2 answers
513 views

Soft-bricked A40 after uninstalling apps ADB

I may have just messed up my smartphone and really need your help. I wanted to get rid of some of the bloatware on my A40 and read online that one can actually uninstall many apps via the Windows ...
0 votes
0 answers
78 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 ...
8 votes
2 answers
8k views

Obtaining app storage details via ADB

TL;DR: On-device, we can navigate to Settings › Apps, and for each app separately can call up details on storage used: by the app itself, by its data, by its cache. Is it possible to obtain those ...
0 votes
0 answers
592 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 ...
1 vote
0 answers
529 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....
4 votes
2 answers
7k views

File "has unexpected contents" error when sideloading Android 5.0 OTA zip file

I have a Nexus 7 (2013) (wifi) and am trying to update the software to Android 5.0. When I try to sideload, I get this error: Installing update... mount: failed to mount /dev/block/platform/msm.sdcc.1/...
3 votes
2 answers
21k views

Can't flash custom TWRP recovery image on Motorola Moto G7 Power phone

I've got a brand new Motorola Moto G7 Power running Android 9. I also have Ubuntu 19.04 running on my desktop. I want to root the phone. I've managed to unlock the bootloader using Motorola's online ...
3 votes
2 answers
4k views

Problem with ADB on my Nexus 4 (unauthorized phone) [closed]

When running adb devices in cmd, it says that my phone is unauthorized. It appears that it has something to do with the RSA fingerprint prompt. I don't remember ever getting such a prompt. Yes, I am ...
1 vote
0 answers
472 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 ...
1 vote
1 answer
220 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 ...
0 votes
1 answer
3k views

Why the file path the phone tells me, I couldn't find in `adb shell`?

I used my new Moto X phone, then I encountered a basic problem. It's running Android 4.4.2. I take a photo and want to send it to my PC. The Gallery app tells me the photo is at /storage/emulated/0/...
2 votes
1 answer
2k views

Enabling Wireguard tunnel through ADB shell

I'm trying to enable and disable Wireguard tunnels through the ADB shell. I can see the followings actions and receivers are available : adb:# dumpsys package com.wireguard.android ... Receiver ...
1 vote
0 answers
413 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. ...
1 vote
0 answers
662 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 ...
0 votes
1 answer
443 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 ...
1 vote
0 answers
67 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 (...
3 votes
1 answer
714 views

How can I reset the WindowManager resolution and DPI settings in the Google TV user selection screen?

I was experimenting with the wm size and wm density commands, and now the Google TV user selection screen does not let me pick a user, telling me that 1920x1080 is not a supported resolution when I do ...
0 votes
0 answers
28 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 ...
1 vote
0 answers
892 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
399 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 ...
1 vote
0 answers
68 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 ...
3 votes
0 answers
225 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
435 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
26 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
2k 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
250 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 ...
2 votes
0 answers
467 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 ...
0 votes
1 answer
922 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 ...
72 votes
3 answers
483k 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?
1 vote
0 answers
115 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 ...
6 votes
1 answer
5k views

How to get a split apk from a device via adb?

There is a well-known question on how to get APKs from an Android device with adb. However, this fails for split APKs, because there, adb shell pm path com.example.someapp does list you not only one ...
4 votes
1 answer
3k 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. ...
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 ...
17 votes
4 answers
21k 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 ...
1 vote
1 answer
131 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 ...
3 votes
2 answers
4k views

Auto start two apps on split screen after reboot

I have Two running Android apps (used for surveillance and doorbell) permanently and simultaneously on split screen. Sometimes, the person who used the device (for personal purposes) forget to get ...
0 votes
1 answer
36 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 ...
3 votes
0 answers
456 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-...
1 vote
0 answers
144 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
109 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 ...
1 vote
0 answers
256 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 ...
3 votes
1 answer
3k views

ADB - bypass lock screen

I am using Lineageos 17.1 on the FP3 (the phone is not rooted). I do know my screen pattern code (it is a 6x6 pattern), but I am not able to enter it correctly, because I disabled that the pattern is ...
1 vote
2 answers
2k views

adb restore <freeotp backup> does nothing

I followed the guidance here to do a FreeOTP backup with adb backup -f <backup path> org.fedorahosted.freeotp. After I wiped my phone and tried to do an `adb restore I get the message "Now ...
1 vote
0 answers
205 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
0 answers
461 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
34 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 ...
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.
1 vote
0 answers
967 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 ...
1 vote
1 answer
523 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 ...
2 votes
1 answer
157 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 ...

1
3 4
5
6 7
47