The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1
vote
0answers
99 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.
1
vote
1answer
350 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
317 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
130 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
272 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
842 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
198 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
209 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
57 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
22 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 ...
1
vote
0answers
122 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
81 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
471 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
269 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
314 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
1k 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 ...
4
votes
2answers
3k 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
319 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
410 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
34 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
2k 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
254 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
114 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
316 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
295 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
81 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
103 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
519 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
1k 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. ...
1
vote
0answers
29 views

How can i authorize my PC to my phone that doesn't work properly?

So yesterday I accidentally changed my phone's (Samsung Galaxy Note 4 SM-N910C) dpi from 640 to 140 using Nomone Resolution changer that uses root and that screwed up my whole phone because now it ...
0
votes
0answers
164 views

Kindle 5th generation in fastboot but no options?

Having 2 Kindle Fire "5th generation"s that are pretty much useless for not getting proper software, I had good hope of putting on a custom ROM after reading this post. But as always with old posts, ...
0
votes
0answers
55 views

fastboost doesn't see device on linux even with su and sudo

so i Had a trouble booting into download mode on my Samsung Galaxy J4 to boot twrprecovery.img and not flashing it after enabling "developers options" and "USB debugging" and "Unlock OEM" now ...
3
votes
1answer
1k views

Does adb backup store all applications?

On my non-rooted phone first I did adb backup -all -apk -obb -f lenovo.ab and bit later adb restore lenovo.ab (both commands had no errors). Surprisingly I did not find quite a lot of apps after the ...
0
votes
0answers
46 views

Can't use adb after phone startup until unplug/replug USB cable on Galaxy S3

I am doing some Android kernel development and would like to be able to quickly flash a kernel and reboot my phone to test my changes. Unfortunately, whenever my phone starts up, I can't access the ...
0
votes
0answers
15 views

What is the difference between adb backup and TWRP backup? [duplicate]

TWRP backup is more robust? As I understand I can restore from TWRP if system is not bootable - this is all differences? I have Lineage 14 (NightOwl, Android 7) rooted Samsung Galaxy Note N7000.
0
votes
0answers
306 views

adb error type 3 Activity class {com.android.launcher3/com.android.launcher3.WallpaperCropActivity} does not exist

I tried to change my wallpaper via adb. As I'm new to Android and don't know much about its activities, launcher etc. I don't know where my mistake is. I have found following adb command: adb shell ...
0
votes
1answer
137 views

How can I install / debug applications on nanopi m4 Android board?

I have a nanopi m4 Android board, usb type c port for charging and data (and debugging maybe), four usb 3.0 ports, Android 8.1 I need to use adb, what I have tried use the charging / data port (usb ...
0
votes
0answers
72 views

Create lock screen shortcut to direct dial a contact number

I’ve seen several articles like this, that show how to create a lock screen shortcut on my version of Android (8.1 Oreo), but I can’t seem to figure out how to create one that replicates behaviour of ...
1
vote
1answer
1k views

Send an SMS from an Android 8.0 using adb

A lot of docs are explaining how to send an SMS from an Android using adb command line, but none of these work for the newer Android version 8. I am eager to know where are the docs for service ...
0
votes
0answers
70 views

How to change default Location Accuracy in Andriod 8.0.0 (Samsung J7 V)?

I usually keep Location services off, but occasionally I turn it on. I am only interested in GPS location, not wifi or cell network. I use it either for driving navigation or logging hikes, so wifi/...
1
vote
0answers
53 views

how to change hotspot auto-off time using ADB command o Root?

Hi guys I'm looking for a solution on how to change the auto-off time of the hotspot with ADB command o Root, defatul is set to 5 minutes: "the hotspot will be turned off if no device will connect ...
1
vote
1answer
44 views

One Plus 5 does not appears in ADB

I wish to install an another OS on my OnePlus 5 phone. At least try... So I follow the various guides on the web, valid developer options, click on "unlock OEM" and "USB debugging". OK. I also ...
0
votes
0answers
231 views

USB MTP/PTP/Tethering/Midi Not Working

I have a Samsung Galaxy Tab 4 T235Y LTE 7.0". I have ported and flashed rom and it went wrong. Then I flashed stock rom. Now it's not detecting usb on pc (not showing usb options in tablet like mtp/...
2
votes
1answer
162 views

Galaxy S7 - How to back-up stored email mailboxes with ADB?

I've been through several threads on Stackexchange / XDA to find a solution that yet eludes me for the following task : As we all know, when we create and email account with our android devise and ...
1
vote
1answer
331 views

How can I find preinstalled apps via adb?

Is there a way to find for example a preinstalled WhatsApp? So before I delete WhatsApp I can check if for example Samsung has a pre-version installed on the device (and so I can’t fully remove it)? ...
0
votes
0answers
471 views

ADB command to send an android intent

I need to convert the following java code to an adb command to trigger scanner on a Zebra Android Scanner (not camera) mobile device. I found the code on the the Zebar site as follwos, Intent i = ...
1
vote
1answer
147 views

What are the differences between these adb and fastboot packages?

In my Bash shell, I have the packages: adb vs android-tools-adb as well as fastboot vs android-tools-fastboot. For reference I am trying to root my device, and later use these tools to learn about ...
0
votes
1answer
2k views

How to grant write access to external SDcard using ADB in Android tv?

I can't get ES file explorer and winrar to write (copy or cut from internal storage and paste to external storage) to SDCard external storage in Android TV. It says that there will be an "open from" ...
0
votes
0answers
734 views

Is there a way to pull stock rom from android using adb and a non-rooted android device?

I know that in a lot of cases adb can be powerful, but adb requires root access under certain circumstances, so my question is, if i wanted to pull my stock rom or firmware from my device, can i do it ...
0
votes
2answers
616 views

ADB/Fastboot not detecting Android stuck in bootloader

I tried to flash the most recent android pie update to my pixel 2 only for it to fail writing partitions even though I followed a recent guide to my best ability. Now, the phone is stuck in the ...