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

Cannot connect Samsung device in fastboot [duplicate]

I am attempting to use fastboot on an old Samsung Galaxy A01. It is a learning exercise for unlocking. Based on this, the device should support using fastboot. I got it off a Samsung forum. I am ...
0 votes
0 answers
35 views

adb fails with exit code 15

I run a console app (built with NDK) on an Android phone with the following command from my Windows machine: adb push MyApp /data/local/tmp adb shell "cd /data/local/tmp && chmod a+x ...
22 votes
3 answers
34k views

Obtain package name AND common name of apps via ADB

I'm looking for a possibility to retrieve both, the package names and the common names of apps installed on an Android device via ADB – or at least to retrieve the common name if the package name is ...
1 vote
1 answer
85 views

How to connect mouse to Android phone via ADB?

I want to play an Android game on my PC but since my phone can play it better, I've hooked it up to my PC using USB with scrcpy and a bluetooth keyboard, however unfortunately, I don't have a ...
2 votes
1 answer
4k views

Missing "Manage root accesses" under developer options in LineageOS 16

My phone is Xiaomi Mi 5s Plus 6GB/128GB. After a clean installation (flashed MIUI 9.6.27 first) of official LineageOS 16.0 Sep 19, 2019, I can't find "Manage root accesses" under developer ...
0 votes
1 answer
4k views

Device doesn't show up in fastboot [OnePlus Nord]

I installed: the latest platform tools from google the universal adb driver the OnePlus USB driver USB debugging & OEM unlock are on. With the phone turned on everything runs fine. I can copy ...
0 votes
1 answer
105 views

adb-sync along with rsync for fastest way to backup gigabytes of media & photos file to HDD disk regularly

I have a 512GB Android phone with 150GB+ 15k+ photos and videos. Step 1. On my Macbook, I used better-adb-sync with a USB cable and debugging enabled to copy a large amount of files from my phone to ...
3 votes
1 answer
2k views

Editing adb backup files

I want to edit the contents of an .adb backup file. I found a command to extract the contents: dd if=mybackup.adb bs=24 skip=1 | zlib-flate -uncompress | tar xf - I edited the extracted files as ...
2 votes
1 answer
4k views

How to monitor API calls made by an Android App? [closed]

I am using an Android Virtual Device and I am running the Monkey Runner script to generate user input. Now, I have to see the API calls made by that app. Is there any tool or script that will help me? ...
0 votes
0 answers
712 views

How to boot an android TV box from a usb drive containing armbian image

So I have adb access to my android TV box, the device is rooted. I want to install armbian onto emmc. Both official and community tutorial tells me to flash the armbian img onto a usb drive and boot ...
0 votes
1 answer
1k views

Silence or disable Lenovo user experience spyware notifications without root

I am trying to disable "Lenovo User Experience" notification that pops up every ~4h. I linked some info below on the specific issue which is also probably illegal in the EU, but obviously ...
2 votes
1 answer
108 views

LG G Pad F 8.0 (UK495) Android 6.0: Cannot Access Bootloader or Recovery

I have an older LG G Pad F 8.0 (UK495). The tablet originally came with Android 5.1 but at some point received an official upgrade to 6.0. My ultimate goal is to hopefully root the device & ...
0 votes
0 answers
102 views

scrcpy freezes after few seconds when connecting a samsung S23 Ultra

I'm trying to use scrcpy on Ubuntu 22.04 with a Samsung S22 Ultra connected wirelessly via ADB. However, when I run the command from the PC's terminal, the program starts, and everything works ...
0 votes
0 answers
163 views

How to list devices in ADB through SSH?

How can I list devices in ADB through SSH, when it works fine locally? On local, it shows up as device. and on cloud server, it shows up as offline. Setup ┌─────────┐ SSH through ...
2 votes
1 answer
255 views

Connect ADB through SSH

How can I connect ADB on remote server through SSH to a local, non-rooted Android devices without installing anything on the middleman with root? This is what I want to achieve: ┌─────────┐ ...
0 votes
0 answers
42 views

Backup.ab - Java NumberFormatException Error

I got an ab file with adb from my phone's notes folder. Which I can not access without root. I am trying to convert it to the tar file but cmd gives me this error in the picture. My command was ; ...
0 votes
2 answers
828 views

adb fails to authenticate but still connects

I'm connecting to a phone on OpenSTF via adb. Running $ adb connect <url>:<port_no> produces the message failed to authenticate to <url>:<port_no> However, adb devices shows ...
1 vote
1 answer
37 views

Adb push error: closed

I want to move the firmware to the phone’s memory in order to install it on the device via TWRP, since the computer does not have enough power to install the firmware in time, there is a problem with ...
0 votes
0 answers
41 views

Force enable encryption for portable SD card

There should be an option to encrypt SD card (formatted as portable) in the settings, but some manufacturers disable it while some (e.g. Samsung) have it enabled. If that is a built-in Android feature ...
0 votes
1 answer
204 views

How to use `adb push` after mounting /system R/W without losing R/W permissions to install app as /system/apps?

I'm using a rooted Revvl 6 5G - TMAF025G_0.05.29 - MT6833 - Android 12. Without a recovery.img, I rooted using Magisk_Patched-boot_a.img. After this, I used the RO2RW module to aid in making the ...
4 votes
1 answer
5k 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 -...
19 votes
7 answers
63k views

How to reinstall an uninstalled system app through ADB?

My phone is an unrooted Samsung Galaxy S7 Edge running Oreo 8.0. Yesterday when removing bloatware from my phone, I accidentally uninstalled a system app using the adb command: pm uninstall -k --user ...
1 vote
1 answer
12k views

Best Practise for deploying a 'clone' image across 200 android tablets (Samsung GT-P7510)

My objective is to be able to create a master 'image' of an android tablet, and then duplicate that image across about 200 identical tablets to streamline the administration of a university's pool of ...
2 votes
0 answers
910 views

Stuck on “Downloading… Do not turn off target!” when trying to boot via adb on Samsung Tab

I wish to flash a custom ROM on my Samsung Galaxy Tab A. To do this, I downloaded ADB and TWRP-3.2.3-0. when I run the command adb reboot bootloader, my tab gets stuck on downloading... do not turn ...
0 votes
1 answer
4k views

`adb shell` returns with error: closed

I somehow bricked my OnePlus One phone badly. It only loads directly to the recovery. Pressing vol up + power button or rebooting it with adb reboot bootloader doesn't get me to the bootloader. I ...
2 votes
2 answers
4k views

Can WiFi and Bluetooth be enabled through adb using Fire TV Sticks USB connection?

Think I've bricked my first-gen Amazon Fire TV Stick. It's had a good run though, installed a bunch of different apps and one was a task optimizer. It has disabled the Wi-Fi and Bluetooth on the ...
5 votes
1 answer
7k views

Access encrypted /data Partition over ADB and recovery (TWRP, LineageOS 16, Redmi Note 4)

I have a Redmi Note 4 (mido) Android phone with a broken screen: the screen lights up, but otherwise it stays entirely "black". I already replaced the screen, but with no luck - the cause of the error ...
1 vote
1 answer
90 views

Connect Samsung tablet to ethernet and also to PC/laptop?

I have a Samsung Galaxy Tab Active Pro (SM-T545) tablet. I'd like to connect it to the ethernet using an adapter having an RJ45 port. I would also like to connect the tablet to my laptop (in this case ...
3 votes
1 answer
6k views

Change USB connection mode using ADB only (broken screen)

I am trying to use Vysor to control my Moto G5 which has a broken screen (completely black). It appears to be working otherwise (rings when called etc). However, I cannot connect to my PC using USB ...
0 votes
0 answers
134 views

Fastboot does not see device, but fastbootd does

My device: Tecno Camon 19 (cl6n) I need to unlock bootloader, adb see my phone correctly, fastbootd too. But when I do adb reboot bootloader neither the phone nor the PC can see each other. Phone says ...
0 votes
0 answers
35 views

Accept allow contact sync and messaging via command line

I would like to know if there is a way to "Allow Contact Sync" and "Allow access to Messages" on Android phone using command line. When the notification is received on my phone, it ...
0 votes
0 answers
105 views

Howto get ONLY uninstalled packages list with associated apk (if any)?

(rooted galaxy j5 7.1.1) As pm list packages -u shows ALL packages including uninstalled (at least on my system), what should be the right command to show ONLY uninstalled apps? Or is this an ...
0 votes
1 answer
550 views

ADB command am start - open settings sub-page

On a TC52 ZEBRA, I need the ADB command (am start) to change the settings. With am start -n com.android.settings/.Settings command my settings window opens. But if I want to have a sub-page access (...
0 votes
1 answer
67 views

Samsung Galaxy Tab 2 running Lineage OS not rebooting properly after `adb reboot` unless USB disconnect

I am currently facing an issue with my Samsung Galaxy Tab 2 tablet running Lineage OS. Whenever I attempt to reboot the device using the adb reboot command through adb, it enters a strange hanging ...
4 votes
2 answers
8k views

"remount: not found" error

I want to install an application as a system application. To do so, I must remount the system partition RW, to do so I run the command adb shell remount rw in a terminal, but I get the error /system/...
1 vote
0 answers
53 views

Find `MainActivity` for `com.google.android.dialer`

I have a Xiaomi POCO X5 5G, running MIUI Global 14.0.4. There is a problem where (in the Global ROM) the Google Phone app (as a system app) seems to be killed, even with MIUI Battery Optimization ...
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 ...
3 votes
3 answers
3k views

How can I `adb pull` a large file when the USB connection breaks continuously?

I want to transfer a large file with adb pull, but my USB connection disconnects all the time, interrupting the transfer. How can I make this work?
1 vote
1 answer
44 views

2018 Honor 10 Lite/HRY-AL00, DOESN'T CHARGE USB data works fine, ADB works fine

Not sure how the brand of the phone really helps, but from what I gathered: Phone doesn't have a fast charge protocol. Very basic micro-B USB. Supports any 5V-1A USB charger. 3400mAh battery. The OS ...
6 votes
2 answers
39k views

adb pull - copy whole folder to computer

How do I copy a folder from my android device to a certain folder of my computer? if I use this command: adb pull efs It copies the contents of the efs folder to my computers root directory. I want ...
3 votes
1 answer
2k views

What is com.mgoogle.android.gms?

While checking the installed packages in my device through adb. I found two packages, com.google.android.gms and com.mgoogle.android.gms. I know the former is related to Google Play Serivces. What is ...
3 votes
2 answers
175 views

How to get the phone production date via ADB?

How can I get programmatically when the phone was manufactured? Is there any framework, instrumentation or toolset like Windows WMIC that allows unequivocally get hardware parameters of the device? I ...
4 votes
1 answer
3k 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 ...
2 votes
2 answers
6k views

`adb reboot -p` usually reboots instead of power-down which it is supposed to

When writing: adb reboot -p I expect the unit to power down indefinitely. Instead, it just reboots automatically, the same as having written: adb reboot only. Why is that? What should I write?
0 votes
0 answers
64 views

Should one `geo location broadcast` persist mock location or should it be sent several times?

I connected my android 14 (non jail broken) phone to my laptop. Enabled usb debugging, and ran these commands. `~/Android/Sdk/platform-tools$ ./adb -s 2C051FDH3002LA shell appops set com.google....
0 votes
0 answers
43 views

getevent not reporting taps

I'm trying to automate some tests on a Pixel 5a (Android 13). To do so, I need to tap on several buttons. I've been running adb shell uiautomator dump to get the pixel locations of the buttons. ...
1 vote
1 answer
394 views

ADB | How do I Authorise Amazon FireTV Stick via. USB? - to run shell script on boot

Goal: Follow this tutorial, to run a shell script on boot. Despite following the tutorial and trying various solutions, I am still unable to authorise the ADB connection. I'd greatly appreciate any ...
0 votes
0 answers
53 views

Oneplus One - unlock pattern and/or retrieve data

I have a OnePlus One that went dead 7 years ago with valuable photos (for me) on it. Had it repaired recently, but can't remember the pattern I used back then... Here is what I found out about the ...
5 votes
4 answers
66k views

Can't use `adb shell` in recovery mode

I have a Chinese tablet named Quest. I have accidentally repeated the pattern lock more than 5 times. Now I have also forgotten the email address. So for a factory reset of my tablet, I simply booted ...
1 vote
1 answer
4k views

Some app is causing bootloop

It happened when Google Play was automatically updating apps. I guess, something went wrong and the phone suddenly restarted and was not able to turn on again. It always gets stuck on "Starting apps" ...

1
2
3 4 5
47