Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
54 views

Would it be theoretically possible to do a block-level backup of /dev/media without root?

I have nothing against root except eFUSE. Whose ever idea eFUSE was . . . As far as I understand: Because of amateur users and clueless minimalists who don't know how to utilise tools that are ...
0
votes
0answers
20 views

pm clear not logout apps like twitter

I'm doing: pm clear com.twitter.android And expecting to be log out from twitter app. But it is not working. I also tried to clear every app package with pm list packages -f, in case twitter store ...
0
votes
1answer
67 views

Revoking Bluetooth permission from all apps?

I noticed that my phone silently enables bluetooth when screen turns off. When phones remains inactive for few minutes and I click unlock button I can see bluetooth indicator showing up for around 1-2 ...
0
votes
0answers
45 views

adb shell push image to recent or downloads folders not on sdcard

I want to push images to one of this folders: with shell command. But file only appears on sdcard folder My last tries was: adb push C:\Users\User\Pictures\girl.jpg /data/media/0/Pictures/ adb push ...
0
votes
0answers
23 views

Issue trying to flash lineage OS on Samsung s6 through heimdall on terminal - mac

Trying to flash lineage OS to my Samsung galaxy s6 but for some reason the Mac cannot detect my device.. The only way I can cannot it to transfer data files through USB is by enabling USB debugging in ...
1
vote
2answers
78 views

Redmi 3 stuck on bootloop with no recovery mode access

I have a Redmi 3 MIUI7 that I recently flashed with MIUI9 using TWRP. Right after flashing, I tried to boot it but it stuck on a bootloop. Since I haven't booted into the ROM and can't do so because ...
0
votes
0answers
47 views

Phantom Vibration from com.android.providers.downloads

I've found the source of roughly 10x phantom vibrations (e.g. vibrations without notification or clear cause) daily. startTime: 9 Apr 2019, 15:20:33, effect: Waveform{mTimings=[0, 100, 150, 100], ...
1
vote
1answer
75 views

Forgot password on Samsung Galaxy S7 Edge, trying to access for Google Authenticator

I never wrote my password down for my old S7 Edge and managed to forget it. Overthinking the security and privacy, I also never signed up for Samsung's service and Google's Find My Phone only ...
0
votes
0answers
22 views

Forgot password + broken home button

a friend of mine forgot her Unlock Pattern of her Galaxy A5 (2015). Apperantly the latest stock android version that runs on it is Marshmallow. My idea was to simply put it in recovery to just wipe ...
0
votes
1answer
30 views

How to access PC disk from adb shell?

My emulator can't do adb root. Anyway, I can do adb shell and then do su and get root to do my things. But how to copy some file from my PC to connected device using adb shell? Where can I access my ...
0
votes
1answer
63 views

Copy entire phone to the same device?

I bought second Asus ZS570KL as backup phone since my old one starts to do... weird things. I created full backup using: ./adb backup -apk -all -obb -shared -v -f /backups/phone8.ab And later ...
-1
votes
1answer
132 views

Android Studios Adb server problems

I formatted the desktop and i'm try to install the Android Studios version 3.2.1 installation setup was completed but when try to run the project .It show error log like this Unable to detect adb ...
2
votes
1answer
121 views

What does the charge counter in battery indicates?

I have used the adb shell dumpsys battery command on my phone. It delivers the following results (posted on the image). Most of the terms, I can understand but not the charge counter. What does it ...
0
votes
0answers
38 views

Boot loop after flashing recovery roms to motorola g4

I recently tried to upgrade a Motorola G4 from android 6 to android 8 and that failed (going into a bootloop) so after it failed I tried flashing the recovery rom images (got the roms of the motorola ...
0
votes
0answers
80 views

Copy files from Linux to Android without any OS

I'm trying to install lineage 15.1 on my old Sony Xperia V LT25i, which has had a couple of other OS's since the original. When I started the process I could not access the internal memory at all, ...
0
votes
1answer
58 views

How to create a copy of a file immediately when it's created? [duplicate]

I have an Android app that will create a file in /data/ and immediately delete it. I want to know how can I catch this file or create a copy or even disable user permissions to delete a file? I have ...
0
votes
1answer
196 views

Unable to modify file permissions.xml, get error Read-only file system

I have a rooted Galaxy S5 SM-G900V, lineage_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify. I need to modify the platform.xml file to ...
0
votes
0answers
25 views

Error when simulating incoming calls on my (real) Android phone (rooted) [duplicate]

I try to simulate an incoming call on my Android device connected to my computer via adb by: D:\adb>adb shell am start -a com.android.server.telecom.testapps.CallServiceNotifier....
1
vote
0answers
31 views

Boot Loop with old CyanogenMod: Unable to stat various files

My old One Plus One suddenly refuses to boot without any changes from my side. OS is CyanogenMod 11. The device is rooted and there is TWRP 2.8.0.1 installed on it and debugging is active. The ...
0
votes
0answers
37 views

ADB Access in TWRP recovery mode - samsung A3, Linux

I can access my Samsung A3 (a3xelte) in "normal" mode in Linux using adb. Today I installed the TWRP 3.2.3-0 recovery mode and entered it. According to this DroidWiki article(the article is in German),...
1
vote
1answer
30 views

I Have an LG P769. I am trying to root it and it is not working

Forewarning: I am not exactly an expert on this type of thing. I have tried several things, but the problem seems to be that I cannot get into the bootloader via "adb reboot bootloader" or by ...
1
vote
0answers
47 views

adb shell input text ignore characters

In android emulator adb shell I send the following command: input text \!\$\#\?\%shelllllllooo And result: All same characters(exclude special like !?#$) been ignored.
0
votes
1answer
107 views

How can run native executables compiled for ARM on unrooted Android devices? [duplicate]

Following this tutorial I have compiled a Hello World! ARM binary from C source using gcc. I want to run this program on my unrooted Android phone but I can't figure out an easy way to do it. What I'...
0
votes
0answers
72 views

Properly Unroot Lineage OS 16

As you all well may be aware, I don't mean 'all', but that is if you have ever been on Lineage OS and you have ever tried using an app that doesn't run on rooted phones, Lineage is kind of by default ...
0
votes
0answers
66 views

Export WhatsApp-Chat via Bluetooth (ADB-Command-Question)

I try to use the ADB-Command to automate WhatsApp-Chat-Export via Bluetooth! I work with the Keyevent DPad and Keyevent Menu. At some point I have to choose Bluetooth from a selection (Bluetooth, ...
1
vote
1answer
79 views

Can I change which SIM a phone is using for its LTE interface using ADB?

I have a set of phones that have dual SIM cards. What I would like to do is have them connected to one network using SIM card 1, run some test, disconnect from the network, then have them connect to a ...
3
votes
1answer
396 views

How to set up a socks5 with Android cli?

I found articles how to set up a http-proxy. But can't find any info, how to set up a socks5 proxy. My goal is to route all traffic from apps, etc throught this proxy. Is this possible? How then ...
0
votes
0answers
101 views

Samsung note9 adb over USB keeps disconnecting

I have my Samsung Note9 (updated, on latest Android 9) connected via USB on Ubuntu Linux, latest platform-tools_r28.0.1. When I run adb shell, it works perfectly. The problem is, the device ...
1
vote
0answers
140 views

OEM Unlocking Greyed out after Android 8.1 Update. (Lenovo Tab4 10)

I purchased a Lenovo Tab 4 10, I enabled OEM Unlocking, Unlocked the Bootloader to root my tablet, and when I booted back into the Android OS it had an update, so I updated it, rebooted, re-enabled ...
0
votes
1answer
40 views

Is possible to read the memory from my phone (S6) in recovery mode?

I have a problem with my Samsung S6, it restart continuously in a loop, I can see the home screen and interact with it but only for 5 or 10 seconds before it boot again. I think the only solution ...
0
votes
0answers
20 views

Remove all Google-related software from Android? [duplicate]

If I were to buy an Android phone and unlock the bootloader and install my own ROM, to what extent could I produce a ROM that removes all access to Google servers and functionality? For instance I ...
0
votes
0answers
42 views

Prevent app from seeing installed apps

Is there any way, through settings or ADB, to prevent an app (that I installed) from knowing what other apps are installed?
1
vote
0answers
70 views

Cannot reach fastboot from Recovery Mode

Beforehand: Sorry for asking. I was sure this wasn't duplicate. I have made myself a soft brick. The story: used kingoroot or something similar, then was too much in a rush hitting the "yes, please, ...
0
votes
1answer
332 views

ADB - Can't enable USB Debugging, phone stuck on boot screen

My phone stopped working and stays stuck on the boot screen. I've tried wiping both cache partition and data reset, still nothing. So I decided to flash a new ROM, but I can't connect through ADB as ...
0
votes
0answers
155 views

Android sendevent command not work until finger touch once

I want to use sendevent command to simulate touch event, I followed this link, and it works. Use getevent to record, then use sendevent to repeat them, code like below, it can tap position 540 1802. ...
0
votes
1answer
202 views

Send fake sensor value to an Android real device

Is possible to simulate an event on a Android real device? More precisely, I want to test an application which does something if a particular temperature value is detected. Is there an adb command, ...
0
votes
0answers
531 views

Reinstall app removed via ADB

I removed 'MusicFX' via adb shell pm uninstall --user 0 'musicfx package' And now I'm having issue with playing Bluetooth media audio, so I thought maybe it's that Can it be reinstall, maybe an ...
1
vote
2answers
841 views

How to recover a deleted file from /data partition?

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

ADB Shell command not applied - “am set-standby-bucket” - Android 9

Currently trying to observe the behaviour of my app in different adaptive battery buckets on Android Pie. I was testing it with the command : adb shell am set-standby-bucket <packagename> <...
2
votes
1answer
178 views

Why Package Manger (pm) gives error “java.lang.IllegalArgumentException: Unknown permission:” in shell script?

I created a .sh script which sets app permissions on android devices. If I push the script on /sdcard and run it through adb shell with command sh ./test.sh. The following error occurs on each ...
0
votes
1answer
26 views

Is there a way to pass keyboard or joystick input to a phone through a computer?

I use my phone to emulate old games, but using the touch screen for input hurts my fingers and gives me cramps. Is there a way for me to connect my phone to a computer then pass input from a ...
1
vote
0answers
1k views

ADB backup and restore app data between device and emulator?

** = Edited on 03/31/2018 * = Edited on 03/25/2018 I have an application for which I'd like to transfer the app data from my physical device to an emulator on my PC. *The data consists of a single ....
1
vote
2answers
112 views

Lengthy sleep command not working in script

I've written a su.d script to periodically (every 4 hours) back up data from an app using a looped sleep command: #!/system/bin/sh ( # Wait for boot to complete until [ "$(getprop sys....
1
vote
1answer
93 views

Accessing device with broken touch sensor and LCD using adb

After a drop, my phone's (Galaxy J3 6v) screen (both LCD and touch sensor) are completely unresponsive. I believe I have USB debugging turned on, but cannot be sure. I have a Linux machine with ...
0
votes
1answer
182 views

Can adb sideload be used to flash/install ZIPs using 'stock' recovery/fastboot?

TWRP isn't supported for my WE_T1 Android Nougat. Can I still use the adb sideload function to install ZIPs using stock fastboot?
0
votes
1answer
243 views

How to Extract boot.img from Sharp Z3 Fs8009?

I'd like to extract the boot.img from this device in order to root it with Magisk. Is it possible with adb commands? Or another way maybe? The firmware on it is 00WW_1_310 global version, and I can't ...
1
vote
0answers
64 views

Why wont my device run Twrp img for rooting

Okay, happy post Vday. 🍥 💕 So, Im trying to root an unlocked Blu J1, running Marsh. 6.0. I recently reset it, due to perf. issues & now trying to root. My setup is Win7, w/ the latest Usb ...
1
vote
1answer
75 views

What is the best way to ensure adb access if a screen breaks?

I just broke the screen on my OnePlus 6, which doesn't allow adb debugging until you change the USB Connection Type to 'MTP' (via the screen), and their repair service states they will wipe any device ...
1
vote
0answers
289 views

Why is adb backup creating a 1KB backup file when backup is permitted for the app?

I am using adb (latest one) from Android SDK Platform Tools. I also installed the adb driver from Intel USB Drivers for Android Devices. All installation done on two computer, one with Windows 8.1, ...
0
votes
2answers
675 views

ADB claims that app is not installed when uninstalling and that it is installed when installing

Gboard kept crashing when trying to open the settings, so I wanted to uninstall and reinstall it. Google Play Store kept giving me the error code 910, the advice for that was installing it with ADB. ...