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.

2
votes
2answers
1k views

adb shows devices as offline but system_profiler detects the devices fine

I have several devices (mix of tablets and phones) connected to my mac mini. Some of them are connected directly while some are connected by a good quality hub. $ system_profiler SPUSBDataType | ...
0
votes
1answer
14 views

Access Android log files for specific periods on android 7

Is it possible to access old log files,lets say 3 months old, to see the usage on the android device, by usage i mean, any app installed or unistalled, time spent online, via wifi or cellular, time ...
0
votes
0answers
10 views

Restore data form soft brick trough download mode?

I'm losing my mind. This is the last place to ask. Basically what I did is described in this thread Moded system UI files by swift installer prevented the OTA update from Oreo to Pie. Now I'm stuck ...
10
votes
6answers
70k views

How can I find out which bands my phone supports

Background: I recently bought the Padfone X, and have been attempting to get it on my network. Part of this effort has been verifying information I have found online which claims that it supports LTE ...
1
vote
1answer
1k views

LG - Fastboot doesn't recognize my device

I'm trying to get flash a custom recovery on my LG p760, however when I type fastboot devices in the command prompt (while booted into fastboot mode) nothing shows up. adb devices works fine though. I ...
1
vote
0answers
20 views

How to run app with arguments using am start

I want to run the NordVPN app by using am start automatically connects to vpn, on my home screen I have a working shortcut. The shortcut code is: Intent;action=android.intent.action.MAIN;category=com....
0
votes
1answer
1k views

how to transfer a file from within system partition on android to desktop

background I'm developing an app that downloads files to the device.. some of these files are acting out and to trouble shoot I want to actually transfer these files to my (mac) desktop and go ...
1
vote
1answer
2k views

Get common name of an app given its package name

I'm interested in a way to go from the package name (e.g. com.android.providers.telephony) to its common name (Phone). I'd like to know if there's ADB/shell command (from the phone), or any system/...
0
votes
0answers
4 views

Android TV 32:9 screen is stretched

we've got a MX10 Android 8.1 TV Box, which supports 4K resolution. It works perfectly on a 16:9 screen (A). We now wanted to connect it to a 32:9 screen and it displays stretched horizontally (B). ...
4
votes
1answer
1k views

Android Backup manager - restore from Nougat to Marshmallow

yesterday I finally brought home my new OnePlus3, but immediately ran into issue, when setting up the device. Whenever I got new device since Android5, I was able to use Tap&Go or just import all ...
0
votes
0answers
18 views

Can't find call log from adb shell

Phone is a Samsung Galaxy E5 SM-E500m (lte, dual chip, codename e5lte). Android version 5.1.1 "lollipop" Stock ROM. I pulled the database file from /data/data/com.android.providers.contacts/databases/...
0
votes
1answer
2k views

How can I record the phone screen from the command prompt?

I have been trying to record my phone screen (Nexus 5) through command prompt. I have also downloaded the SDK. For some unknown reason I am unable to open or play the file saved using this script: $...
1
vote
3answers
790 views

Script to pull from directory containing spaces

I'm trying to pull Whatsup images from my android phone via ADB using the following script: HOST_DIR=/myImageDirectory DEVICE_DIR="/sdcard/WhatsApp/Media/WhatsApp\ Images" echo started for file in $(....
0
votes
1answer
1k views

Windows doesn't show device in Explorer

After updating my Nexus 7 to the latest version of Android (4.4.4 at this point), Windows decided that it would no longer show the device in Explorer in MTP mode. PTP worked fine, but obviously this ...
0
votes
1answer
2k views

adb shell returns with error: closed

I somehow bricked my oneplus one phone badly. It only loads directly to the recovery. Pressing vol up + power button or rebooting it with adb reboot bootloader doesn't get me to the bootloader. I ...
0
votes
1answer
1k views

Error in connecting Samsung A3 to Ubuntu 14 (USB); adb unauthorized (no pop up on device too)

I have a Samsung A3 with Android 4.4.2 (not rooted) and a computer running Ubuntu 14. I am trying to connect my device to my computer through USB to be able to perform some tests on it. I have ...
1
vote
2answers
3k views

How can I get the last dialled number and call duration via adb?

I'm creating a computer system for telemarketing. I'm using adb commands to dial numbers Link Is it possible to get last dialled number and call duration via adb? If it is, how?
1
vote
1answer
29 views

Get Android activities and sub activities path programmatically

This is my first question on AE forum, so excuse me for my ignorance. I'm searching for a method to get the complete path through the system apps like Music, Video, Settings, etc... The goal is to ...
1
vote
0answers
17 views

How to “passthrough” a file from PC to Android and back using 'exec-in' and 'exec-out' directives?

I can do this: adb exec-in "gzip > sdcard/test.gz" < C:\test.txt adb exec-out cat sdcard/test.gz > C:\test.gz The question is how to do something like this: adb exec-in "gzip > C:\test....
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 ...
1
vote
1answer
74 views

Why “adb root” does nothing?

I have a OnePlus 6T. It is rooted by TWRP and Magisk. I have set ro.debuggable to 1. But when I type adb root it does this: I cannot even use adb pull on system files.
-1
votes
0answers
15 views

Does anybody know how to run ADB and more specifically sideload an image from within LG Web Os's user interface?

I literally have no other means to an end here. I literally have a bricked android device, an image file on a usb stick, and a smart tv that claims its main web browser isnt chrome when it obviously ...
0
votes
1answer
192 views

Unable to modify file permissions.xml, get error Read-only file system

I have a rooted Galaxy S5 SM-G900V, lineage_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify. I need to modify the platform.xml file to ...
7
votes
0answers
20k views

Device boots normally, but cannot enter recovery or fastboot

I have secondhand Vodafone Smart Tab 4G. It seems to me that previous owner messed something up. The device boots normally but I cannot enter either bootloader, fastboot, or recovery. I have tried HW ...
8
votes
0answers
381 views

How to stop apps from doubling overscan?

For some reason a chunk of the digitizer broke on the bottom of my phone. I tried to use adb shell wm overscan 0,54,0,324 to resize my screen smaller until I can get a new phone, but it's giving bad ...
0
votes
0answers
26 views

How to back up app data from system applications? (e.g. YouTube search history)

In 2018, YouTube triggered their kill switch / time bomb for older versions of their Android application. Their more recent versions of their app limits the search history to 50 items, which means ...
1
vote
1answer
2k views

How to skip “Welcome Page” in Chrome using adb

I am trying to open a URL in Google Chrome using adb command line. Have set "--no-first-run" using following command - adb shell 'echo "chrome --no-first-run" > /data/local/tmp/chrome-command-line'...
3
votes
3answers
25k views

ADB status offline when trying to root Kindle Fire

I'm trying to root Kindle Fire but it always show "ADB status: Offline" when I start "run.bat". Could you help me out of this problem? :( I tried to plug, unplug, connect, disconnect the Kindle many ...
0
votes
0answers
45 views

Unable to flash LineageOS or TWRP on OnePlus 5T

I'm trying to flash LineageOS on a new OnePlus 5T. I have unlocked the bootloader from fastboot, but nothing else is working. I booted into the stock OnePlus recovery mode and tried to flash ...
5
votes
0answers
1k views

`adb shell wm overscan` makes apps leave blank spaces on top

I've been following the instructions given here. Basically I just ran: adb shell wm overscan 0,320,0,0 to fix a broken touchscreen issue on my Sony Z3 Xperia Compact with Android 6.0.1 Now some ...
0
votes
1answer
2k views

can't connect to wifi using lineage os LG g3s (jagnm)

i recently updated lineage os to 14.1-20171206 on my LG g3s (jagnm) and there are several issues: 1) can't connect to wifi. Apparently it's because wifi mac address got switched to all zeroes (00:00:...
2
votes
1answer
2k views

How to bypass/authorize ADB RSA key with broken touch AND screen?

First of all, I tried a lot of hours with everything I could find on the internet and mostly on StackOverflow. Something I've already tried with no avail: https://stackoverflow.com/questions/...
1
vote
1answer
62 views

Adb pull - access denied

I want copy all files(including system files), but when I enter adb pull / i get this: I tried entering adb root but that does nothing. Is there any fix to this? Else any other way to copy all ...
8
votes
2answers
28k views

How can I enable adbd during boot on Cyanogenmod?

I am stuck during the boot process, at first before entering the passphrase for /data and now at the SIM PIN screen. At this point, adb is inaccessible (normally adbd would start up after unlocking /...
0
votes
0answers
24 views

Copy files from Nexus 5 Hammerhead via Recoverymode to a PC (Win 7)

i wanted to reuse my old Nexus 5 Hammerhead, but i forgot my android PIN. So i thought, just to reinstall a new Lineage OS. But i want to save my data before hand. I can see the data when i boot into ...
2
votes
1answer
2k views

How to traverse camera from device via adb to my Ubuntu?

What is the best way to traverse web camera? E.g. there is great number of web servers for android with video translations. How to get access to its via adb? Or wi-fi would be a easiest way?
1
vote
1answer
3k views

ADB works over USB, but doesn't work over Wifi

I have weird issue with NTT 407 tablet that works on Android 4.1.1. I've switched "USB Debugging" and when I plug USB, adb works fine. But I need it working over Wifi, so I connect to my AP, set ...
0
votes
0answers
26 views

Unlocking oem via fastboot says command failed [duplicate]

I use Android on i.MX 7ULP development kit. I planned to unlock oem via fastboot. I downloaded the latest adroid platform-tools (r28.0.3) and Run the following commands on a device while its dev ...
0
votes
0answers
20 views

How to flash a custom rom solely with a PC

So long story short, I have a old Samsung S Duos. It fall from some height. Its screen is broken. After giving up on it and almost a year after that, I decided to charge it and unlike last (year) time,...
0
votes
0answers
75 views

Put GApps file on Android bsp for nxp development board

I have an embedded system development board nxp MCIMX7ULP-EVK with Android BSP (Android 8.1) installed on it (link). The board by default does not have google play service on it. I downloaded ...
4
votes
2answers
2k views

Install OpenGApps in Android Studio Emulator (Marshmallow)

I wanted to install OpenGApps in an Android emulator (created in Android Studio). The emulator is running with Marshmallow. There is enough storage space available, so this is not the problem. I tried ...
1
vote
1answer
24 views

what is the meaning of the output of the users list command

I'm using the cmd user list command and this is the output I'm getting from the shell. UserInfo{0:Owner:13} UserInfo{23:shalevM:20} what does the last variable means? the first one is ...
5
votes
1answer
29k views

adb push not working on /system, read only

I can do adb push to /sdcard/ location but not /system on my android device. sudo adb push lib/audio.primary.gmin.so system/lib/hw/ failed to copy 'lib/audio.primary.gmin.so' to 'system/lib/hw/audio....
0
votes
1answer
16 views

Mac Fails to recognize my Android phone through USB

I installed ADB via homebrew but running adb devices returns an empty list. I also tried system_profiler SPUSBDataType but I still fail to find my device here. I don't have EasyUSBTethering issues on ...
0
votes
1answer
21 views

ADB does not recognize device (LG X Charge)

I am not able to get adb to recognize my device. Here is my setup: USB debugging is enabled under Developer Options Use USB Connection for File Transfer (Transfer Documents and media files to the ...
5
votes
2answers
2k views

Force 720p Resolution on InForce 6540

I'm working with an InForce 6540 board that has 5.0.2 Lollipop installed. I am trying to connect a display device that has a max resolution of 720p at 60hz. I am using a micro HDMI connection. The ...
4
votes
4answers
7k views

ADB commands to get the adb version of mobile phone

This might sound stupid, but after reading this post (which seem complete) I still dont see how to get the "abd version" of my android, the output I expect is something like this Android Debug Bridge ...
1
vote
2answers
5k views

Can not boot into TWRP recovery - Black screen

I am trying to flash TWRP onto a Redmi Note 4X I have the device's bootloader unlocked. I tried the following: Boot into fastboot mode on the Redmi (Vol Down + Power). Then type fastboot flash ...
0
votes
0answers
39 views

I have unlocked my bootloader but ADB doesn't detect my phone so I cant get into my bootloader mode to install TWRP

I have a Huawei P10 lite and I wanted to root my phone, so I had unlocked my bootloader after much effort, and now I'm trying to install TWRP but every time i try to enter my bootloader mode it doesn'...
1
vote
2answers
7k views

root cannot list files in /data

1|shell@maguro:/ # ls -l /system/xbin/ -rwxr-xr-x root shell 59816 2013-07-11 02:12 dexdump -rwsr-sr-x root root 67008 2013-10-08 17:24 su shell@maguro:/ # ls /data opendir failed,...