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

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
16 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
10 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
56 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
23 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
25 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
votes
1answer
59 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
11 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 ...
0
votes
0answers
20 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
0answers
34 views

“Unknown admin: ComponentInfo” error

I always get the same error "component info", some solution to make "dpm set-profile-owner". I am using "terminal.apk", have root permissions and the user is created "id 10" as shown in "pm list ...
0
votes
1answer
17 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
41 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 ...
0
votes
0answers
10 views

ADB on Mac not connecting

I try to connect to a broken phone via ADB. I get no connection, only no devices/emulators found when I try adb devices or fastboot devices So I tried ioreg -p IOUSB and got +-o Root Hub ...
0
votes
0answers
19 views

How to enable adb in unno F3?

I can't enter developer-options to enable adb by click Build number. but I find a rom package(seem only include update data) and I can enter origin recovery by keep press *(asterisk) key at boot. I ...
0
votes
0answers
14 views

Xperia z no system only lineage recovery cant install ROm

i have xperia z c6603 and i install lineage-14.1-20170618-UNOFFICIAL-yuga using twrp coustom recovery and every just fine until zip is corrupted so i reboot 4n using power botton and volume up botton ...
0
votes
0answers
34 views

grant write permission to es file with adb

I have blackberry keyone and I want to edit build.prop file with "es file explorer" to active on screen navigation bar, but blackberry androids is unrootable! Is any way to grant "write system files ...
1
vote
0answers
65 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
50 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
46 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
52 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
52 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
33 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
22 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
17 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
66 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
20 views

Can't use adb while device is booted but can use adb in recovery mode

I have Redmi Note 5 Pro (whyred). I can't use adb while my device it fully booted but I can use adb in recovery mode(TWRP). I can also use fastboot. One strange is that on my friends' computer, adb is ...
0
votes
0answers
21 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
23 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
29 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
0answers
18 views

android adb strace not found on windows

I want to log all the system calls of an Android app for create a malware analysis system. When I run the command adb shell strace I get e/system/bin/sh: strace: not foundI am on windows 10 and I have ...
0
votes
1answer
184 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
54 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
19 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
79 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
65 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
37 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
95 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
33 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
32 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
34 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
64 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 ...
0
votes
1answer
153 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
580 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
14 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
24 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
23 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
93 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
41 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
26 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?
3
votes
0answers
300 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
105 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 ...