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.

Filter by
Sorted by
Tagged with
4
votes
2answers
8k views

adb restore across different devices, android versions

Once upon a time, I ran this on an Android 4.3.0 Nexus 7 2012 running ParanoidAndroid: adb backup -all -nosystem -apk -shared \ -f backup-all-nosystem-apk-shared-201309132331 Now I would love to ...
4
votes
3answers
4k views

Android phone not recognized when connected to Ubuntu, by 'adb devices'

Upgraded my HTC Slide to Froyo. Connecting Ubuntu 10.10 via USB. As per instructions here, http://developer.android.com/guide/developing/device.html $ cat /etc/udev/rules.d/51-android.rules ...
4
votes
2answers
3k views

How to recover a deleted file from /data partition?

I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need. Is it possible to create an image (.img or something similar) of the /data ...
4
votes
1answer
2k views

Button to allow ADB backup not working

I have a Oneplus One running CyanogenMod 12.0. (Based on Lollipop 5.0) I'm trying to create a backup using ADB. I executed the command, and it gave me the usual prompt to unlock my phone and allow the ...
4
votes
3answers
30k views

adb push … Permission denied

I am trying to push a file to a directory on a physical android device, but I am running into the following error. >adb push data.db /data/data/com.me.app/databases failed to copy 'data.db' to '/...
4
votes
2answers
6k views

Installing TWRP on a Samsung device, no fastboot (using ADB or other ways)

My device (Samsung Galaxy S3 I9300) is not detected by fastboot in Download Mode, but it is detected properly by adb. I want to install TWRP as my device recovery. Is there any way to install it using ...
4
votes
2answers
72k views

(Re)boot an Android phone from USB

I own a Samsung Galaxy Note 1 (not rooted) and its lock button doesn't wrok anymore. That means I couldn't boot my phone if it happened to be turned off. But I need to restart it now because it's ...
4
votes
2answers
13k views

adb listing all forwarded ports

I have forwarded machine port to emulator using following command adb forward tcp:1234 tcp:8080 I wanted to see currently what all ports are forwarded to avoid any conflicts. How to do that ?
4
votes
2answers
11k views

How to enable adbd to listen to a port at boot time in Android?

I have a rooted HTC Hero, and what I want to do is to enable the adbd to listen to a port at boot time. I tried some code found here: setprop service.adb.tcp.port 5555 stop adbd start adbd in an ...
4
votes
1answer
3k views

adb backup not working for certain app

I need to get all files of a certain app (com.valvesoftware.android.steam.community), but adb backup only gives me a 1KB AES encrypted file. upon decrypting it there is nothing inside the tar archive ...
4
votes
3answers
6k views

trying to adb backup but dialog doesn't show

I have sony xperia P device and I want to flash its ROM to get Marshmallow(I currently have android 4.0.4). I want to do full backup of my phone before doing this, I knew about adb backup command, ...
4
votes
3answers
53k views

ADB command to wipe data the phone?

I have 200 Russian Phones to flash with UK Firmware. Now when i flash the UK firmware through Odin, it works fine but Russian firmware is still on it, however it does become UK if i factory reset the ...
4
votes
1answer
526 views

How can I check when was the phone rooted?

In the adb shell command when I entered su, it prints: su root@hxjgeakt:/ # It means my phone is rooted right? How can I check when exactly was the phone rooted?
4
votes
3answers
9k views

Can't set date via shell

I've tried date -u 1407697765 output: time 1407697765 -> 1407697765.0 settimeofday failed Bad file number and busybox date -s @1407697765 output: date: can't set date: Operation not ...
4
votes
1answer
3k views

Disable browser prompt when using ADB to open an URL

I'm trying to open an URL using the ADB command: ./adb shell am start -a android.intent.action.VIEW -d URL When I have multiple browser support applications, I'm trying to open this using google ...
4
votes
2answers
12k views

Prestigio Multipad USB debuging

I am having troubles with Prestigio Multipad PMP3370B. I enabled USB debuging in Settings, but when I plug in my device to a computer and start adb devices, it does not recognize it. Does anybody have ...
4
votes
3answers
7k views

Can't access my old files after switching ROM from AOKP to CM, even though they're still there

Initially I thought this was a problem with Google Play / Apollo, but I realize now that when I plug in my phone via USB, I can't see any of the many, many folders and files present on /sdcard that I ...
4
votes
1answer
21k views

adb push and mount problems

I'm using Android 2.3.3 and I want to copy the iwconfig file to /system/xbin. First I tried doing it with adb push using this: adb push iwconfig /system/xbin But in return I had: failed to copy '...
4
votes
1answer
12k views

“adb devices” successfully shows device, but “adb connect usb” inevitably fails, any suggestions?

I have an ASUS ThinkPad, Android 4.4.2, Kernel 3.10.20. I've checked Settings->Developer Options->USB debugging. I've disabled Wi-Fi and BT (because I've seen some devices have some conflict there). ...
4
votes
3answers
6k views

What is the applypatch tool and how does one use it?

I recently stumbled upon the applypatch tool, but I couldn't find any documentation for it online. Here is the usage output (this is after typing adb shell) shell@android:/ $ applypatch --help ...
4
votes
1answer
2k views

Unable to get output buffers (err=-38) when attempting to screen-record emulator from ADB

I am attempting to capture a video of my emulator device screen using the screenrecord feature in ADB. When I run the command adb shell screenrecord --verbose /sdcard/demo/capture.mp4 I get the ...
4
votes
2answers
6k views

How to verify an ADB backup file is complete and in a good state?

This is not a duplicate of How to verify a backup file from ADB backup. The poster there probably didn't know that an unrooted phone requires -nosystem (ref) and ended with a 0 byte file, where my ...
4
votes
3answers
9k views

ADB backup is not working

I just tried to make a backup from my Nexus 5 (before installing CM 11) It is unlocked but not rooted. On PC side I'm working with Ubuntu 13.10. When I type adb backup –all -apk -nosystem –f /data/...
4
votes
3answers
17k views

Trigger “mount as disk drive” (aka “USB Mass Storage” mode) from PC

I've got an HTC Incredible that I sync to my Linux box. I'd like the Linux box to automatically detect that the phone is attached (I can do that via adb wait-for-device), and then automatically put ...
4
votes
1answer
2k views

How to do ADB over 'wifi' (actually in the same PC) for emulated device

I'm trying to use adb over 'wifi' for my emulated device. I'm emulating a device on my computer and wanted to use Android Studio to send an APK to it but through the network sockets, not through ...
4
votes
1answer
23k 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
1answer
2k views

How to get files off of Nexus 5 Android when LCD Screen + Touchscreen doesnt work?

So I have a Nexus 5 Android 32gb phone that boots up but the LCD screen and touchscreen doesnt work. I know because it gets detected on my computer. Also the bootloader is still locked, which means I ...
4
votes
1answer
2k views

Cannot root phone by installing superuser.zip CWM v6.0.5.1 Stable

Xiaomi redmi 2 runs MIUI 6.2.4.0(KHJCNBK) In order to install CWM, I downloaded both the adb and fastboot, I extracted recovery.img in the folder, together with them. I entered fastboot mode. Then, ...
4
votes
1answer
4k views

How can I get the refresh rate via ADB?

How can I use ADB to get the refresh rate of a device's screen? For context: I'm working on a python script that is going to display how many dropped frames occurred while it was measuring. In order ...
4
votes
1answer
1k views

Possible Soft-Brick Fix for my Galaxy S4

So, prior to my stupidity, I made a system.img dump via dd However, after my stupidity (tried flashing some lib files....), I am now stuck with only stock recovery mode, or download mode. How can I ...
4
votes
1answer
9k views

Backup using ADB without root or usb debugging

I have a Nexus S (on android 4, not rooted) device who's not able to boot. It opens and get stucks to the X screen. I can only access the recovery mode. I tried to backup data via ADB, but the phone ...
4
votes
2answers
6k views

type “adb shell su” in terminal (cmd in win or console in Linux ) let the terminal hang [closed]

I just want to input more shell commands after typing adb shell su, but the terminal just return an "#". It appears to be unresponsive to further commands. How can I solve this problem? Recompile ...
4
votes
1answer
4k 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 ...
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
653 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
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 ...
4
votes
1answer
458 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
3k 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
4k 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
1k 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
0answers
467 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
2k 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
718 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
3answers
8k views

Can I update the adb shell's environment variables?

I wanted to update the PATH environment variable permanently in the adb shell. I guessed the shell was mksh for I've found /system/bin/sh pointing to /system/bin/mksh. Then I tried Making a new file /...
3
votes
2answers
9k views

Using ADB to change the screen lock

I am looking for a way to change the screen lock type from slide to password, and set the password via adb command line. I have a device with the setup I want, and one that has slide lock. I'm pretty ...
3
votes
2answers
9k views

How to run an .APK without installing it on the device with adb?

Is it possible to run a .apk on an Android device without installing the app? I can do something like this: adb install com.your.app and then: adb shell am start -n com.your.app/com.your.app....
3
votes
4answers
49k views

Why is my Galaxy S4 still not appearing as a device in Mac OS X

I am trying to solve the problem of having an empty list of devices when running adb devices. Why is it not appearing? I have tried the following to no avail: Installed Kies and ran Tools > Install ...
3
votes
1answer
8k views

Android O, failed to mount /system, /dev/block/dm-0 is read only

I try to mount /system in Android O to RW using the command mount -o rw,remount /system, and i got this feedback on terminal dev/block/dm-0 is read-only *Already in adb root Any idea? Thanks
3
votes
2answers
3k views

Can I use the adb shell to know that the phone support OTG or not?

Can I use adb shell command to detect the phone support OTG to transmission the files with an USB Flash Drive with OTG function?