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
209 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
222 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
71 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
149 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
429 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 ...
1
vote
1answer
2k 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
174 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
375 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
3k 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
50 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
530 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
1k 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
2k 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
336 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
134 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.
2
votes
0answers
112 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
3k 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
360 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
132 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 ...
3
votes
3answers
9k 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
275 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
123 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
71 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
15 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
3k 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
465 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
39 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 ...
1
vote
1answer
5k 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
44 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 ...
1
vote
0answers
167 views

xt1527 in boot loop with usb debugging disabled

a couple days ago my xt1527 started acting weird. Gapps started to crash out of nowhere. Today, every app that I tried to open crashed 2 seconds after, so I turned my device off to reboot and see what ...
0
votes
1answer
70 views

My android device doesn't show up when I do ADB Devices but DOES show up in my Chrome developer tools

Really not sure what's going on because it seems to be detected by chrome when I plug in but ADB doesn't know whats going on.
0
votes
1answer
633 views

ADB: Phone is not recognised but Ubuntu 18.04 recognises it

My LG G3 phone (phone is rooted; OS is Android Fulmics) is recognised by my laptop when I plug it in. The laptop is running Ubuntu 18.04 and I can easily copy data from and to my phone. I have ...
1
vote
0answers
1k views

Clear all apps user data with ADB without factory reset

I'm trying to achieve the goal of clearing all app data using Git Bash on Windows, but I don't know exactly if this approach is wrong, because it shows FAILED on every line. adb shell 'pm list ...
1
vote
1answer
278 views

Possible to access Chrome Incognito session data?

First post in a fit of desperation on what is probably a lost cause. Would there be any way to recover or view Incognito tabs lost during an automatic app update in the past 24 hours by snooping ...
0
votes
1answer
917 views

(Samsung) Possibility to check bootloader status using PC

Is it possible to check bootloader status using adb of a samsung device back from 2014 or older? (s5 and below) there's no fastboot, and no "OEM Unlock" in developer options and since i need to get ...
2
votes
1answer
697 views

How to correctly quote `adb shell su -c`

adb shell su -c is a commonly used adb command. Normally you just need to append arguments to the command line like this: adb shell su -c echo ab However, things can be tricky if you want to add ...
0
votes
1answer
360 views

what is the standard editor in Android?

I'm connecting to this Google phone via adb, I need to change a character inside of a text file, and I would use vi, or maybe sed -i, or even pico if nothing else helps, but I don't find any well ...
0
votes
1answer
65 views

Can't access my smartphone through neither adb/fastboot or GUI

So I was about to format my phone and install a lineage ROM (as I already did a thousand times before and always worked) but my phone now ended in a very strange situation. First I booted TRWP ...
1
vote
0answers
172 views

ADB permission failure since upgrading to LineageOS

I just upgraded my Samsung Galaxy S5 from Android 6 to LineageOS 15.1, and now ADB does not want to access my phone any more. All I get is: % adb shell error: insufficient permissions for device: ...
0
votes
1answer
56 views

Is there a way to turn my device on while it's stuck in a boot loop due to a broken power key?

I have this old LG Nexus 5 with a broken power key laying around and I want to access storage now. Problem is whenever I hold down the power button it goes into an infinite boot loop. Gets to various ...
0
votes
1answer
4k views

How to use adb to push a hosts file in a non rooted device

I am trying to modify the hosts file in my android device without any rooting and after a quick search I came across this adb method to push hosts file to a non rooted device. I followed all the ...
1
vote
0answers
29 views

How to reuse phone board without casing, screen

I have galaxy j7 2016 board with this rom installed. I have a lot of knowledge about hardware but my question is how to access shell without screen if usb debugging is not enabled? I basically want to ...
0
votes
1answer
323 views

How to gain access to /data directory through ADB shell

Despite the fact that I have root access, nevertheless I can not work with this directory. But why? Info about my phone: Android version - 6.0.1 Android security patch level - 2016-11-01 Kernel ...
0
votes
1answer
441 views

Fail when pull system files in twrp recovery

My phone is Xiaomi redmi note 5, already unlock bootloader, haven't ROOT. I boot to TWRP with command: fastboot boot twrp-3.2.3-0-whyred.img. Then .\adb remount .\adb pull /system/fonts but it ...
0
votes
0answers
581 views

Android screen recording for more than 3 minutes

I have an script which will record the screen of the device in our build server. adb shell "screenrecord --verbose --size 960x1920 --bit-rate 500000 /sdcard/screenCast.mp4; screenrecord --verbose --...
1
vote
1answer
115 views

Micromax-P701 bricked, MT6735

Micromax-P701-MT6735, Deleted All Partiton, also bricked recovery and fastboot, All MTK Drivers are installed but its continues connecting and disconnecting(the device manager is flashing but not ...
0
votes
1answer
144 views

How to store 'adb devices -l' output to a text file?

Is there any way to store the output of adb devices -l command to a text file? Note: output of adb devices -l command is List of devices attached 1101530abd5a234b device product:j1pop3hjv ...
0
votes
2answers
511 views

Mobile data is set to auto turn on with command but isn't working

I'm using 2 apps, "MacroDroid" and AutoInput", I set a command(Macro) that would turn on mobile data and location. But when I sent the text, it shows that mobile data and location are "on" but only ...
1
vote
1answer
4k views

Is there a way to grant myself MANAGE_USERS permission while inside the adb shell?

The thing is that I'm fed up of some stock adware apps on my Micromax phone and want to disable them for good. So, as per this answer, I used adb shell to disable the app, but I'm getting the ...
5
votes
0answers
9k views

How to enable USB Debugging from recovery mode?

So, my phone screen broke. I can't see anything and touch doesn't work. I have a Motorola Moto G2 running LineageOS 14.1, and TWRP custom recovery. Until now I have been able to use my phone with ...