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.

917 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
830 views

Interact with notification action from ADB Shell

I have an Android(7) phone [also fine if you can provide a solution for Android 10] and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my ...
9
votes
0answers
848 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 ...
7
votes
0answers
17k views

How to enable USB Debugging from recovery mode?

My phone screen broke. I can't see anything, and the touch screen doesn't work. I can't buy a new phone, so I'm not looking into backing up my data, I want to be able to use it from my pc. I have a ...
7
votes
0answers
23k 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 ...
6
votes
1answer
8k 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 ...
6
votes
2answers
1k views

Protect ADB access via network?

I have several Android devices in a local network. (Android Set Top Boxes from Geniatech, running 4.2 Jelly-Bean) If these boxes have problems or need debugging, I simply connect to them via adb ...
5
votes
0answers
3k 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 apps (...
5
votes
0answers
4k views

How to make changes done through `adb settings put` persist through device reboots?

The specific changes I attempted were to a database entry following instructions in this question: Possible to turn on Airplane mode with WiFi on only? The changes to either row would take effect ...
5
votes
0answers
44k views

adb>shell returns “error: closed” - how to “open” adb shell access through adb sideload

my device got broken but i am still able to connect usb in the stock recovery mode. if i try to start a shell via adb while the device is in recovery mode, i fail. my terminal echos the line: "error: ...
5
votes
2answers
724 views

Pattern-locked Samsung Galaxy with SuperSU and no internet

Some months ago, I rooted my Samsung Galaxy and installed SuperSU. Stupidly, I'd had believed that the only thing that happens when you enter the pattern wrong too many times is that you have to wait ...
5
votes
0answers
5k views

How do I remove orphaned permissions that are preventing an app reinstalling on Android lollipop

I have a ZTE phone I'm unable to reinstall facebook on using the Google Play Store - I get the notorious -505 unknown error. If I install a downloaded facebook apk using adb I get the following error....
5
votes
2answers
3k 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
1answer
24k 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 ...
4
votes
1answer
2k views

Android Backup manager - restore from Nougat to Marshmallow

Earlier Device: LG Nexus 5X. My Device: OnePlus 3 Earlier, I was able to use Tap&Go or just import all the data by signing into my Google Acc. However, with my device, when I used Tap&Go or ...
4
votes
0answers
829 views

How can I create a backup ROM compatible with ADB sideload?

Can someone explain how to backup a rooted Android device into a ZIP file that would be compatible with adb sideload? Is it possible without having a custom recovery installed? Is there a specific ...
4
votes
0answers
6k views

execute “adb tcpip <port_no>” command without using usb even once

I am trying to create to backup of all application in android but I don't want the users to connect to USB even for the first time. okay let me first explain what happens when we connect our phone ...
4
votes
2answers
3k 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 ...
4
votes
1answer
520 views

adb restore: 'Invalid restore data'

My Nexus 6 had a hardware fault so I sent it off for RMA. Knowing in advance that it was highly likely the service people would factory reset it during the process of fixing it, I decided to do an adb ...
4
votes
1answer
4k views

Half of touchscreen is unresponsive. How can I make Android only use the top half (rotated by 90 degrees)

So I have a broken LG G2 and a near-empty bank account, so buying a new phone isn't exactly an option right now. The bottom 50% of the screen doesn't respond to touch. Right now I am running ...
4
votes
1answer
5k views

I/O errors opening files in data partition

I'm trying to repair a Moto G (XT1008, unlocked) device. When booting normally, the motorola splash finishes and the android desktop shows up for one second, then a bunch of pop ups show up informing ...
4
votes
1answer
2k views

su doesn't give root acess

I have an HTC Sensation and I'm using Linux on my workstation. I would like to switch S-Off on this phone. I found documentation, but when I type su in adb I don't have root access: shell@android:/ $...
4
votes
1answer
29k views

adb pull - copy whole folder to computer

How do I copy a folder from my android device to a certain folder of my computer? if I use this command: adb pull efs It copies the contents of the efs folder to my computers root directory. I want ...
4
votes
0answers
535 views

Enable bluetooth tethering via command line

Is there a way to activate the bluetooth tethering mode in Lollipop using the command line? You can do it for usb tethering by running the command service call connectivity 30 i32 1 Is there a similar ...
4
votes
0answers
4k views

ADB Screen Record with Audio

I have prototype hardware and an application that produces sound. I would like to use ADB to record, the screen, audio out and audio in, all at the same time. Is there a way to do this? Note: Because ...
4
votes
2answers
7k views

File “has unexpected contents” error when sideloading Android 5.0

I have a Nexus 7 (2013) (wifi) and am trying to update the software to Android 5.0. When I try to sideload I get this error: Installing update... mount: failed to mount /dev/block/platform/msm.sdcc.1/...
4
votes
1answer
805 views

Locked out of Android Vortex MID *permission denied with ADB

Here's the back story: I bought an used Android tablet. The guy said the power connector was broken so the tablet wont be charged. I took it apart and figured out the battery was dead. I have an ...
3
votes
0answers
592 views

Enable USB debugging through recovery mode and ADB sideload

This is a follow up question to this one. Basically, I intend to somehow use this command to remove the lock screen: >adb sideload customROM.zip But, the customROM.zip should be something like ...
3
votes
0answers
6k views

ADB backup and restore app data between device and emulator?

** = Edited on 03/31/2018 * = Edited on 03/25/2018 I have an application for which I'd like to transfer the app data from my physical device to an emulator on my PC. *The data consists of a single ....
3
votes
0answers
2k views

NOTE: 'pm list' commands have moved! Run 'adb shell cmd package'

When I tried: adb shell 'pm list packages -f' I got long list of options with: NOTE: 'pm list' commands have moved! Run 'adb shell cmd package' What is cmd and is it new place for Android's ...
3
votes
0answers
938 views

How to turn mobile hotspot off using ADB

I need to turn the mobile hotspot off using ADB. I'm using various Samsung phones with Android 7 & 8. I'm planning on opening the settings activity and using keyevents. I know the Mobile Hotspot ...
3
votes
0answers
638 views

Internal Storage Dying? (S.M.A.R.T. equivalent?)

I suspect the Internal Storage on my device is failing. How can I confirm? If this were a computer, I would check the S.M.A.R.T. data for each storage device. I am looking for something similar. ...
3
votes
0answers
6k views

/sbin/sh: pm: not found

I was trying to install apk files from adb. I used the command adb install <app-name>.apk command. But it returned /sbin/sh: pm: not found But if I login to the shell with adb shell and do ...
3
votes
0answers
4k views

Data recovery from android device with broken screen

Situation Summary - I have an Android device with a broken screen, LCD and touch I have an android phone (BQ Aquaris E4.5 Ubuntu Edition, which I have flashed with the Android firmware for the E4.5 - ...
3
votes
0answers
866 views

Nexus 6 automatically remounting system read-only, deleted files returning

tl;dr I mount system rw I try to copy/update/write /system/xposed.prop System is auto-remounted ro, causing the write to fail (applicable to a variety of workarounds) Moving/renaming/deleting files ...
3
votes
1answer
1k views

ADB authorization prompt missing in Sony Xperia Z3 Compact (D5803)

I just bought a Sony Xperia Z3 Compact (D5803) and I'm trying to root it. I'm following this link for instructions, but I got stuck at the "Rooting with exploit" step as I can't authorize the ...
3
votes
1answer
2k views

Device freezes after trying to reboot with bootloader

I have been trying to unlock my bootloader as per the instructions found here. I already have installed the drivers from Google USB driver folder that comes in Android SDK "extras" folder. However, ...
3
votes
0answers
1k views

I can't see new files throught windows explorer

i can't see my new(!) files on android throught windows explorer while i can do it by ES explorer or adb shell. Is there any way to fix it?
3
votes
0answers
1k views

Help with this ADB REVERSE Tethering Script?

I added the functionality to automatically turn on reverse tethering after many fails: Now i only enter t into terminal alias t='r && sz $tether && r && sz $n' tether='am ...
3
votes
2answers
14k views

Android Wifi : How to change network interface used by android

When I boot up my Android Device and go to Wifi settings,the status of wifi remains "Turning Wi-Fi on" forever.I looked up in logcat logs,below is the error that I see. E/wpa_supplicant( 1713): ...
3
votes
2answers
4k views

Problem with ADB on my Nexus 4 (unauthorized phone)

When running adb devices in cmd, it says that my phone is unauthorized. It appears that it has something to do with the RSA fingerprint prompt. I don't remember ever getting such a prompt. Yes, I am ...
3
votes
0answers
2k views

adb input swipe to unlock slide screen lock and open notifications

When I use the command adb input swipe, the slider slides all the way to the right, but does not 'click', so the screen does not unlock. I calculate the coordinates based on the (not visible) 'swipe ...
3
votes
0answers
4k views

Disable Camera on Android using ADB Shell

I am using 4.1 JB Rooted Device & want to completely disable Camera on my mobile as it is not allowed at my work place. Currently I am using 'Disable Camera device' app but one can easily Enable ...
3
votes
0answers
381 views

VNC style connection over ADB?

Could I connect to a device over USB ADB, get a shell and then launch a VNC type graphical connection where I can use that device? I have a android device at a customer remote premises and I want to ...
3
votes
0answers
1k views

Rooting/unlocking Android Nexus One with broken power button using Linux terminal tools

I am attempting to get Cyanogenmod onto my Nexus One, but am running into far more problems than expected. The information on rooting Android devices seems heavily fragmented across the web and the ...
3
votes
0answers
648 views

Error: “reloc_library cannot locate 'fdatasync'”

I have my phone connected to my laptop via the USB cable and ADB is able to identify the device. When I run adb devices it returns the phone in the list of connected devices. Running the command adb ...
3
votes
1answer
103 views

Why is suggested to OEM unlock when LinageOS can be installed without it

I have a "LENOVO Tab 2 A10-30" which got frozen after the update in the startup loop - did not start after displaying the Lenovo logo. I decided to reinstall it with the LineageOS, and for ...
3
votes
1answer
2k views

Backing Up Apps With allowBackup=false

I'm trying to back up the apks and preference data for all of the apps on my device, but it only backs up about a third of them; the remainder all have allowBackup=false in their manifests, which ...
3
votes
1answer
2k views

Password protecting shell access

We distribute android devices to other developers so that they can develop on our devices. We want them to be able to install / uninstall / debug apps, but we don't want them to be able to run adb ...
3
votes
1answer
3k views

How to setup a PPP connection between an Android smartphone and a Linux computer?

For testing purposes, I need to connect an Android smartphone to my Linux desktop computer to enable communication between the phone and some servers on the LAN. I can't use Wi-Fi so I'm stuck with IP ...
2
votes
0answers
55 views

Uninstall system apps on rooted android 10

I've been trying to remove the chrome, youtube and playstore applications from my android device, however, I've run into some issues. I've tried rooting my device, but the systems folder is hard-coded ...

1
2 3 4 5
19