Skip to main content

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
2 votes
1 answer
1k views

Adb backups save no data

I want to reinstall the OS on my OnePlus phone running Android 12. Before I do that I would like to backup some of my apps which don't store their data in the cloud. The phone is not rooted, so I have ...
8 votes
1 answer
6k views

How to get a split apk from a device via adb?

There is a well-known question on how to get APKs from an Android device with adb. However, this fails for split APKs, because there, adb shell pm path com.example.someapp does list you not only one ...
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 ...
9 votes
1 answer
32k views

How to get adb logcat to filter ONLY by specific app (package name)

Would like to know how can I get the adb logcat of ONLY certain app, and all its errors and messages associated. I've tried before with adb logcat -c; adb logcat | grep com.fitbit.FitbitMobile, but ...
5 votes
4 answers
12k views

termux: running termux via adb without *any* direct interaction with the device?

I know how to open the termux app, run (for example) sv up sshd, and then interact with the Android device via ssh, rsync, etc. This is just an example, and the same is also true for any other termux ...
1 vote
2 answers
3k views

LG - Fastboot doesn't recognize my device

I'm trying to get flash a custom recovery on my LG p760, however when I type fastboot devices in the command prompt (while booted into fastboot mode) nothing shows up. adb devices works fine though. I ...
1 vote
0 answers
81 views

Revoke permission of system apps without root

I was wondering if there is any way I could revoke permission of a system app without having root. And if the is a way and I managed to do it are there any side effects that might result in the app ...
5 votes
2 answers
21k views

How to turn on the Wi-Fi hotspot using ADB?

Do you have any idea how can we configure and turn on the wi-fi hotspot using the command line (ADB console)?
3 votes
1 answer
7k views

Change USB connection mode using ADB only (broken screen) [closed]

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 ...
2 votes
0 answers
270 views

Convenient way of checking is Shizuku server is running?

How can you check if Shizuku is running before executing the start command? I am running Shizuku on non rooted device and I noticed it randomly stops sometimes when wireless debugging becomes disabled ...
1 vote
1 answer
154 views

Reset wm setting overrides

A mere ~15 minutes ago I was messing with the "wm" command under android to get Avelog's Mouse Simulator to run better (this worked!). Not knowing these overrides are persistent on these ...
0 votes
0 answers
48 views

Permanently Bricked?

I have a Samsung Galaxy s10e that is stuck in a boot loop. I have tried everything imaginable from a cache reset to a total reinstallation of Samsung flashed through Odin. Now, I want to try to ...
1 vote
2 answers
960 views

How do I determine frida-server version on device?

I did not push and frida-server manually on device but I can connect to rooted device with frida-ps and adb enabled. I have magisk and shamiko and Lsposed. Some post suggests that magisk has its own ...
0 votes
0 answers
87 views

ADB push sync but delete files at destination that don't exist at the origin

I'm sure I did this a few months back, but I'm drawing a complete blank. I'm syncing my music using from my computer to my phone via usb using: adb push --sync local remote That's all fine until I ...
0 votes
0 answers
136 views

How to access photos and videos stored inside Google Photos "Locked Folder" using adb?

I would like to take the backup of all photos and videos stored inside google photo's "Locked folder". I use adb to pull out files from my android. And i would like to seemlessly pull media ...
0 votes
0 answers
129 views

Adb refuses to see my phone, lsusb has no problems

After installing android-tools-adb and android-tools-fastboot from a ppa and adding: SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev", ...
1 vote
2 answers
518 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
0 answers
94 views

All QDL tools won't see hard-bricked moto g8 power when trying blankflash

I am trying to unbrick my hard-bricked Moto G8 Power, but with all the blankflash tools I have used, the only response is: < waiting for device > When running lsusb, the phone shows up as: Bus ...
2 votes
0 answers
57 views

On a not rooted smartphone, how do I format my SD Card to a file system of my choosing?

On a not rooted smartphone, how do I format my SD Card to a file system of my choosing? Note that I have ordered an SD card reader so I can put my SD card into my laptop and try formatting it from ...
3 votes
3 answers
11k views

adb install apk successful on device (or emulator), but not found

I am using command line to install apk on devices and emulators. There is only one device at one time, so I don't have to specify the device's name. adb install file.apk output: Performing Streamed ...
7 votes
2 answers
4k views

Treble: How do I check if it is enabled on my device?

Title says it all By way of background Project Treble was announced with release of Oreo to speed up OS updates by reducing OEM delay . Devices running Oreo out of the box are expected to have it , ...
2 votes
1 answer
257 views

adb daemon started but no device detected

I need help with adb. I'm using rooted Xiaomi Redmi 6A (Android 9). Recently, I flashed the Magisk ADB Root module, which is used to access adb root command (adb push, adb pull). This module utilizes ...
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" ...
24 votes
1 answer
21k views

Does adb backup/restore still work because it says it's deprecated?

I want to reset my phone but want to recover the system data before doing so. I tried to create a backup with adb and tried to restore it on a virtual device to see if it works. So I tried to restore ...
1 vote
2 answers
4k views

Do system apps automatically get root permissions?

If I install the famous App "Tincore Key Mapper" as a system app, will it get the required root permissions without my phone being rooted or damaged? If the answer is positive: How to do ...
12 votes
3 answers
18k views

Getting "java.lang.SecurityException: Shell does not have permission to access user 150" when uninstalling apps from Samsung Secure folder using ADB

I am using Samsung Galaxy A50, Android 11, One UI 3.1. I use Samsung Secure folder. There are many bloatware in it and I could not find a way to uninstall (and disable) them via ADB. Owner profile ...
0 votes
0 answers
141 views

'adb wm size' to part of the screen

I want my android version 5.1 screen to be more accessible The base resolution of my android screen is 720x1280 I did adb shell wm size 720x892 and it gave me this: Now I want to achieve this: How ...
0 votes
1 answer
31 views

unzipping backup of sdcard, wrong folder structure

I have a backup of my old phone in my computer, in a folder called phone_backup it contains the usual folders: Airdroid Alarms Android Audiobooks AuthenticatorPlus Books DCIM Documents doubleTwist ...
0 votes
1 answer
555 views

I can't start my Moto G60 anymore after locking the bootloader

I recently downgraded my Android on Moto G60 (I downloaded ROM from some websites) because my phone screen was sometimes not working which upon locking and unlocking the phone made the screen work ...
0 votes
0 answers
140 views

Can't root ADB Daemon [duplicate]

I have a rooted MediaTek Infinix Hot 5 (X559C). It was Android 7.0 Nougat before. And I don't remember correctly, but I think adb root was working. But after installing custom Android 8.1 Oreo XOS ROM ...
4 votes
1 answer
700 views

Can apps use USB communications without USB debugging?

This question is from a user's perspective, but it's about whether or not developers can accomplish this. I recently installed DroidCam to use my phone as a webcam for my computer. It works either ...
11 votes
2 answers
5k views

How can I access multiple user spaces from adb?

I am running KitKat on a tablet with two users: primary (owner) and secondary. I need to access a file generated by an app of the secondary user. When I plug the tablet into my (Ubuntu) desktop via ...
0 votes
0 answers
114 views

Getting /sbin/sh: parted: not found error

So I am trying to resize my system partition on my Huawei P10 because the ROM I want to use is bigger than the current partition. I pushed gdisk and parted with ADB, but for some reason I can't run it ...
0 votes
0 answers
973 views

Downgrade an apk with different signature, without root

I'm trying to do the following things to an Android app without root access: De-compile the apk with adb d xxx.apk (done) Modify some files in /res/xml/ (done) Re-build the apk with adb b xxx (done) ...
2 votes
2 answers
2k views

Disabling Android swap with ADB `swapoff`

I'm using non-rooted phone, how do I disable swap with ADB using swapoff? It says swapoff: Needs 1 argument (see "swapoff --help") Here is swapoff --help usage: swapoff swapregion Disable ...
1 vote
0 answers
133 views

ADB Explorer keeps crashing when I try to transfer files

I'm using ADB Explorer to transfer large quantities of pictures and videos from my phone to my computer, via USB. I use the "pull" command to bring a batch of 28 files at a time from my ...
0 votes
0 answers
220 views

adb uiautomator get all of the scrollable content

When getting the current UI elements displayed on the screen using adb exec-out uiautomator dump, only the visible elements are included in the xml. I want to get all of the elements that are present ...
1 vote
0 answers
157 views

Is there a way to enable ADB from the phone's terminal

I'm stuck at trying to install LineageOS on my Pixel: unfortunately adb cannot see my phone and I have flashed the bootloader and wiped the previous system. How can I activate USB debugging ...
0 votes
0 answers
84 views

Access Pixel 2 XL "taimen" through ADB (while in the process of installing lineageOS)

I followed this guide until fastboot flash boot boot.img included and OK Then reboot in recovery mode Then "Now tap Factory Reset, then Format data / factory reset" included and OK /!\ BUT ...
20 votes
3 answers
46k views

How to recover a deleted file from /data partition on a rooted phone?

I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need. Is it possible to create an image (.img or something similar) of the /data ...
0 votes
0 answers
242 views

Blackview BV9900 - Cannot Unlock Bootloader, Stuck In Fastboot Mode

I've been trying to follow multiple potential guides. The latest one I've tried is this one. Everything works fine, downloading the Android Platform Tools (adb, fastboot, etc), downloading + updating ...
1 vote
0 answers
213 views

How to remove apps from Samsung phone by pushing file with package names with ADB

Several years ago, a friend of mine was working on a Samsung S8 Active. He was trying to remove most of the apps on it so it was just a basic phone. He had some instructions for a Ponderosa system. He ...
0 votes
1 answer
65 views

Can a adb revoke WRITE_SECURE_SETTINGS command make my device unrecoverable?

I was looking at the permissions that many system apps and some user apps have access to mic and phone. I don't remember granting those. I think that some apps have WRITE_SECURE_SETTINGS permission ...
0 votes
0 answers
2k views

Change adb device name

The Android device identifies itself as "device" for ADB (Android Debug Bridge). $ adb devices List of devices attached 5727aa6d device In my case of the LineageOS 20.0 test build, ...
0 votes
0 answers
22 views

I want to bypass FRP , without paid softwares ,August Security Patch Removed [duplicate]

Information of device : Model :SM-A315F Basedband version : A315FXXS4DWH1 One UI version : 4.1 Android Version : 12 Android Security Patch Level : August ,1,2023 Adb fail when using apps to reset frp ...
1 vote
0 answers
56 views

Pixel 3 Stuck in Fastboot mode with "No valid slot to boot" after Magisk rooting attempt

I was trying to install the factory software image from https://developers.google.com/android/images#blueline on my Pixel 3. I downloaded the image as well as the platform-tools with adb and fastboot. ...
3 votes
1 answer
632 views

Launch settings in work profile

Recently I was issued a device with a work profile installed. (A Samsung Xcover6 Pro, if that helps). During initial setup, I was prompted to configure some of the extra hardware buttons inside the ...
67 votes
7 answers
90k views

Is there a minimal installation of ADB?

When it comes to troubleshooting, I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data, Full Backup of non-...
1 vote
0 answers
1k views

INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.google.ar.core attempting to redeclare permission

After the deletion of Google Play Services for AR I can't install it anymore. Google Play Store shows an error when I'm trying to install: Can't install Google Play Services for AR I have checked ...
0 votes
1 answer
5k views

How to see Android OS System log file? [duplicate]

After leaving my Samsung Galaxy A-30 phone (with Android 9) for a few hours unbelievably I understood all of my internal storage is cleaned! I don't remember that I have installed any suspicious app ...

1 2
3
4 5
48