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
10k views

Can't use chmod to alter permissions on emulated phone

So, I'm trying to make an app in android studio and I need to reference a particular file in the app, cascade.xml. I've pushed it onto the emulated phone no problem using adb (it's in the storage/...
5
votes
2answers
5k views

ADB shell-ing to wifi connected device when usb device present

I have two devices connected to my workstation simultaneously, one by usb, the other over wifi. C:\>adb devices List of devices attached Cxxxxxxxxxx2 device 192.168.60.69:5555 ...
5
votes
1answer
4k views

Can apps be controlled through adb?

Can an installed application be completely controlled via adb? For example: Consider I need to to export my Contacts to SD Card. So here there are basically 5 Steps involved 1)Open Contacts ...
5
votes
3answers
13k views

How do I access .img files with yaffs2?

I've tried mounting them in Ubuntu, no luck, mount does not recognize the yaffs2 file system. I've tried yaffs2utils and ./unyaffs2 but it doesn't actually unpack the img files, I've posted an issue ...
5
votes
1answer
13k views

Fastboot doesn't see nexus 6p

Currently trying to unlock my bootloader, but cannot get my nexus 6p to determine that it's connected to my PC. I can use adb commands while it's on, but booting it into fastboot mode with the adb ...
5
votes
2answers
8k views

ADB - Android emulator - Unable to record video - screenrecord not found with Android 5.11

I installed android emulator, the SDK Tools v24.1.2, Android v5.1.1. After all this the emulator is UP and I am able to run my app. Where I ran into problem was while trying to do a screenrecord ...
5
votes
4answers
14k views

Does adb backup include contacts?

Does the command: adb backup -all -f backup.ab include contacts in the backup?
5
votes
1answer
43k views

How to perform a full system dump/backup with a broken screen?

So, yesterday my phone took a serious tumble. It is now essentially useless, as the screen either fails to turn on, or when it does, there is nothing useful to see (just lines of primary colors, ...
5
votes
1answer
14k views

Terminal or ADB command to force-stop applications

What is the terminal or adb command to force-stop an application? Like for freezing we use pm disable application_name.
5
votes
2answers
30k views

How can I get ADB to properly recognize an Alcatel One Touch 995 device on Windows/Ubuntu?

The problem I am trying to deploy a custom application to an Alcatel One Touch 995 running Android 2.3.6. I using Eclipse to compile the source code and push it onto the phone. The Android Device ...
5
votes
1answer
4k views

Error launching ddms.bat: “Failed to get the adb version: Cannot run program ”adb“: CreateProcess error=2, The system cannot find the file specified”

I've been following these very detailed instructions to take a screenshot on my Motorola Flipside. When I get to the step #10 where I launch ddms.bat I get this error and my phone doesn't show up: ...
5
votes
4answers
67k views

Samsung J5 : Use SD card as internal memory

I'm actually trying to use my SD card as internal memory on my Samsung Galaxy J5 with 6.0.1 android version. I saw some post on google and i follow this tutotial : http://www.phonandroid.com/galaxy-...
5
votes
2answers
6k views

How to add contacts using adb without user interaction?

Following this I found out how to add a contact using adb. The only thing that's bugging me is that the user has to okay/cancel the action, because a create-contact dialog appears on the screen. What ...
5
votes
4answers
11k views

Getting Segmentation Fault on recovery

It's an Android 4.0.3. I'm trying to fix my tablet, because it doesn't start anymore. running fastboot devices returns nothing. Then, I'm trying to do that through adb. adb devices returns List of ...
5
votes
2answers
3k views

Running a tasker task via SSHDroid (or adb shell)

I'm trying to run a tasker task manually from ADB Shell, via SSHDroid. I'm running the following in putty (Windows SSH client): am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -es task_name ...
5
votes
1answer
730 views

Get ADB to trust all computers

Is there something I can do to make my phone trust all computers to use ADB on my phone? I have root, Resurrection Remix on Android 7.1.1, and I am open to editing some files. I will only be plugging ...
5
votes
2answers
3k views

adb restore progress

Using the backup and restore function with adb (as discussed in Full Backup of non-rooted devices) there is no progress available and often it is very hard to follow the adb logcat output as long ...
5
votes
3answers
8k views

adb push: sync but not copy

adb push seems to push everything into the dest folder regardless of their changed/unchanged states. So it wastes a lot of time. Is it possible to sync rather than copy (i.e. to rsync rather than cp)? ...
5
votes
1answer
7k views

How to take backup of all installed APKs from Phone to PC? [duplicate]

How do I take backup of all installed apks from my sgs2 to PC using android sdk/ 3rd party tool etc? My phone is not rooted. I can install/uninstall apks using adb, but is there any similar command ...
5
votes
1answer
6k 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
375 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
2answers
2k views

Making mediaserver immediately scan a file created through ADB

The mediaserver in my stock and rooted Android 6.0.1 (running in Nexus 6) doesn't detect new files created or moved to into /sdcard using adb. It doesn't detect until I do a soft/full reboot which I ...
5
votes
3answers
23k views

How do i recover my wifi pass from android using adb?

I'm connected to a wifi spot with my android, but i'd like to connect with my laptop aswell. I don't want to root my phone (warranty and stuffs) nor reset the router, as it has complex settings on it. ...
5
votes
1answer
857 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
948 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
3answers
9k views

How to use adb over Mobile AP (Portable wifi hotspot)

First : I know about abdWireless app. But my problem is different. I am using my Android mobile as Mobile AP (Portable WiFi hotspot) for using internet on my computer. I want to use adb in wireless ...
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 ...
5
votes
0answers
5k views

Adb commands from Termux

Is it possible to run adb and fastboot commands using Termux terminal emulator? I am wanting to run commands from one Huawei T3 7 to another using usb/otg cable. Need to unlock bootloader but have no ...
5
votes
0answers
774 views

Android 7.1.1 storage location of adb keys

I have a Galaxy s3 (I9300) that has a broken touch screen (display is fine). I therefore can not click the authorization dialog that pops up when I try to access the device via adb on any ROMs above ...
5
votes
0answers
33k 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
484 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
3k 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
717 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
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
3answers
10k views

Is there a way to backup contents of internal SD, while preserving the file's modification date?

I'm having problems with my internal flash storage (namely not being able to create folders in root, which prevents some apps from working, plus periodic unmounts), and I have tried unsuccessfully to ...
4
votes
2answers
6k 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
2answers
86k views

How to factory reset android using adb

I am trying to factory data reset my Oppo neo 7 (Android 5.1) using adb shell. Any ways i can try and links to adb shell? thanks
4
votes
3answers
7k 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
6k 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
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
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 ...
4
votes
3answers
38k 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
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
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
28k 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
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 ...