Stack Exchange Network

Stack Exchange network consists of 174 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
817 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
184 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
32 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
2k 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
18 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
82 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
40 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
160 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
391 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
85 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
197 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
152 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
126 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
44 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 ...
0
votes
0answers
42 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
22 views

Is there a way to only allow certain certain users to access the ADB of my device?

We have an Android tablet that we use for debugging at our office with the ADB over the 5555 port on 24/7. Since the device is always on, the IP is does not change and can be accessed by anyone who ...
0
votes
0answers
216 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
36 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
0answers
25 views

Create two unique backups and boot them

I have read that apps can detect the android id of the phone. And if I factory reset the phone it will get a new android id. If this is done is there any way an app can still detect that it is the ...
0
votes
1answer
38 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
1k 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
190 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
23 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
168 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
199 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
87 views

ADB backup no longer contain Chrome data, even though the manifest.xml allows backups

Noticed recently that Android Chrome data is no longer included in my ADB Backup files even though the manifest.xml shows that it's allowed. Anyone know whether there was a change that lead to this ...
0
votes
0answers
229 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
206 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
53 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
45 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
154 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
1k 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
3k 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
27 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
34 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 ...
0
votes
0answers
44 views

revivir boot de samsung galaxy s3 SGH-T999L

How can I install the boot or make my cell phone work if it does not connect through the adb fastboot? some time ago I downloaded a tool that repaired the boot automatically (only a window of the ...
1
vote
1answer
2k 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
63 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
44 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?
5
votes
0answers
925 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
839 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
160 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
203 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 ...
0
votes
1answer
845 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
305 views

How to set an alarm via ADB?

I want to set an alarm using ADB. So as adviced by this documentation, I try to use this command to invoke google voice action intents using adb: adb shell am start -a android.intent.action.SET_ALARM ...
0
votes
0answers
57 views

Parse passkey while bluetooth pairing request

I would like to know if there is a way to parse the passkey which appears on device while there is a bluetooth pairing request from another device. Maybe with some adb commands ? Or with an app, which ...
0
votes
0answers
93 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
1k 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 ...
1
vote
1answer
44 views

My Moto Z is stuck in a bootloader mode AND will not communicate with my Windows 10 PC

Before it became problematic, the bootloader on my Moto Z was unlocked, developer options were on and so was USB Debugging. Then a friend tried to root it and that's when my problems began. Now, when ...
0
votes
0answers
58 views

Is it possible to enable and use USB debugging with an Android device turned off?

I heard about the procedure: Connect the device to the computer by USB holding the UP button; I tried and did not see results. I need something more detailed. I have a Philco tablet that looks like ...