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
11 views

Anbox doesn't have a WiFi in settings

I installed an Anbox to test a few features in a test app (the app needs a WiFi connection) but I found out that I don't have WiFi in the settings. Don't know what to do. I installed an Anbox without ...
0 votes
0 answers
24 views

Problems with wifi and mobile data after adb

This is problem I faced with: I was need to test a few features in a test app but my emulator had troubles with wifi connection so I decided to upload the app on my own cell phone through adb install &...
1 vote
1 answer
5k views

Install TWRP on Samsung Note 10.1

I am following this guide from Cyanogenmods to install TWRP on a Samsung Note 10.1 with Android 5.1.1 installed. I have activated USB Debugging in Developer options and connected the tablet to my ...
1 vote
0 answers
221 views

How do I get fastboot/adb to find my device after a reboot?

I am trying to unlock the bootloader of my Samsung Galaxy J7 Sky Pro using this guide. If I do > adb start-server > adb devices I get my device as connected, however when I then reboot into the ...
5 votes
2 answers
359 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 &...
12 votes
2 answers
12k views

How to find app based on package name?

I've installed a malicious app that is posting ads over my notification bar, but can't find it. I know the java package name for it: com.letang.game103.en using the command: adb shell dumpsys ...
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 ...
4 votes
3 answers
12k views

adb device always unauthorized

I'm running Ubuntu 16.04 adb version Android Debug Bridge version 1.0.32 However, when I plug in my devices for testing via ADB, I always get an unauthorized error. adb devices List of devices ...
1 vote
0 answers
48 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 ...
1 vote
0 answers
68 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 ...
0 votes
0 answers
23 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 ...
2 votes
0 answers
63 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/...
2 votes
2 answers
170 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 ...
1 vote
0 answers
18 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? ...
0 votes
0 answers
15 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 ...
4 votes
2 answers
7k views

File "has unexpected contents" error when sideloading Android 5.0

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
1 answer
143 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 ...
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 ...
0 votes
0 answers
23 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 ...
0 votes
2 answers
424 views

Phone is plugged into computer via USB, charging but not entering adb mode

I am on Linux, so this is not a driver problem. I have a Huawei Union, USB Debugging is enabled in developer options, and I have previously been able to use ADB when the device is plugged in via USB. ...
0 votes
1 answer
156 views

ADB ls doesn't sort by name

Why ls in adb shell doesn't sort by name? Here is what I am getting in adb shell: AccuWeather apkfiles.com.apk.tar Amazon Shopping apkfiles.com.apk.tar GO Weather EX V5 apkfiles.com.apk.tar ...
0 votes
1 answer
346 views

How to connect 2 smartphones via WiFi Direct ADB to get the 1st to control applications run on the 2nd?

How to connect 2 smartphones via USB to get the 1st to control applications running on the 2nd? I don't mean the connection to be limited to screen mirroring or off-lione file transfer only. I need ...
0 votes
1 answer
37 views

Can android studio emulator run without `adb`?

I want to run android-studio emulator without having an adb. On running the emulator It checks for the adb.exe using ANDROID_SDK_ROOT environment variable and exits if there is no valid one(valid one =...
0 votes
1 answer
48 views

adb glob expansion

I'd like to be able to issue: adb pull storage/self/primary/Documents/*20220204* . Right now doing that gives: zsh: no matches found: storage/self/primary/Documents/*20220204*
6 votes
2 answers
1k 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 ...
2 votes
0 answers
2k views

What does "Enable OEM Unlock" do, and how can I do it through a root shell?

Looking at this Samsung Galaxy A8 question, I was looking to do something on my Nexus 6p. I would like to enable OEM unlocking, the developer setting. Due to the problems my device is experiencing, ...
0 votes
0 answers
29 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 ...
1 vote
1 answer
123 views

Can I use apps like LADB WiFi ADB or Wi-Fi Debugging without needing a USB cable ever during the process?

I have an old Android tablet that had been rooted but my phone hasn't been rooted....yet. What I need to understand is if there's a way to use my tablet to perform edits on my phone without EVER ...
1 vote
1 answer
322 views

How to write to an Android system file?

Why is writing to /sys/class/power_supply/battery/status having no effect? Accessed manually via adb shell as root, eg echo "Discharging" > /sys/class/power_supply/battery/status does not ...
1 vote
0 answers
37 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 ...
4 votes
3 answers
12k views

"device unauthorized" message when trying to use ADB, but can't boot device to confirm authorization

I managed to get stuck in a boot loop after installing the Chainfire 3D driver on a Samsung Galaxy Tab 3. I can boot into the recovery mode (and download mode) but when I try to establish a connection ...
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) ...
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 ...
1 vote
4 answers
2k views

Cannot restore an adb backup due to a tarball with a broken header

I have two devices that have Android 5.0.2 and 6.0.1 respectively. I would like to migrate some non-cloud apps from the device with the older Android version to the new one using adb. The backing up ...
1 vote
0 answers
40 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 ...
1 vote
0 answers
105 views

Stream photo/video to Android as camera on WSA

I am working with Windows Subsystem for Android (WSA) which does support ADB and should support any solution for Android. The problem is I'm trying to set up Signal, but it needs to scan a QR code, ...
1 vote
1 answer
668 views

Use a different adbkey

The adb command uses ~/.android/adbkey by default. Is there any way to specify a different key that should be used, either on a per device or per adb instance basis? The functionality I'm looking ...
1 vote
1 answer
1k views

What does `adb shell dpm set-device-owner` do?

So I have been looking a lot into how I can save some battery life on my Samsung Galaxy S8+ (not that it is bad by any means) and so I've been trying and looking at a lot of different apps. Among ...
1 vote
1 answer
88 views

AOSP x86 adb secure

I'm trying to build a custom ROM with secure access via adb. My goal is to secure the android image so that it can only be accessed with a certain adb RSA key pair. When I build AOSP with 'user' ...
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 ...
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 ...
1 vote
1 answer
152 views

are android 10 adb commands gimp'd?

adb shell settings put secure sysui_nav_bar "\"key(82:file:///storage/emulated/0/zzz/menu.png),key(84:file:///storage/emulated/0/zzz/kb.png),back;home;recent;menu_ime;key(120:file:///storage/...
1 vote
1 answer
69 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
1 vote
0 answers
33 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 ...
8 votes
2 answers
21k views

adb listing all forwarded ports

I have forwarded a machine port to an emulator using adb forward tcp:1234 tcp:8080 I want to see which ports are currently being forwarded to avoid any conflicts. How do I do that?
0 votes
1 answer
62 views

How to send BTC from my coinbase account using shell script in android only

Please i am thinking of automating BTC send from my coinbase account to another coinbase user via email. I read coinbase API documentations and the only thing that is close to what I need is the ...
0 votes
0 answers
63 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,...
1 vote
2 answers
8k views

How to update samsung galaxy tab p1000 i.e. 2.2 to 2.3. using ADB?

I am updating the OS of my Samsung Galaxy tab p1000 (i.e. 2.2) to 2.3.6 using adb. I am using the steps below: Check whether device is connected or not using ADB. C:\Users\PC>adb devices ...
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....

1
2 3 4 5
43