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
0answers
94 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
59 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
224 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
111 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
202 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 ...
1
vote
0answers
33 views

ADB no device Nexus 5

On my Nexus 5 (LineageOS 15.1 / Android 8.1) i can't see my device when typing "adb devices" (manjaro with Android SDK 3.2.1). What I tried: root access: "ADB only" android debugging: "on" revoked ...
1
vote
1answer
101 views

How to AutoRotate in LineageOS With ADB?

I am using LOS 14.1 unofficial (by dl12345 user from XDA) in my N910C. AutoRotate doesn't work and i found a solution which is working partly. What does mean partly? I added these to my build.prob ...
1
vote
0answers
27 views

How can i change default user of ADB daemon

When i use adb shell i am logged in as user shell who is in lot of groups and have a lot of permissions. My question is if i can change default user which ADB daemon use to have less permissions. For ...
0
votes
0answers
46 views

Xperia L not booting to TWRP

I installed TWRP in my rooted Sony Xperia L using the TWRP Official App. The app said that the flashing was successful. Then, when I give adb reboot recovery command, it boots into the stock recovery. ...
0
votes
0answers
94 views

How can I send fake accelerometer data to my phone?

I want to have my phone read some fake accelerometer data on a loop so that I can have apps use my loop instead of the real accelerometer. I have a rooted Galaxy A8 2018. Preferably through a terminal ...
0
votes
0answers
65 views

Adb works in “computer's” command prompt but not in “Android Studio's” Terminal

When I type "Adb" on computer's command prompt the correct format follows.(Indicating that the environment variable path is correct). When I type "Adb" in Android Studio's Terminal it says " 'adb' is ...
1
vote
0answers
77 views

Options for recovering user data off of unrooted Motorola Android in boot loop

My phone started to boot loop*. It is a Motorola Droid Turbo (xt1254) running Android 6.0.1, and this is a snippet from the recovery screen: Device is LOCKED. Status Code: 0 Software status: ...
0
votes
1answer
51 views

Phone stuck in Safe Mode (Volume Keys not functioning)

Recently my Samsung Galaxy E7 entered into Safe Mode. My volume keys are non functional. Can someone please suggest a way to get out of Safe Mode using ADB.
0
votes
0answers
18 views

Troubles making ADB work on Neffos C5s

Help please! I have this phone, the Neffos C5s, with the SOC MTK6735 and Android 7.0, but I can't make the ADB command line work. I already installed all the drivers on my OS (W7 x64), ADB and the ...
1
vote
1answer
488 views

Equivalent ADB command in Termux

Is there any command equivalent to adb cmd package compile -m everything -f in termux?
2
votes
1answer
218 views

Galaxy S7 Edge - Change USB Mode in Phone that Will Not Boot

I've done a few hours worth of research and have been unable to find a clear answer. Hoping something in the community here might be able to help: Verizon Galaxy S7 Edge (Oreo with latest Verizon ...
1
vote
1answer
221 views

Show adb backup manual

How do I show the help text/manual for adb backup? When I run adb help I see ... backup/restore:     to show usage run "adb shell bu help" ... When I run adb shell bu ...
1
vote
0answers
139 views

How to enable TalkBack through ADB in Android P?

I've got the Oneplus 6 with unofficial mod (OmniRom Treskmod) installed on it. The issue is that the mod probably uses its own setup programme, and the accessibility gesture is partially broken. ...
1
vote
1answer
44 views

Nextbit robin recognised on fastboot but not adb shell

In the process of rooting my Nextbit Rboin, I unlocked the bootloader, and wiped it so I only have TWRP on it. I have an LOS zip ready but I dont know how to get it on the device. I have installed ...
-1
votes
1answer
347 views

I am trying to change my device's Mac address from adb shell but

I tried to change the Mac address of my non-rooted Samsung Galaxy J5 2016 (running Android 7.1.1) from adb shell. But the command ip link set wlan0 [...........] returns permission denied. Any ...
0
votes
0answers
27 views

Getevent very laggy under EMUI 5

I have a Huawei P9 Plus smartphone. Android 6 with EMUI 4.1.1 was preinstalled. I'm using adb shell getevent -t /dev/input/event5 to show all the touch events. On Android 6 with EMUI 4.1.1 this works ...
1
vote
0answers
93 views

Installing TWRP on locked Sony Z3 Compact D5803

I was googling that for ages and couldn't find any decent solution. I have locked Sony Z3 Compact [D5803] and I need to install TWRP and backup the current OS. I CAN use flashtool to install custom ...
0
votes
1answer
98 views

How do I enable SEANDROID ENFORCING over adb inside TWRP?

When I boot into TWRP Recovery, it says, RECOVERY IS NOT SEANDROID ENFORCING but when I run sestatus, it tells me SELinux status: enabled SELinuxfs mount: /sys/fs/...
1
vote
0answers
38 views

Is there a way to show the status bar in Adobe Reader in Reading Mode?

Adobe Reader has a "Reading Mode" that is very nice for reading books and other documents but unfortunately, it hides the status bar on my Essential Phone. This phone has a notch so when the status ...
0
votes
1answer
69 views

How to downgrade Google search app in recovery?

For some reason, I would like to downgrade the Google search app (com.google.android.quicksearchbox) to a older version, and upgrade later, on a MI 8 running Android Oreo. But when /system is mounted ...
0
votes
1answer
211 views

ADB Shell Input text unicode value gives permission error

I am running below command on Ubuntu with connected devices adb shell input text "तणणररथ" but it gives me permission denied error and start dumping state of the device sh: resetreason: can't ...
0
votes
1answer
805 views

how to succesfully boot into bootloader/fastboot mode on alcatel 5049z smartphone

I am having issues( i am a "novice" when it comes to unlocking a30 android bootloader with a PC...) with booting into bootloader/fastboot mode on my stock rom--android 7--Alcatel a30(non rooted 5049z?)...
2
votes
0answers
68 views

Removing multiple files using ADB

This is what I tried: $ adb -e exec-out run-as com.awesomeproject rm *.jpg rm: *.jpg: No such file or directory After that I tried using find $ adb -e exec-out run-as com.awesomeproject ls ...
1
vote
0answers
183 views

Why using ADB command 'settings put global preferred_network_mode' doesn't reflect the changes in Test Settings?

I've been trying to search about changing network mode programmatically which was already answered, but I noticed that when using: settings put global preferred_network_mode x settings put global ...
2
votes
1answer
1k views

How to enable/disable apps using ADB (Android 8.x)?

I cannot get apps enabled or disabled using ADB. Android: 8.0.0 Device: Samsung Galaxy A520 (SM-A520F) I don't have root access to my device. To get the list of the disabled packages I use: $ adb ...
1
vote
1answer
32 views

Why did my phone reboot after copying an so file to the system/lib folder?

I ran the following command and the phone automatically rebooted after copying. Why? Was it because the so file was in use? $ adb shell 'mount -o rw,remount /system && cp /sdcard/libfoo.so /...
2
votes
0answers
227 views

Display bound manipulation on an android device, to avoid faulty touchscreen area

I have a Oneplus 3T on which, the digitizer would not register a touch on the bottom 1cm of the display. I tried the adb shell wm overscan 0,0,0,100 command to set display margins, and it breaks a lot ...
1
vote
1answer
466 views

How to take full image backup of eMMC?

I have an Archos 55 Platinum here. There is also a unofficial TWRP, if this might help. I would like to make a backup of the storage of the phone, like dd for any partition, so I can inspect the ...
2
votes
1answer
716 views

Is there a way to give root privileges to an app through the ADB?

The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the ...
1
vote
1answer
163 views

How to make adb shell commands wrap single line to multiple lines by default?

Let's say I have this long one-liner command: am force-stop com.example.foo; am force-stop com.example.bar; am force-stop com.example.foo2 am force-stop com.example.bar2; am force-stop com.example....
-1
votes
1answer
60 views

How to backup the entire device from a computer and mount any of the bakup partitions in Linux?

I am looking for some tutorial or help to be able to make a backup of all Android partitions directly on my computer and be able to mount each of them from Linux to view them.
1
vote
0answers
59 views

ADB shell input keypress play/pause doesn't work in Netflix/Hulu Android apps?

I'm trying to control my Android Box (running Android 6.0, my guess is a modified version of a phone's os, definitely not the official android tv os) via adb for a home automation project & I'm ...
1
vote
2answers
220 views

Android Studio unable to see any connected targets, neither hardware nor virtual

In Android Studio, I can successfully do a clean build, but every time I try Run, I see the "Select Deployment Target" window say Initializing ADB, but then in Connected Devices I see . I can ...
0
votes
2answers
128 views

Make a “adb shell” batch file?

Is a way I can make a batch file that'll run "adb shell twrp decrypt 0000" and go all the way to 9999?
0
votes
1answer
61 views

Doing the equivalent of “adb pull”, but initiated from the Android device, not via adb

I have a rooted Oreo Android device, and I can use "adb pull" from my linux machine to retrieve copies of files and directories from my device. However, I want to get a full copy of each and every ...
0
votes
2answers
2k views

fastboot set_active command does not exist

I am trying to root my Xiaom mi a2 phone. But i am stuck on changing the active partition. When i enter "fastboot set_active b" it doesnt execute the command. Instead i get a list off all available ...
0
votes
0answers
125 views

Simulate long press on Overview button through ADB to split screen

I'm trying to simulate the split screen action through adb by doing a long press on Overview virtual button. adb shell input keyevent 187 ; sleep 2 The result is recents menu is shown only, but when ...
1
vote
1answer
76 views

Multiple problems with HTC M8S after rom upgrade

I have an old HTC M8S I'm trying to give a new lease on life by getting off the stock ROM. It's an EE (read Orange UK) branded phone. romver: 1.11.61.2 CID: ORANG001 ModelID: 0PKV10000 Project: ...
1
vote
0answers
44 views

Create a private folder in Android: set the SELinux attribute of a folder in external storage

There are quite a few apps that require read and write access to the external storage, which gives them access to the whole /sdcard directory. But since that is also the only storage the user ...
0
votes
0answers
12 views

Shell command to change WiFi parameters [duplicate]

Is there an ADB shell command to quickly change WiFi parameters, such as proxy settings? I want to toggle proxy settings on and off, and don't want to have to go through the settings page everything I ...
0
votes
0answers
1k views

Find app causing: Sending non-protected broadcast android.intent.action.SU_SESSION_CHANGED from system

I'm trying to find out what is responsible for constantly causing the following messages to be printed to logcat. 10-08 11:28:30.919 5258 5273 E ActivityManager: Sending non-protected broadcast ...
0
votes
0answers
264 views

adb: failed to read command: Undefined error: 0

I tried to use adb sideload and gotten following error: $ adb sideload marlin-ota-ppr2.181005.003-469ae02d.zip serving: 'marlin-ota-ppr2.181005.003-469ae02d.zip' (~94%) adb: failed to read ...
0
votes
0answers
35 views

Android Restarts automatically after adb command recieved

My device (Samsung J7 Prime, running the stock ROM) recently updated from Android version 7.0 to 8.0. When I connect it to Android Studio and run the app, it successfully installs the app – but when ...
0
votes
1answer
3k views

How to edit build.prop without root and without custom recovery?

I have an old Motorola-Verizon phone. Since it is a Verizon exclusive model, they didn't left any chance of rooting phone, unlocking bootloader or installing custom recovery. So my question is Is it ...
0
votes
1answer
22 views

Android device is listed and recognized using adb, Hardware Overview but won't show in Finder?

I'm using a Macbook Pro OS X Sierra, with Android File Transfer installed. When plugging in an Asus Zenfone 2, a popup shows with the message (minus the Initialize button): However, this is followed ...