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.

745 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
4k views

Enable USB Debugging Android Dead Screen

I obtained a Nexus 6 with a dead screen. I am trying to cast the screen to my computer. In order to do so, I believe I need to have USB Debugging enabled (which is presumably off). I managed to boot ...
1
vote
1answer
3k views

Exporting contacts via adb

I have a phone whose screen broke, but I'd like to export its contacts to .vcf so I can import them to another phone. I usually do this with the built-in import/export function in the Contacts app ...
1
vote
0answers
2k views

slow adb pull/push

On my previous arch linux install the adb pull/push worked at a speed of around 25mbps. Recently I recently reinstalled arch linux and since then the pull/push operation are working very slow, at ...
1
vote
1answer
542 views

ADB Sideload without custom recovery

Is it possible to use ADB Sideload without custom recovery? For this case on Samsung Devices SM-T211? I've read in many article to access ADB Sideload we need go through recovery mode and activated ...
1
vote
0answers
1k views

Recover files from Galaxy S5 Internal with ADB, Ubuntu and DD

My parents went on a once-in-a-lifetime trip to Ireland last spring. They took most of the photos with my dad's Galaxy S5. They were stored on internal storage, and not an SD card. The photos were ...
1
vote
0answers
402 views

Android Debug Bridge (adb) backup/restore

I'm a bit confused with output bellow and was hoping someone can help me to decipher it for me) backup/restore: backup [-f FILE] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-...
1
vote
0answers
688 views

Using a desktop machine to bridge over USB from an Android phone to the LAN (OSI 2/3 *not* port mapping)

This is related to other questions about making an IP connection over USB from Android to Windows (SSH, ADB forward, etc), but it goes further, and I can't find any "howtos" or other information about ...
1
vote
0answers
512 views

Is it impossible to pull a database file from non debuggable app in a non rooted device?

Here's what I tried: adb shell "run-as my.package ..." doesn't work because the app was installed without the android:debuggable option. adb backup doesn't work (it produces an empty file) I can't ...
1
vote
1answer
119 views

How do I update ADB on my phone

So my phone was stuck in a boot loop. Last time this happened, I just simply used adb sideload after wiping my phone to flash a new rom. It worked fine. This time, however, it won't let me use adb ...
1
vote
0answers
102 views

Pull data from disabled device

I have a Samsung Galaxy S6, with a completely disabled screen. I want to pull recent images and data from it. USB Debugging is enabled, but the phone needs a passcode for me to access its' data. Is ...
1
vote
1answer
846 views

Can't connect/get computer to recognize android phone (OPO)

I've been trying to root my OPO for two days now and I've continued to have this issue. After installing Android Studio + the SDK, as well as downloading the Google USB Driver, when I connect my phone ...
1
vote
1answer
486 views

Replace lockscreen background image using adb

I am using a Lenovo Vibe Shot phone, which has Android 6.0.1 on it. In one of the updates, the change lockscreen background feature stopped work, so I can't change the background, now, regardless of ...
1
vote
0answers
786 views

Remove lockscreen app via adb

A relative installed a bunch of apps, and now I am infected by some app with a pesky ad-filled lockscreen, ON TOP of the regular lockscreen (why are they even allowed to do that). How can I find the ...
1
vote
0answers
138 views

Device shows up in fastboot and recovery, but not in Android?

I have a Motorola Moto G 2014 device. The USB connection behaves very strangely. If I boot into fastboot, the device shows up correctly via fastboot devices If I boot into recovery, the device shows ...
1
vote
0answers
58 views

ZE551ML ASUS ZF2, Bootloader failure

I tried to do a procedure described in this video https://www.youtube.com/watch?v=BJPEc1NG_k8, about installing Lineage OS on a zenfone 2 ze551ml. In a specific part of the video, is required to ...
1
vote
0answers
305 views

Get propetary rom info from adb shell

I have xiaomi smartphone which uses miui rom interface. I'm developing a windows program which manages the smartphone, I want to get the Miui version info which is displayed in settings->about phone, ...
1
vote
0answers
113 views

Verifying a backup which I used ADB via DroidExplorer

I have a non-rooted tablet which I did an ADB backup thru DroidExplorer. The backup ended abruptly with no success/failure indication (which appears to be a feature of ADB). I want to verify that ...
1
vote
0answers
2k views

Remove lock or enable usb debugging on non-rooted phone?

So my little sister locked herself out of her phone which was not rooted, had no recovery software (Cwm, Xrec, etc.) installed on it, and has usb debugging and auto-mount disabled. We don't know the ...
1
vote
0answers
118 views

Can I use Tasker to simulate Page Up / Page Down without root access?

I've read people doing it using adb without root access. I've also read that people can do it using Tasker and several other methods, but with root access. Is it possible to do the same with Tasker (...
1
vote
1answer
601 views

I want to “allow USB debugging?” popup for a touch broken device

I just broken my mobile screen. Display just gone blank. Touch not working. But I want to see the screen on my PC using whatever software like mobile go... Mobile's USB Debugging already turned on. ...
1
vote
1answer
530 views

Best backup strategy (apks and app data)?

I would like to backup my phone a regular basis. TWRP provides a full system backup and recovery option. This is fine but too inflexible for me and bound to the phone itself. I want to backup all ...
1
vote
0answers
498 views

At what point in recovery mode should ADB be available?

I am using stock Android on a Nexus 5X, and I have a phone that is generally in a bootloader loop (unless the phone is frozen cold — weirdest bug I've ever seen). I can now consistently get into ...
1
vote
0answers
605 views

Remove Google Account to unlock get adb permission denied

I forgot my PIN and I dont know which Google Account I used and now I try to remove the question for my Google account data. So I try it with this How-To and when I try to run sqlite3 settings.db ...
1
vote
0answers
431 views

Can't flash using fastboot

I lost access to my OnePlus 3 and removed TWRP as a side effect of my attempts to recover from that situation. To get TWRP back, I installed adb and fastboot on my laptop running Ubuntu 16.04. I ...
1
vote
1answer
931 views

execute ussd from shell-script

Every month I need to execute USSD-command. I want to automatize it. My idea is to write shell-script for SManager. I found two ways to make a call (tested from adb): service call phone 2 s16 '*100#' ...
1
vote
0answers
419 views

Issues with ellipsis (…) in filename when pulling files using ADB on Windows

I'm trying to pull files from the /sdcard partition of my phone to Windows 10 using ADB, and it errors: cannot create [ my file > my computer ]: Not a directory This only occurs at a particular ...
1
vote
1answer
88 views

Getting Data out of Android phone suffering from Google Apps stopped working endless loop

One of our Moto E2 LTE is constantly displaying a "Google app has stopped error" message on power-up, rendering it useless. This occurred after the phone ran out of battery, but this could be a ...
1
vote
0answers
2k views

Install CA Certifcate using ADB?

I'm in an annoying chicken-and-the-egg loop. Android Browser (the stock browser) is rejecting a bunch of sites certified by Comodo certificate authority. I'm on Comodo's site trying to download their ...
1
vote
0answers
560 views

Can't mount /system as RW

I own an old Motorola XT910 that has several malwares, so I'm trying to delete them from the /system/app folder (since they're set as system apps), but when I try to mount the system as read-write, ...
1
vote
1answer
319 views

Nexus 5 won't boot into OS, bootloader/adb won't let me do anything either

Nexus 5 power button started "sticking" and would get itself into a "boot-loop". I looked it up and it seemed lots of users were having issues with the power button on the Nexus 5, so I just decided ...
1
vote
0answers
658 views

sm partition disk:foo,bar not working on Samsung Galaxy tab S 10.1 SM-T800 with Mashmallow

After passing in debug mode and my USB also in debug mode on my tablet, I installed the Android Studio on my computer. This allowed an access to the adb function. adb devices returns a long number ...
1
vote
1answer
261 views

Why don't my adbkey fingerprints match?

When I attempt to connect to my phone via adb it tells me my public key's fingerprint is this: But on my computer, per this post, my public key's fingerprint is will@linux:~$ awk '{print $1}' < ~...
1
vote
0answers
881 views

How to make a copy of files from internal memory using adb in recovery mode? (S4, usb debugging is turned off, stock recovery)

My S4 doesn't turn on and unfortunately I didn't back up my files :-( I only have access to recovery and download mode. Is it possible to backup the files from my S4 using adb in the recovery mode? ...
1
vote
0answers
1k views

How to resize the screen on Android 4.2.2 (adb shell wm overscan doesn't work)

I was following this tutorial in order to resize my screen (or "deactivate" a small part from the bottom of it): https://android.stackexchange.com/a/113782/191822 As describes above I tried tried it ...
1
vote
0answers
3k views

Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen

My Galaxy S7 Edge has a broken screen (totally black, and doesn't respond to touch). However, the phone does turn on and is recognized by Kies 3 and SmartSwitch. I am also able to unlock the phone via ...
1
vote
0answers
114 views

How to keep an ODROID device connectable via adb?

I'm using an Odroid (rooted) device running Android 5.1.1 on a local network and I'd like to be able to control it via adb. Currently I'm running this at startup: setprop service.adb.tcp.port 5555 ...
1
vote
0answers
51 views

Samsung GSII-GTi9100 with CM12 - no USB connection

I have installed CM12 from SDCard. Device is running fine. It charges normaly from usb socket. But I need to access developer options and run code through ADB. I have ADB set up on my ubuntu16.04 ...
1
vote
0answers
142 views

How to check adb commands executed on an Android device without executing them?

In my city recently smart benches were added to some parks. They have WiFi, heating, cooling, wireless charging and USB ports. They're really cool and stylish, but when I plug my phone in to charge ...
1
vote
0answers
352 views

Is it possible to detect via adb if a certain app crashed (and restarted)?

In my tablet Google Play Services crash every often. They do restart automatically. I'd like to know if it's possible to programmatically discover via ADB whether a restart happened or not. I tried ...
1
vote
0answers
208 views

OnePlus One stuck in boot after resizing screen and DPI tweak

My device: OnePlus One, CM 13.1.1, not rooted Since the the strip above the on screen nav buttons is gone (no touch screen anymore) I was trying to resize the screen AND tweak the DPI accordingly as ...
1
vote
0answers
170 views

keep on getting “could not connect to device” on nexus 6p <--> mac

This used to work reliably for me all the time. Simply connecting my nexus 6p to my mac, tapping on the file transfers option in the USB for file transfer option and boom but now I keep on getting ...
1
vote
0answers
385 views

SD card does not appear as adoptable

I have a Samsung Galaxy On5 that has been rooted, and I want to adopt my SD card as internal storage. I am attempting to adopt the SD card using ADB. The process for this is well documented, but every ...
1
vote
0answers
72 views

Android - Rename file via sideload?

In an effort to get a WiFi adapter working I was following instructions on replacing a file called 'linker' in system/bin. Before copying the new linker file you gave I renamed my old one to linker2 ...
1
vote
2answers
350 views

Recover data from unbootable android 5.0 note 3

I have a Samsung Galaxy Note 3, which was weeks ago fully functional but had some glitches like it couldn't run games such as clash royale without an external power supply; in this case I used a power ...
1
vote
0answers
780 views

Send a Double type variable as an extra when sending an intent via adb shell

I wish to send a Double variable as an extra. It is easy to do with code but it seems that am can't do it. Below is the am extra help, we can see that there are flags for int, long and even float but ...
1
vote
0answers
109 views

how to restore mount points

i have a bricked device , after 20 hours of flashing and searching , i found that my device lost some mount points here is the the mount points of my device and here is the mount points of a ...
1
vote
0answers
309 views

adb device not found after reboot

I am developing an automated test script to turn off my android device and turn it on back again and then run a few adb commands after the boot is complete. My problem is that when I turn the device ...
1
vote
1answer
452 views

permission denied on files created via adb in recovery

I stumbled upon a strange issue - after installing new ROM (CyanogenMod 12.1), I used adb push (still in TWRP) to copy some backed up directories to internal storage - so far so good. But then in ...
1
vote
0answers
883 views

How to remount to rw?

So recently rooted my phone, after a few days all google related apps have stopped working and I get the "no connection error". I have looked at so many different tutorials and what not and nothing ...
1
vote
1answer
544 views

How to copy the System folder in stock ROM?

I have a Samsung Galaxy Note 3 sm-n900, i copied the 'system' folder from the root directory to my computer, i used the JoelDroid Lollipop Batch Deodexer to deodex my system, now i wiped my original ...