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
1answer
294 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
617 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
118 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
381 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
289 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
196 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
54 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
76 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
285 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
42 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
45 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
2k 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
244 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
25 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
205 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
260 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
275 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
326 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
70 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
68 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
248 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
2k 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
4k 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
37 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
42 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
5k 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
78 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
52 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
1k 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
194 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
309 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
2k 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
85 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
141 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
2k 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
62 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
80 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 ...
0
votes
0answers
42 views

Can we prevent Android from automatically restarting at the fail point of a bootloop?

My Goal: Recover data from the internal built in sdcard. Scenario: Samsung Galaxy s6 Edge, running stock Android 6.0.1 (No Mods/Rooting) Stuck in a bootloop, suspected failed update. ADB connects ...
0
votes
0answers
80 views

Change user name which I see in adb

./adb shell pm list users Users: UserInfo{0:*********:13} running UserInfo{999:XSpace:800010} ./adb shell dumpsys user Users: UserInfo{0:*********:13} serialNo=0 Created: &...
1
vote
0answers
418 views

Oreo 8.1 - Trouble enabling ADB for system by modifying /system/build.prop in TWRP adb shell

I've followed https://gist.github.com/varhub/7b9555cdd1e5ad785ffde2300fcfd0bd and have doublechecked that the build.prop is indeed modified i.e. system was mounted in read-write mode. Unfortunately ...
0
votes
1answer
150 views

Redmi Note 4. ADB pm uninstall some packages, Stuck in Reboot

So I wanted to remove some apps pre installed. I connected to my Redmi Note 4 ( Nougat ) via adb shell. Used pm uninstall -k --user 0 <name of package> Removed the following packages. com....
0
votes
0answers
364 views

Full backup & restore of rooted Android device

I'm new to Android. I'm trying to achieve the same thing on a rooted Android as using Acronis True Image on PC. I want to have a tool to create the system backup and restore it at any given time. ...
0
votes
1answer
147 views

What are physical partitions on Android device?

I'm new to Android system. I'm trying to understand how it is installed to internal memory to eventually have it fully backed up and capable to be restored. To accomplish it I need to know what to ...
0
votes
1answer
164 views

Showing make not found on adb shell, How to install make on Android

While installing a wifi usb driver on android, I run a shell command (sh install.sh) on adb shell but getting the following error sush: make: not found Authentication requested [root] for make driver:...
1
vote
1answer
2k views

How to wipe data on a bootloader-locked, broken screen, Nexus 6P

I want to sell my Nexus 6P for parts, but I want to wipe it first. The screen of my Nexus 6P broke (internally, the touchscreen MIGHT be fine, idk). The phone is full-disk encrypted with a PIN and the ...
0
votes
0answers
249 views

can't install google usb driver 'cos it won't accept the driver

I tried https://developer.android.com/studio/run/win-usb I also tried https://droidusb.com/download-lana-download/adb/ but that seems to be the same thing and the google page tells me to go to ...
0
votes
2answers
865 views

adb shell error: device not found (Ubuntu)

I am complete novice on adb. When it comes to Android I could be classified as "dumb user" - trying however to get one level up, hence playing with adb: $ ./adb shell error: device not found $ ./adb ...
0
votes
1answer
78 views

Using emulator as a monitor to my phone?

The screen of my Google Pixel burned out the other day. The phone still works, but the screen doesn't turn on. Is it possible to connect to my phone via adb and use an emulator to see what the phone ...
1
vote
0answers
946 views

How to boot from download mode into recovery mode

Two days ago when I was going to use my Galaxy Note 8.0 GT-N5100 tablet I noticed it was off, but minutes before it was on and working, so I tried pressing the power button and nothing happened, ...