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

How to open a specific page in OneNote app on Android via adb?

I'd like to make use of an Android tablet to write on OneNote pages that I'm actively viewing in a Windows computer. From the Windows computer, I get two links when I right click on a page and select &...
user avatar
  • 195
0 votes
0 answers
22 views

I have a device running Android 10 and need to know what ADB commands should I run to turn on tethering?

I have developed a custom hardware gateway device that is running Android 10. This device has a USB interface and I want to be able to connect external devices such as a laptop, server, etc. to the ...
user avatar
1 vote
0 answers
46 views

Pixel 3 stuck in fastboot loop after flashing factory image

The problem After trying to flash a factory image of Android to my (previously working) Pixel 3, I can now no longer exit the bootloader, nor can I boot into the system. The bootloader simply reads no ...
user avatar
1 vote
0 answers
30 views

Write into android/data on Android 12 using ADB?

With the addition of scoped storage in Android 11/12 I no longer have access to certain application directories within android/data. I would like to write into this directory but since I have no ...
user avatar
1 vote
0 answers
54 views

What EXACTLY does "pm uninstall" do on an unrooted Android 9.0 device?

There seems to be confusion regarding the behavior of pm uninstall from the ADB shell, see also here and here. Question: What configuration files does pm uninstall write to, is it /data/system/...
user avatar
  • 117
1 vote
0 answers
17 views

Maintain adb port forwarding after reconnect

I've noticed that, when I do adb reverse tcp:12345 tcp:12345 and then later disconnect/reconnect the phone, adb reverse --list will come up empty. Is there a way to persist this port forwarding? ...
user avatar
0 votes
0 answers
22 views

How to use adb to take dumpstate logs on a Samsung device during device setup after first power on?

I need to get dumpstate logs on a Samsung Fold device during device setup after first power on (after new binary flashing or factory reset). I am unable to set debug level high through *#9900# because ...
user avatar
0 votes
0 answers
14 views

How to connect over fastboot to Galaxy A50?

I'm on ubuntu 22.04 and I can connect over adb to my Samsung Galaxy A50, and do adb reboot bootloader it reboots to bootloader mode, but I can't use fastboot devices, it returns empty. Other phones ...
user avatar
  • 61
1 vote
0 answers
67 views

Where are Android app settings stored?

If I uninstall apps/services on an unrooted Android device via the ADB shell (e.g. by doing pm uninstall), where is this information stored? Note that I'm not referring to settings within individual ...
user avatar
  • 117
0 votes
0 answers
21 views

Halp...soft-bricked A40 after uninstalling apps ADB [duplicate]

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 ...
user avatar
  • 117
1 vote
0 answers
21 views

WhatsApp backup shrinks in size for no apparent reason

AFAIK there were never msgstore.db.crypt14 incremental backups in WhatsApp message file backup design strategy - aka everyday WhatsApp leaves a 1.1gb file in /sdcard/WhatsApp/databases . Now I know ...
user avatar
2 votes
2 answers
162 views

Halp...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 ...
user avatar
  • 117
0 votes
0 answers
27 views

I am trying to pull the app data from my phone to my pc but it says the path does not exist?

I have installed adb and am trying to pull the app data from an app. However, the adb command does not recognize the path. Could you please tell me what I am doing wrong here? I have attached the path ...
user avatar
1 vote
0 answers
35 views

Cannot remove default apps on TCL 30 XE 5G using ADB shell

I'm trying to remove a few apps that came pre-installed on my TCL 30XE 5G. I read online that I could use the... ADB, SDK, something like that, platform tools? So I downloaded those, got the files ...
user avatar
2 votes
0 answers
37 views

Manually-modified ADB backup file cannot be restored on a different device

While there are tons of posts about ADB, I think we can all agree it is an elusive beast. Therefore asking if anyone can shed some light on the following: The objective is to backup data from an app ...
user avatar
1 vote
0 answers
39 views

How To Disable System Updates On Motorola Moto G Stylus 5G? Or How To Disable System App With ADB (Package Is Protected/Protected Package)?

I have a Cricket branded Motorola Moto G 5G Stylus running Android 11, and I'm trying to disable the system updates. I've already disabled system updates in developer options, but it still forces ...
user avatar
1 vote
0 answers
27 views

Recovering photo/video files from an old Android with almost full memory

My grandma has an old LG (Android 6.0) for WhatsApp and a little more. She records some videos and pictures, and the "good ones", I copy to the SD and send by email (to have a backup) ...
user avatar
0 votes
0 answers
27 views

How to configure sync and auto-opening of browser tabs

I'm looking for a way to get all open tabs on my PC to be open on android also. Not really need real-time sync just open automatically or with a button. Also, it would be great if it can be done with ...
user avatar
1 vote
1 answer
61 views

How can I reduce lag/crashes when mirroring a screen with scrcpy?

Scrcpy lags or crashes when mirroring a screen. How can I reduce this? https://github.com/Genymobile/scrcpy
user avatar
1 vote
0 answers
26 views

Using vysor for remote adb debugging

Hi I have a computer X connected to Android phone A at my home via USB, I would like to give a remote computer Y outside my home network ability to view the phone and do remote debugging(via adb). I ...
user avatar
  • 111
0 votes
0 answers
62 views

Backing up a partition to desktop with adb and pv

I had once found a fast method to backup device partitions to a computer using adb and pv (provided by a TWRP temporary boot image). pv ran on the Android device and was called using adb, specifically,...
user avatar
  • 605
0 votes
0 answers
25 views

Mark apk as installed from playstore

I want to install apk which due to some bug is not available for my country. I know that there is some flag for the adb to mark application as installed from Play store so it will get properly updated....
user avatar
  • 111
3 votes
1 answer
132 views

How do I get the temperature of my phone via ADB?

At work, I run lots of automated software testing on Android phones. They stay permanently plugged into a development machine, and are given jobs to run via ADB. I'd very much like to be able to ...
user avatar
1 vote
0 answers
28 views

How to transfer files from semibricked android via adb

I have a OnePlus Nord and recently updated to android 12 after a few days my phone screen became suddenly black and phone is vibrating on its own. I tried restarting it but it turns on but shows black ...
user avatar
0 votes
0 answers
49 views

How do I unlock the bootloader of my Honor 20 Lite

I recently tried to unlock the boot loader of my Honor 20 lite but failed, due to Huawei removing the online code request thing. And I thought that this would be the right place to ask. So, whenever ...
user avatar
  • 1
0 votes
0 answers
14 views

WakeOnLan on Android - TV

I would need to know if the TV's network card supports WakeOnLan (it has RJ45 port). One Unix function that would let me see that would be "ethtool" but is not installed in the system. I ...
user avatar
  • 111
1 vote
0 answers
22 views

Enable ScreenCast from ADB - TV

I would need to be able to remotely control and monitor a TV running Android 9.0. In order to do so, I have been using WebKey without major issues... One problem is happening with one TV model is that ...
user avatar
  • 111
1 vote
1 answer
29 views

How do you record the first time setup of an Android device without USB Debugging enabled?

I'm trying to record the initial setup of an Android phone/tablet for my company but i'm running into an issue where none of the Android to PC mirroring programs work during this part without having ...
user avatar
  • 11
6 votes
1 answer
367 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: ...
user avatar
0 votes
1 answer
123 views

MTP changes with Android 12 update on Pixel 5?

I have a Google Pixel 5 that recently updated to Android 12. Since then, it has not been able to connect to my Debian 11 Linux desktop to transfer files in the usual way. The "usual way" is, ...
user avatar
2 votes
0 answers
34 views

adb succeeds but sporadically returns exit code 1

I'm using adb in an automated setup for testing. The following commands, whenever I execute them, sporadically return an exit code of 1 with no indication of errors happening: adb shell settings put ...
user avatar
2 votes
0 answers
68 views

How to list all apps with a specific permission in ADB?

I want to list all apps with a specific permission. For instance, output the package names of apps with the VIBRATE permission. The apps with a specific permission then be revoked or enabled as ...
user avatar
1 vote
0 answers
36 views

Stuck on ,,Phone is starting" Screen after rm /data/system/locksettings.db

I got a phone with custom rom and root and usb debugging activated. I forgot the pin so I tried this idea from @Max : Reset PIN from adb shell adb reboot recovery (wait for reboot) adb shell rm /data/...
user avatar
  • 11
0 votes
0 answers
25 views

Android Profiler does not show processes on rooted device

I try to create a memory profile for a specific app using a rooted device: The app is not debuggable The device is rooted and connected via USB USB debugging is enabled The device is shown in the ...
user avatar
0 votes
0 answers
29 views

When I try to flash TWRP and Lineageos it get's stuck on "waiting for devices" despite being recognized when I type "adb devices" [duplicate]

I have a Samsung s10e and currently my bootloader is unlocked and usb debugging is enabled. My phone was factory reset but I set it up again. My device is recognized when i type in adb devices but not ...
user avatar
0 votes
0 answers
56 views

Grant shell user permissions to apps

Using adb, one has a lot of additional permissions, that apps running locally on the phone have. Specifically, I am interested in the wm size command. Is there a good way to allow apps access to those ...
user avatar
  • 292
0 votes
0 answers
86 views

How is "rooted debugging" allowed on a non-rooted phone?

I just installed Lineage 18.1 (Android 11) on an old phone. Per the Lineage website, "Lineage is not rooted by default." However, I am surprised to see the option "rooted debugging"...
user avatar
0 votes
0 answers
24 views

ADB crashes on Raspberry Pi when certain amount of data is transferred

I have a Raspberry Pi 3 Model B Plus Rev 1.3 with Kali 2021.2 running on it. This RPi works as a little server which I SSH to. The RPi is connected via USB to an Android 8.1 device, so I can SSH to ...
user avatar
0 votes
0 answers
204 views

adb command to connect phone to known bluetooth device(my headphones. using it's name or MAC e.g)?

I'm going to automate the reconnection of the headphones between my computer and phone based on events on the phone and computer. how can i tell my phone (using adb) to connect to the known headphones ...
user avatar
0 votes
0 answers
39 views

adb logcat - monitor hardware accesses

Is there a way to show hardware messages (low level, in particular, I’m interested to see messages related to audio, camera, and microphone) using adb logcat? In my experiment regarding the microphone,...
user avatar
  • 1
0 votes
0 answers
40 views

Why can't I get similar performance degradation with Monkey in different experiments?

I have configured experiments to test which among 10 launched apps impacts performance the most. But I can't make an objective comparison, because if I launch the experiment twice with the same ...
user avatar
  • 1
0 votes
0 answers
60 views

'adb pm hide' returns permission exception

Trying to hide security app since its deletion causes a softbrick. 'pm hide package.name' returns: Exception occurred while executing 'hide':java.lang.SecurityException: Neither user 2000 nor current ...
user avatar
1 vote
1 answer
85 views

Difference between adb shell [command] and interactive adb shell

I am wondering if the interactive shell adb shell runs in a different context then when invoking a command via adb shell [command]? The background to this question is, that I am running dinit on an ...
user avatar
  • 131
1 vote
1 answer
32 views

Where in a smartphone with Android are deleted and cleaned the files that are visible when testing with "root integrity check"?

Where in a smartphone with Android are deleted and cleaned the files that are visible when testing with "root integrity check" ?? Clearing the cache and user settings do not help, obviously ...
user avatar
1 vote
0 answers
78 views

Android ADB delete /data/data but keep files in /storage/emulated/0/Android/data/<app name>

I am inquiring on if it is possible to Re-Install a apk using adb and either before launching or while installing delete the files in /data/data but keep the files stored in /storage/emulated/0/...
user avatar
1 vote
0 answers
62 views

Remote connect adb to android device

How can I use adb shell for an android device wireless and remotely? With ssh, wifi, or bluetooth. For example can I connect to my mobile from laptop with bluetooth and use adb shell in laptop for my ...
user avatar
0 votes
0 answers
38 views

Why doesn't Monkey generate the same sequence of events?

I'm running stress tests on Android using Monkey to generate the workload. For the type of analysis I have to do, I need to generate the same sequence of events for each experiment. So, in every ...
user avatar
  • 1
1 vote
0 answers
36 views

Why my wireless debugging device permission keep revoking again and again?

I have enabled wireless debugging on my android phone and connected it with a linux machine. But after few minutes or hours i have to re-enable the wireless debugging to keep connected. When running ...
user avatar
  • 85
2 votes
1 answer
52 views

What is meant by "proportional" and "smearing" in batterystats

I want to analyze battery consumption of an app and ran: > adb shell dumpsys batterystats > dump.txt Within the filedump I found the section I am interested in: Estimated power use (mAh): ...
user avatar
  • 131
0 votes
0 answers
77 views

gateway and dns in android

How to setup gateway and dns on android emulator correctly if my eth1 on emulator is connected to tap on host via: emulator -dns-server 8.8.8.8 -selinux permissive -qemu -device virtio-net-pci,netdev=...
user avatar

1
2 3 4 5
43