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
5
votes
1answer
3k 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 ...
5
votes
3answers
14k views

What's the fastest way to transfer files from PC to Android?

I'd like to know which method of transfering offers the highest speeds. It happens once in a while that I lose my data while making ROM updates etc. as my phone is encrypted and that sometimes makes ...
5
votes
2answers
7k 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 ...
5
votes
1answer
7k views

How do I change Android screen orientation via simulating acceleration? [closed]

I have developed an app and I need to test it. I have borrowed some devices from my friends and bought a few. Now problem is that I want to test it in both landscape mode and portrait mode but I don't ...
5
votes
2answers
2k views

Up and down arrows in adb shell

I have an HTC Desire HD. When I connect to it with adb shell from Windows, the up and down arrow keys work fine and I get command history. But when I connect to it from Mac OS, the up and down arrows ...
5
votes
3answers
377 views

Device recognized as ????? in ubuntu

Hello good people of stack exchange, I am having trouble setting up my Ubuntu 11.04 boot to use for app development on a hardware device. I have followed the instructions here to try and recongnize ...
5
votes
1answer
1k views

How to use adb to back up more than 2GB?

I'm trying to back up my Nexus 7 before installing a new factory image. (There is an issue preventing OTA update from succeeding.) But when I run adb backup -f android-nosystem-backup.ab -apk -...
5
votes
1answer
962 views

no adb devices detected after failed revert to Android

Just a few days ago I tried to revert my Asus Nexus 7 wifi back to Android from Ubuntu Touch Preview and made a mistake somewhere. To sum up, now my device has no OS on it so it will only show the ...
5
votes
3answers
2k views

Windows doesn't detect Nexus S

I recently switched from Linux to Windows 8 consumer preview. I have installed the latest android SDK including the Google USB driver. I connect my Nexus S to the laptop, the phone goes into USB ...
5
votes
1answer
7k 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 ...
5
votes
0answers
2k 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
43k 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
620 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
4k 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
4answers
9k views

How to disable screen lock during Android development?

I am developing Android app with my daily phone, I want to turn off screen lock only during development. I can do this manually, but that is too troublesome and sometimes I forget to enable it back ...
4
votes
3answers
9k 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 /...
4
votes
2answers
15k 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 ...
4
votes
2answers
7k views

Interpretting the output of dumpsys telephony.registry

So when I run the command dumpsys telephony.registry | grep -i signalstrength I get the following output: mSignalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 25 -93 -12 300 2147483647 gsm|...
4
votes
2answers
2k views

Why are some files under /proc are universally readable?

Why are some files under /proc are universally readable by anyone using adb? e.g. /proc/<pid>/statm /proc/<pid>/maps /proc/<pid>/smaps We can even cat the content of these files, ...
4
votes
1answer
449 views

Does adb backup/restore still work because it says it's deprecated?

I want to reset my phone but want to recover the system data before doing so. I tried to create a backup with adb and tried to restore it on a virtual device to see if it works. So I tried to restore ...
4
votes
3answers
15k views

Running TRIM from shell

Is it possible to run fstrim in stock android 4.3 from adb shell? I understand it runs every 24 hours when the device is plugged in and idle but I would like to run on demand to test a few theories.
4
votes
1answer
24k views

Start application from ADB

I have an Android device which I don't have physical access to. But I can access it through ADB commands. I have Teamviewer host installed on it. But unfortunately it's not running. How can I start it ...
4
votes
3answers
8k views

How do you remove permanent adb authorization?

I have a Nexus S running Cyanogen 10.1.2 (Android 4.2.2). I require adb authorization, but I accidentally "permanently" authorized a device. How do I remove the "permanent" authorization, so that ...
4
votes
1answer
7k views

Does ADB push and pull work on non-rooted phones?

I just discovered about the command adb push and adb pull which supposedly lets people push and pull data from within the internal memory. Now my question is, can this be used on non-rooted phones? ...
4
votes
3answers
40k views

fastboot flash bootloader = FAILED (remote: (InvalidState))

I'm trying to flash bootloader on my Nexus 7 (2012) and getting FAILED: mbp:nakasi-lrx21p alexus$ fastboot flash bootloader bootloader-grouper-4.23.img sending 'bootloader' (2100 KB)... OKAY [ 0....
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
1answer
5k views

“remount: not found” error

I want to install an application as a system application. To do so, I must remount the system partition RW, to do so I run the command adb shell remount rw in a terminal, but I get the error /system/...
4
votes
3answers
27k views

USB drivers for using ADB with Samsung Galaxy S on CyanogenMod 7.1?

I recently installed CyanogenMod 7.1 on my Samsung Galaxy S i9000 and I have some problems now to get ADB on my Windows 7 64-bit computer to recognize the device. Currently, adb devices returns no ...
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
1answer
4k 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.
4
votes
3answers
8k views

setting mock location remotely

for testing purpose I need to fake my GPS location on a real Android device. Now I know about the possibility of Android Emulator and setting their GPS location via telnet. I dont really have a clue ...
4
votes
2answers
8k 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
89k 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
4answers
47k views

can't use adb shell in recovery mode

I have a china tablet named Quest. I have accidentally repeated pattern lock more than 5 times. Now I have also forgotten the email address. So for a factory-reset of my tablet I simply booted it ...
4
votes
3answers
21k views

Can adb be used to recover SMS messages while in permanent “Safe Mode”?

I have a non-rooted Droid X2 that is in permanent "Safe mode", but I want to recover SMS messages. SMS Backup and Restore will NOT work because safe mode only allows system apps to run. adb shell ...
4
votes
2answers
13k 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
2k views

Does `adb install` do APK signature verification?

When using adb install something.apk, does the Android Package Manager verify the signature of the APK? adb install seems to bring up nothing up on the phone's screen, so it's hard for me to know if ...
4
votes
3answers
68k 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
553 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
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
22k 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
2k views

Send a notification (or just vibrate) to phone via ADB/shell

I would like to be able to send some kind of notification to my android using a remote shell script (SimpleSSHD running as root, so basically the same as an adb shell). On an iOS device I can use the ...
4
votes
1answer
3k 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
3answers
11k 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
12k views

How can I see all installed packages, including those that have been hidden?

Recently I used ADB to hide a bunch of packages on an old phone (Verizon 2013 Moto X) I intend to use for development. I hid most of the phone-related packages, including the SIM Toolkit and the ...
4
votes
1answer
6k views

Connect to emulator from another PC in LAN

I have two PCs. One runs Ubuntu and another runs Windows. Both have adb installed. I have an emulator on Ubuntu and I want to connect to it from Windows. I thought I could use adb forward but it doesn'...

1
3 4
5
6 7
38