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
1 answer
23 views

Use adb to remove adoptable storage

I followed these steps (in brief, enable debugging and use adb to enable storage and format sd card) to enable adoptable storage on a Samsung A01 to make the phone more usable (device is not rooted). ...
user avatar
  • 11
1 vote
1 answer
29 views

Force boot to bootloader (device always boots to recovery)

I was trying to flash TWRP onto my Android tablet (Lenovo TB-X306F), but something went wrong and it failed. Now, every time I boot, no matter what I do (sending adb commands or pressing physical ...
user avatar
  • 31
1 vote
0 answers
11 views

How to enable ethernet tethering via shell (android 12) [for a start-up script]

I've read numerous threads on doing it with USB Tethering, and I feel confident I could do that. However, I need it for ethernet. I can use Magisk + shell script at /data/adb/service.d. Any other ...
user avatar
  • 11
2 votes
0 answers
21 views

issues sending SMS over ADB on a 'screenless' android system

I recently picked up a android based AP/WWAN device - basically one of these. It has a Qualcomm Snapdragon 410 (MSM8916) and android 4.4.4 (as per adb shell getprop ro.product.board and adb shell ...
user avatar
0 votes
1 answer
23 views

start apk from console -> get process id

I have some logcat outputs saved as txt file. I need to parse them looking only for entries that correspond to my app. However, it always takes me quite some time to find the exact process ID of my in ...
user avatar
0 votes
0 answers
14 views

If an android device's bootloader has been unlocked before and the bootloader tampered with, can you use adb to check if it was unlocked?

If an android device's bootloader has been unlocked before and the bootloader has been modified, does using adb in a Linux terminal show you that the bootloader was unlocked before by giving the ...
user avatar
0 votes
0 answers
21 views

Accessing An Android Device With Broken Screen Via ADB and Unauthorized Machine in 2022

I've done a lot of experimentation on this, but can't seem to get anywhere. I'm looking for guidance on recovering data from my broken Android phone(s). It seems like this is going to require some ...
user avatar
  • 41
0 votes
0 answers
13 views

Bootloader Is Unlocked But Yet Recovery Is Not Flashing (Fastboot Failed error)

I Unlocked My Bootloader And It Is Showing Me In Red Color (Bootloader:Unlocked) But When I Tried To Flash Recovery It Failed. recovery is device specific so no problem in recovery.
user avatar
1 vote
0 answers
26 views

copy play services from one device to another

I have an Android device (fire tablet) without playstore/playservices. By googling, I found tons of howtos to download and install the 4 necessary apk packages. Since I have several "offcial ...
user avatar
  • 111
0 votes
0 answers
22 views

Replace default preinstalled Google apps safely

I have a Redmi 9C with Android 10, it came with several pre-installed apps from Google and Redmi, I used ADB to un-installed some apps that I thought was safe, but for some reason, some of those apps ...
user avatar
0 votes
0 answers
49 views

The calllog.db file remains the same even after changing

As you know on android call history in /data/data/com.android.providers.contacts/databases/calllog.db path as sqlite file. I change this file with adb push command then I will check on Dialer Call ...
user avatar
  • 1
4 votes
1 answer
565 views

adb install: downloaded apkm file from ApkMirror.com doesn't end with .apk

I'm attempting to install, via adb, Chrome Beta 104.0.5112.55 downloaded from APKMirror. The filename is com.chrome.beta_104.0.5112.55-511205534_5lang_7feat_fdd8ce962abf141ecf575852ba260e4f_apkmirror....
user avatar
0 votes
1 answer
23 views

Clear Data of Package for Single User

I am trying to clear the data for a few apps on a work profile without clearing the data on the main user account for my android phone. What I'm trying for example is : pm clear com.Microsoft.teams ...
user avatar
0 votes
0 answers
12 views

RRO can't be enabled [migrated]

I was following some tutorials on how to create custom RRO APKs, but I am not able to enable mine. adb shell cmd overlay list ... com.example.mytarget --- com.example.myoverlay Google said that --- ...
user avatar
2 votes
0 answers
53 views

How to enable/disable VPN via adb/termux/terminal?

I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. ...
user avatar
  • 247
1 vote
0 answers
33 views

How to check if Status bar is expanded?

I would like to determine, using ADB, whether Status bar is expanded/collapsed. I'm just looking for a way to check whether it's expanded or not, not what caused it to expand/collapse. I know that ...
user avatar
  • 11
0 votes
0 answers
33 views

How can I grant root through ADB root? [duplicate]

I'm using LineageOS. I can run adb root and then ADB shell, and I have root access to the device. I'm trying to use Neo Backup which requires root. Is there a method, with root ADB access, to grant ...
user avatar
  • 3,805
1 vote
1 answer
66 views

Backup and restore app data via adb

I have a app installed on my old phone with a lot of settings and data that I want to transfer to my new phone. So I tried using adb backup: $ sudo adb backup -f org.secuso.privacyfriendlynotes.ab -...
user avatar
  • 247
0 votes
0 answers
55 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'... ...
user avatar
0 votes
0 answers
27 views

How can I rebuild /data/system/packages.xml?

Today, I tried to manually modify the /data/system/packages.xml file to completely uninstall an app, but I accidentally deleted the whole file, and now the phone won't boot up. I tried to re-flash the ...
user avatar
0 votes
0 answers
26 views

How can I use adb or other utilities to query the camera list that my rom supports?

I'm using LinageOS with MicroG. Is there a method to get the listing of enabled/supported cameras by the rom/firmware? I am using Android 11.
user avatar
  • 3,805
0 votes
0 answers
34 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 ...
user avatar
0 votes
0 answers
44 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 &...
user avatar
5 votes
2 answers
389 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
  • 197
0 votes
0 answers
27 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
89 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
58 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
108 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
1 vote
0 answers
25 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
36 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
28 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
76 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
0 votes
0 answers
25 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
1 vote
0 answers
37 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
207 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
0 votes
0 answers
42 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
68 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
52 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
93 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
29 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
28 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
244 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
65 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
80 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
29 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
320 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
51 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
74 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
  • 101
0 votes
0 answers
21 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
24 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
2 3 4 5
44