Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
2k views

Restore Google Authenticator accounts from ADB backup

About a month ago I accidently dropped my Nexus 4. Altough it dropped from only about half a meter- the screen broke and the multitouch stopped working too. I was lucky (and smart :P) enough to take a ...
2
votes
1answer
831 views

Samsung note 8 n5110, adb sideload <filename>

I have a soft-or-hard bricked Samsung Note 8, n5110 and now would like to rebuild it to a somewhat workable state. The device has a flaky power-charging system and may not be worth repairing. I use ...
0
votes
0answers
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
1answer
827 views

Setting up of multiple tablets from out the box

I have the task of setting up 50+ tablets (Binatone Homesurf 744, Yes cheap & cheerful!), which all need the same App installed and same wireless settings entered but require different ...
1
vote
0answers
10 views

adb shell input text ignore characters

In android emulator adb shell I send the following command: input text \!\$\#\?\%shelllllllooo And result: All same characters(exclude special like !?#$) been ignored.
3
votes
1answer
2k views

command on adb waits forever

I can successfully execute ADB commands, but if the command has no output the command line just waits there and does not let me enter a new command until I press ctrl-c, the commands do work however. ...
0
votes
1answer
872 views

PC bluescreen when enabling adb on phone connected to PC via USB

I'm using Cyanogenmod 13 Nightly (Android 6.0.1) for LG G3 Beat and i tried to use adb but as soon as I enabled adb on phone the bluescreen on pc (Windows 10) shows up saying ...
0
votes
1answer
34 views

How can run native executables compiled for ARM on unrooted Android devices? [duplicate]

Following this tutorial I have compiled a Hello World! ARM binary from C source using gcc. I want to run this program on my unrooted Android phone but I can't figure out an easy way to do it. What I'...
1
vote
2answers
2k views

adb device always unauthorized

Im running Ubuntu 16.04 adb version Android Debug Bridge version 1.0.32 However, when I plug in my devices for testing via ADB I always get an unauthorized error. adb devices List of devices ...
0
votes
1answer
1k views

No internet access using USB tethering on Android phone

I used to access the internet on my notebook by tethering it to my android mobile phone. However recently this stopped working. Even though the notebook was tethered to the phone there was no internet ...
0
votes
1answer
922 views

Flash rom in a bricked phone

I tried opening TWRP recovery but the phone turned off and then a splash screen appears and then turns off again (repeat). adb and fastboot are not recognising my device. But when i connect it to PC ...
0
votes
0answers
10 views

Properly Unroot Lineage OS 16

As you all well may be aware, I don't mean 'all', but that is if you have ever been on Lineage OS and you have ever tried using an app that doesn't run on rooted phones, Lineage is kind of by default ...
0
votes
1answer
923 views

Samsung Galaxy Note 1 /sdcard/ folder tree

Hi I am searching for the factory folder tree for Samsung Galaxy Note 1. I want the folder tree, so I can perform adb shell commands to access these directories. In a quest of recovering data. e.g. ...
1
vote
1answer
33 views

Can I change which SIM a phone is using for its LTE interface using ADB?

I have a set of phones that have dual SIM cards. What I would like to do is have them connected to one network using SIM card 1, run some test, disconnect from the network, then have them connect to a ...
0
votes
1answer
914 views

Laptop cannot detect Kindle Fire HD 8.9 in Device Manager

I have an old 8.9" Kindle Fire HD (model 3HT7G) and it is stuck in a recovery boot loop. I have found a way to get it out of this loop, but I need to use my laptop. The problem is, when I plug in my ...
0
votes
2answers
154 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 ...
0
votes
1answer
924 views

HTC One M7 - Unauthorized in adb

After 10 hours spent, it seems that I need to remove /data/misc/adb/adb_key file and restart the phone. But how can I do it if phone is not rooted and adb has no access? It's a not rooted HTC One M7 ...
0
votes
0answers
35 views

Export WhatsApp-Chat via Bluetooth (ADB-Command-Question)

I try to use the ADB-Command to automate WhatsApp-Chat-Export via Bluetooth! I work with the Keyevent DPad and Keyevent Menu. At some point I have to choose Bluetooth from a selection (Bluetooth, ...
4
votes
1answer
920 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:/ $...
-1
votes
0answers
15 views

Why do I get static error when referring to my Databases getNoteDao(); function? [closed]

I'm stuck with an annoying error. I hope someone can help. This is the databases code using Room: @Database(entities = {Note.class}, version = 1) public abstract class NoteDatabase extends ...
0
votes
1answer
980 views

Xperia M4 Aqua reboot-bootloader only shuts it down

I'm trying to reboot my Xperia M4 Aqua into bootloader mode but all it does it turn it off and I get the battery charging image as if the phone is shut down and in charge. I tried using the commands ...
1
vote
2answers
22k views

How can I access my Android Internal Storage (data/data) from the pc?

Not the SD Card that downloads, folders, gallery, etc. goes to. I mean the data/data internal memory of the Android device, where game saves, factory apps, etc. goes to. As much as I'd love to root ...
0
votes
2answers
969 views

Trying to install Copperhead OS on Nexus 6P

I want to install CopperheadOS on my Nexus 6P. They have installation instructions here: https://copperhead.co/android/docs/install Unfortunately, I'm already stuck at the beginning. The installation ...
0
votes
0answers
19 views

Adb shell directories under root

so I did compare 2 devices one running 5.1.1 and other 9.0 so I noticed that files under /proc are same in both... Can anyone explain why there is no difference even though OEM'S are different and ...
2
votes
1answer
963 views

Can't pull APKs on Nougat Nexus 5X

Whenever I try and adb pull an installed APK from my device, it says adb: error: remote object {name} does not exist. I've tried and it works with files in /sdcard, and I definitely have access to the ...
2
votes
0answers
38 views

How to set up a socks5 with Android cli?

I found articles how to set up a http-proxy. But can't find any info, how to set up a socks5 proxy. My goal is to route all traffic from apps, etc throught this proxy. Is this possible? How then ...
1
vote
2answers
980 views

Error setting up Android USB debugging on Ubuntu 14.10

I have an Android phone from LG, and I want to use it for USB debugging. I followed the following steps: Enabled usb debugging in developers option on phone. After connecting to PC, phone shows as "...
0
votes
2answers
1k views

Nexus 7: Unable to install factory image, stuck in < waiting for any device >

I want to restore factory android on my Nexus 7 2012 WiFi. I'm following the official guide. I start the device in fastboot mode by executiong: adb reboot bootloader This works well. But when I ...
0
votes
2answers
2k views

fastboot set_active command does not exist

I am trying to root my Xiaom mi a2 phone. But i am stuck on changing the active partition. When i enter "fastboot set_active b" it doesnt execute the command. Instead i get a list off all available ...
12
votes
3answers
33k views

A way to get the current resolution size and DPI from the command line/terminal/adb?

I've got adb access to my android phone. So I know that I can override screen density and screen resolution with the am command provided with Android. That's great and dandy, I guess. But is there a ...
2
votes
1answer
1k views

Show boot process on screen

I've borked something in my nexus 4 stock rom playing with system files over ADB, and my device no longer boots past the animation. Is there any way I can make the system show it's boot process ...
15
votes
2answers
35k views

How do I get my device detected by ADB on Linux?

I just got my shiny new Wileyfox Swift – and before putting it to use I want to oem unlock and root it (as I usually do with new devices ;) Trouble is, though usb-debugging is enabled on the device, ...
0
votes
0answers
21 views

Samsung note9 adb over USB keeps disconnecting

I have my Samsung Note9 (updated, on latest Android 9) connected via USB on Ubuntu Linux, latest platform-tools_r28.0.1. When I run adb shell, it works perfectly. The problem is, the device ...
1
vote
0answers
48 views

OEM Unlocking Greyed out after Android 8.1 Update. (Lenovo Tab4 10)

I purchased a Lenovo Tab 4 10, I enabled OEM Unlocking, Unlocked the Bootloader to root my tablet, and when I booted back into the Android OS it had an update, so I updated it, rebooted, re-enabled ...
0
votes
1answer
1k views

can't flash or enter recovery mode

hi i got a xiaomi redmi note 3 pro and i wanted to flash the latest version of miui, so my previous build that i got was a rooted phone with twrp and i wanted to flash with otg. i did the common ...
0
votes
1answer
997 views

adb sync shows Product directory not specified

I am using android in an emulator integrated with eclipse. I was trying to import my gmail contacts into my emulator. For that purpose, I exported my gmail contacts to a .vcf file (contacts.vcf) from ...
0
votes
0answers
197 views

I'm unable to boot and flash things on my new Xiaomi

I've got an new xiaomi mi a1, I don't know what's wrong with it but when I try to boot it it says no command. I tried to flash the official xiaomi ROM using the XiaoMiFlash tool, I tried with TWRP and ...
0
votes
1answer
29 views

Is possible to read the memory from my phone (S6) in recovery mode?

I have a problem with my Samsung S6, it restart continuously in a loop, I can see the home screen and interact with it but only for 5 or 10 seconds before it boot again. I think the only solution ...
0
votes
0answers
28 views

Prevent app from seeing installed apps

Is there any way, through settings or ADB, to prevent an app (that I installed) from knowing what other apps are installed?
0
votes
0answers
20 views

Remove all Google-related software from Android? [duplicate]

If I were to buy an Android phone and unlock the bootloader and install my own ROM, to what extent could I produce a ROM that removes all access to Google servers and functionality? For instance I ...
0
votes
1answer
1k views

Pushing to TWRP, adb shows “adb: error: connect failed: no devices/emulators found”

When I try to push my rom to /sdcard/ with TWRP, I get adb push myRom.zip /sdcard/ * daemon not running. starting it now on port 5037 * * daemon started successfully * adb: error: connect failed: no ...
0
votes
1answer
1k views

Connecting android tablet as testing device

I have a problem related to connectivity between my desktop (Windows) and tablet (Android 4.1). I bought a new device (Colorovo City Tab Vision 7) and now I want to use it for testing of my ...
1
vote
0answers
57 views

Cannot reach fastboot from Recovery Mode

Beforehand: Sorry for asking. I was sure this wasn't duplicate. I have made myself a soft brick. The story: used kingoroot or something similar, then was too much in a rush hitting the "yes, please, ...
2
votes
1answer
64 views

ADB Shell command not applied - “am set-standby-bucket” - Android 9

Currently trying to observe the behaviour of my app in different adaptive battery buckets on Android Pie. I was testing it with the command : adb shell am set-standby-bucket <packagename> <...
6
votes
4answers
25k views

Need one-line adb shell su push & pull to access /data from Windows batch file

I've been struggling for two days. Hope for help here. I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on rooted kindle fire hd 7", 2013 (kfsowi). Just learned I ...
1
vote
1answer
1k views

Wondering if i can debloat some google apps from unrooted lg phone for my father?

My father being older does not want to modify his phone, however he has a LG L70 and no sd card, and doesn't use some unnecessary Google apps, such as play, books, and whatever else. My question is ...
1
vote
2answers
45 views

Lengthy sleep command not working in script

I've written a su.d script to periodically (every 4 hours) back up data from an app using a looped sleep command: #!/system/bin/sh ( # Wait for boot to complete until [ "$(getprop sys....
0
votes
1answer
1k views

Stuck in fastboot oem unlock (Fly IQ4503)

Trying to install another OS on my Android phone. Fly it isn't so popular phone, so I have lots of problems within installation. Also I used for this my laptop with Ubuntu 15.10. Now I'm trying to ...
29
votes
15answers
77k views

ADB constantly disconnects, shows device offline

I'm not 100% sure if this should go here or the main Stack Overflow, but I decided to go with this area in hope I might catch someone with more specific experience with a similar problem. I have a ...
1
vote
1answer
1k views

How to switch off HDMI

I have an android box with a HDMI port. Im connecting it to a projector. To the same projector Im also connecting a PC via VGA cable. Now I want to give my box a command to switch off the HDMI port, ...