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.

1
vote
2answers
2k 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
275 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
80 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 ...
2
votes
3answers
5k 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
217 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
107 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
54 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
2k 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
356 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
37 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
4k 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
31 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
140 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
57 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
476 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
905 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
218 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
617 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
467 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
274 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
63 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
127 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
0answers
394 views

AndroidViewClient - How to enable USB debugging programmatically without rooting the device?

When a new AVD is created or its data is wiped, USB debugging is needed to be allowed from the window (see the figure below) prompted when the operating system (OS) is started. I work on a system that ...
0
votes
0answers
53 views

I am trying to use adb remount and it fails.

Connected Android device and gave following commands adb devices adb root adb remount I get an error saying "Not running as root. Try "adb root" first" . how can I come to know that Adb root is ...
0
votes
1answer
50 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
3k 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 ...
0
votes
0answers
304 views

Decrypting Android Nougat adopted storage

I changed my phone from a LineageOS (Android: 7.1.2 - LineageOS: 14.1-20180704-NIGHTLY-FP2) to regular Android and used my SD-Card on the first start-up of the new phone. The new phone (Huawei Mate 10 ...
1
vote
0answers
27 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
279 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
328 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
337 views

How to get USSD response from android mobile to PC through ABD?

When i dial a particular USSD number e. g. *999*012345678901*50*2255# through ADB using windows command prompt, it executes successfully and on my android device it dials the afore mentioned USSD ...
0
votes
0answers
462 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
94 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
94 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
388 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
3k 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 ...
4
votes
0answers
7k 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 ...
0
votes
0answers
75 views

ADB: Check if Android boot process is complete

I have an Android6_x86 in a virtual machine, which is started and controlled by my PC software. That is, my software starts the VM, connects via ADB over TCP/IP to android, and starts an app. The ...
0
votes
1answer
50 views

Overwritten Recovery Partition on Moto G Falcon

My 2013 Moto G (falcon) was running Lineage fine, but I decided to 'fix it'! OK - I wanted to try another build, but in flashing I've overwritten TWRP on the recovery partition, so I can't do ...
1
vote
1answer
9k views

Chrome taking up lots of space on my Android device

I have an OnePlus 5T running Oxygen 5.1.4 (which is based on Android Oreo 8.1.6). According to the app DiskUsage, Google Chrome is using almost 15 GB of data. (Click image to enlarge it) Apart from ...
0
votes
0answers
90 views

How to scan internal memory of my Android phone around a certain index entry in order to find lost utf-8/LF (for Linux/Adroid) text?

About a month ago, I already posted this question on askubuntu.com, but nobody was able to give me a proper answer to it. Maybe this was because of the fact that it is actually more of an Anroid ...
0
votes
0answers
70 views

(How) can I open the emulator using and adb connection?

Is it possible to connect the Android emulator on my PC to work with the and adb I connected to via an IP address? If so, how can I do that?
6
votes
0answers
2k views

Connecting WiFi via ADB Shell (Oreo 8.1 - LineageOS)

I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via wpa_cli using the method #1 ...
0
votes
0answers
2k views

Adb says “Error: Device offline” everytime

Please see this question for background information. Problem: Whenever I run adb devices it says Error: device offline - This appears even when no device is connected at all. It won't even let me ...
-1
votes
1answer
219 views

How to revoke root permission to an app in adb?

I think I have got a scam app in my device. I granted it root access and then whenever I open an app it,the scame app closes the app. Please help me I am stuck in here. Aah my head is aching.
0
votes
1answer
395 views

How to grant permissions to ADB?

I can use ADB while in recovery mode (TWRP) so to use it normally, I followed Android - Enable ADB from recovery to enable USB debugging. There is always an error while switching users, granting ...
1
vote
1answer
3k views

No internet access using USB tethering on Android phone

I used to access the internet on my notebook by tethering it to my android mobile phone. However recently this stopped working. Even though the notebook was tethered to the phone there was no internet ...
0
votes
0answers
208 views

phone stuck in recovery and blank screen

so i have a condor plume L1 the the default rom was full of bloatware every 30 sec i get an add so i used adb to install twrp and wanted to install a custom rom but i had a problem with /data couldnt ...
2
votes
1answer
3k views

Is there a way to run adb as host on android without root?

I have an android phone and an android tablet. Both not rooted. I want to use adb as host on the tablet and as client on the phone, using an USB-OTG adapter. I downloaded connectbot as terminal ...