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
137 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
25 views

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

I Have 512 GB Android phone with 150GB+ 15k+ photos and videos. Step 1. On my Macbook i used better-adb-sync with USB Cable and debugging on to copy the large amount of files from phone to Macbook's ...
1 vote
0 answers
16 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 ...
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
37 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
21 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
49 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
44 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
29 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
666 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
29 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
26 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
56 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
4k 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
60k 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
867 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
6k 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 ...
0 votes
0 answers
24 views

Android source code for extracting entries from an APK during installation process

I am trying to understand the exact details of how Android extracts the entries from an APK during the installation process. First some background info: The installation may occur either through Play ...
1 vote
1 answer
34 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
5k 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
27 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
18 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
40 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
119 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
38 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
7k 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
35 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
37 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
37k 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
145 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
31 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
30 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
133 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
40 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
65k 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" ...
0 votes
1 answer
2k views

Error with `adb sideload`when trying to install Android 12 in recovery mode

According to Google's "Get Android 12" guide, The easiest way to get Android 12 Beta on a Google Pixel device is to enroll your device in the Android Beta for Pixel program. but also ...
7 votes
3 answers
3k 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 ...
5 votes
1 answer
5k views

Half of touchscreen is unresponsive. How can I make Android only use the top half (rotated by 90 degrees)

So I have a broken LG G2 and a near-empty bank account, so buying a new phone isn't exactly an option right now. The bottom 50% of the screen doesn't respond to touch. Right now I am running ...
-1 votes
1 answer
422 views

full adb backup not creating .ab file for Realme 2 Pro

I am unable to create a full phone backup file of my Realme 2 Pro (model RMX1801) through the ADB. The phone runs stock ColorOS 7 (Android 10). The device is not rooted and I do not want to root it. ...
2 votes
1 answer
1k views

Enable Remote unlock from the Settings via ADB (no root)

I am trying to enable the Setting "Remote unlock" from Samsung (in Settings -> Biometrics and security -> Find My Mobile -> Remote unlock) by using the adb. I could enable other ...
0 votes
0 answers
58 views

Resize screen to avoid dead zone - problem with adb

Asking a question because it seems that nobody has got the same problem after resizing it's screen using adb because of a dead zone on my phone over the status bar. I've basically followed the steps ...

1
2 3 4 5
46