Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
844 views

Is it possible to install a ROM from TWRP ADB shell?

Let's say I place a rom in /sdcard/. Can I install in the ADB shell through TWRP. For instance, if I Start up in recovery of TWRP Type in on the host adb shell Is there anyway to install /sdcard/...
0
votes
1answer
834 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
0answers
29 views

How to decrease distance between home and back button and the menu button at bottom

Using adb tools I shifted my display upwards as some part of my bottom screen went dead. But as shown in the screenshot below, the distance between my three bottom keys and the menu button became ...
0
votes
2answers
247 views

Phone won't boot/start after successful flashing through QFIL

My phone was bricked, so I decided to flash my phone LYF f1s with the stock ROM through QFIL, but after after successful flashing it won't start !! Nothing happens, no matter which combination of ...
1
vote
0answers
100 views

ADB shell change camera mode

I am playing around with the ADB shell to control a Samsung Galaxy S9 remotely. I can do most of the things I wanted to but I struggle finding a way to switch / toggle the camera modes. I searched ...
0
votes
0answers
26 views

ADB cutting off most of my input

I am writing a shell program that pulls a bunch of text off the web and then enters it onto an android emulator: adb shell input text <some_useful_text> followed by this to simulate enter: ...
0
votes
0answers
11 views

adb backup without settings [duplicate]

I know how to use adb backup, but is there a way to only copy app data and not settings. adb backup -all works, but I think that that carries over settings, and I don't want to mess up rom switching
0
votes
0answers
121 views

Phone is either bricked or stuck in bootloop, can't access recovery mode

I was flashing a custom Rom onto my phone LYF F1s, that's when it automatically switched off !! It doesn't start anymore. Pressing power button plus volume down only brings up the boot logo screen. I ...
0
votes
1answer
407 views

Change adb permissions to rw? [duplicate]

I have LineageOS on my phone. I'm looking to edit some files in /system. I'm using root permission for adb devices from Developers Options. When I request to move file into /system, I get the message ...
1
vote
0answers
202 views

How to backup and restore APN setting via ADB?

How to backup and restore APN setting via ADB? I'm on Android 6.0 without root.
0
votes
1answer
49 views

Device is showing in device manager but not in Android ADB Interface?

Hi I am Having some problems while using adb on my computer. I connected tab to my laptop with a usb cable. And This is the device manager. Here you see that my lenovo tab is connected but not ...
2
votes
0answers
118 views

Can I use ADB with USB Network Gate?

I have a colleague who cannot obtain the kind of Android device we need for our project. He would like to own such a device to test our project with adb and similar tools, but to reiterate, his ...
1
vote
0answers
2k views

How to Factory Reset Device using Adb Command?

I am trying to do Factory Reset Device without any Recovery as i need to wipe complete data from device. I have tried many Commands but none of them work. Some are as Follows:- adb shell am ...
0
votes
0answers
76 views

How to restore userdata image?

To save image to PC I used adb pull /dev/block/bootdevice/by-name/userdata userdata How to restore that image? "fastboot flash userdata userdata" doesn't help.
0
votes
0answers
24 views

PC (randomly?) stops seeing Samsung Galaxy S7 until reboot

Two months ago I opened a similar thread (click) but now the problem's gotten worse. Please bear with me, I know there are a lot of threads about the same problem but I've tried everything suggested ...
0
votes
0answers
33 views

Where is the “enable developer option” written to?

When enabling "developer option" on device, then the serial number of device becomes known when connecting device to PC, and booting into bootloader. adb devices List of devices attached ...
0
votes
0answers
50 views

Send email using adb

How can I send an email with an attached file using adb? I looked here https://stackoverflow.com/questions/18972591/android-how-to-send-email-through-adb-shell?rq=1 but the procedure is not working ...
0
votes
0answers
436 views

How to run TWRP recovery headless?

I have samsung s5 having damaged screen. Its screen is blank and touch is not working. I have checked USB debugging by connecting to tv via hdmi to enable adb and flashed twrp ecovery twrp-3.2.1-0-...
0
votes
0answers
31 views

ADB cmd to Disable Turn Panel of android device

Looking for an ADB cmd to disable touchpanel so that while running appium script, External Human Touch events donot disturb the running activity. Device_Type: Rooted Build: USER_DEBUG_BUILD
0
votes
0answers
15 views

Dealing with buggy Firefox os

I am trying to flash my ZTE ufire with Firefox os. The moment I try to enable debugging from the settings it gets off automatically, so adb cannot read it. Further whenever I try to get in recovery ...
0
votes
1answer
158 views

Adb does not list LG G3 phone after Lollipop update on OS X

I know a few questions have been asked about this, but I have not found a solution (particularly for OS X). I updated my LG G3 to Lollipop and now adb devices does not list the device. USB debugging ...
0
votes
1answer
594 views

Unable to detect Android device with ADB on Mac but can detect it through Fastboot?

I am unable to view my Android device, an Oppo Find7, with ADB. I can view it with Fastboot. As I use a Mac, I followed this guide to install ADB and Fastboot. More generally, I am having issues ...
1
vote
1answer
989 views

How to monitor API calls made by an Android App?

I am using an Android Virtual Device and I am running the Monkey Runner script to generate user input. Now, I have to see the API calls made by that app. Is there any tool or script that will help me? ...
0
votes
0answers
285 views

How to get logs during boot?

When I flashed my Galaxy S8 (SM-G950F) with one of my own boot.img it got stuck on "Samsung Galaxy S8" boot logo (not bootloop). Other boot.img versions worked fine so theres no problem with my ...
1
vote
1answer
1k views

list disable package feature/component

we can use pm list packages -d to list disabled packages. but how can I list disabled feature/component inside a package? for example I disable all fitness related stuff from gms pm disable com....
0
votes
0answers
650 views

Preserving file & folder attributes (timestamps, folder location, metadata) while moving (pushing) from Windows PC to Android phone?

I know this has been [kinda] addressed in at least one other question, but honestly that was asked over 5 years ago (about a millennium in Android development time) and it focused primarily on photos. ...
0
votes
1answer
187 views

Enabling WIFI hotspot from a computer without usb debugging

Is it possible to enable WIFI hotspot from a computer without usb debugging being enabled? I got a phone with broken LCD and i'm unable to enable usb debugging.
0
votes
0answers
644 views

play an mp4 video in a loop via android activity manager

I want to be able to play an mp4 video from adb shell command line several times/infinitely. Currently I tried to use vlc media player which has a command line "loop" and "repeat" options without ...
1
vote
1answer
525 views

How to pass commands to ADB shell?

I am trying to create a script to automatize a few repeated things I need to do with adb. I can run most of the commands on my local bash. But at one step, I need to find the list of some files. I ...
1
vote
1answer
620 views

What is in a backup.ab file?

Using ADB tools for Android (my device had root), I executed the following command: adb backup -all After confirming the backup operation, I got a file titled backup.ab that is 350MB. A month later, ...
0
votes
0answers
25 views

i am having trouble in rooting my micromax a35 bolt

i am having trouble in rooting my micromax a35 bolt.i have installed the adb drivers and enable usb debugging and then i connect my bolt a35 to pc via usb cable then i open runme.bat and then I press ...
3
votes
3answers
6k views

How to get IMEI Number From adb Command

I am working on adb with my Samsung Galaxy Device. I want to get the IMEI number of the device using adb but I have been unable to do that. I tried the Following: adb shell dumpsys iphonesubinfo ...
1
vote
0answers
283 views

Disable “displaying over other apps”

On most Android 8 phones you can remove these persistent and annoying notifications from the notification center. My phone with the EMUI skin cannot: image of settings with no switch (click to ...
0
votes
0answers
119 views

Overscan creates unwanted border

I ran adb shell wm overscan 0,80,0,0 But in some apps like whatsapp or my launcher it creates an additional border that I don't want. Is there anything I can do against it? In the attaches ...
1
vote
0answers
6k views

How to enable usb debugging on my broken touch screen android phone from windows 10 computer?

My android(Kitkat 4.4.2) phone's touch screen is broken, but phone is working fine.But usb debugging is disable. FIY, my sd card isn't working (I don't care about that) and my phone doesn't support ...
0
votes
2answers
430 views

What is the location of the DCIM folder in the internal storage on a Xiaomi Redmi 4X?

I would like to make adb pull but I'm not able to locate this folder. I suppose it's in the /data folder but it says Permission denied. Somewhere I read if I try the full path it might work. Thank you....
1
vote
1answer
336 views

How to save images / videos from a Xiaomi Redmi 4X that keeps rebooting in every 30 seconds

My phone (Xiaomi Redmi 4X) is faulty since last week, it's restarting itself in every 30 seconds (this time starts when the home screen appears). This little time is not enough for copying everything ...
0
votes
0answers
2k views

Bypassing Lock Screen/Turn On USB Debugging

I have an LG Stylo 3 that is all stock and does not have USB debugging turned on. I am trying to find a way to bypass the lock screen without deleting the data on the phone. I was thinking maybe there ...
1
vote
0answers
552 views

ADB restore: how do I restore the entire backup?

Before flashing a custom ROM to my Nexus 5, I made a backup of system, data and cache using adb backup --twrp; this gave me a 17GB backup.ab file. My custom ROM endeavour went wrong and now I want to ...
0
votes
0answers
18 views

How does ADB handle phone drops?

We have a Linux machine with 60 handphones attached by USB. I can see the number of connected phones by the adb devices command. At first there were 60 phones. But after a day or 2, sometimes it ...
0
votes
0answers
335 views

Backing Up to SD Card Using TWRP and No Display

I have a device with a broken display. The only way I can initiate commands on it are with the power, volume, and home buttons, and with adb. I've installed TWRP on it, and I'm able to boot into it. I'...
1
vote
2answers
3k views

remote: oem unlock is not allowed

i did not find any solution on xda-developers, so i am posting this question here. i am trying unlock bootloader on nokia6 when i give command: sudo fastboot oem unlock or sudo fastboot flashing ...
1
vote
1answer
515 views

Backing Up Apps With allowBackup=false

I'm trying to back up the apks and preference data for all of the apps on my device, but it only backs up about a third of them; the remainder all have allowBackup=false in their manifests, which ...
1
vote
2answers
319 views

How can I `adb pull` a large file when the USB connection breaks continuously?

I want to transfer a large file with adb pull, but my USB connection disconnects all the time, interrupting the transfer. How can I make this work?
1
vote
1answer
3k views

Can not boot into TWRP recovery - Black screen

I am trying to flash TWRP onto a Redmi Note 4X I have the device's bootloader unlocked. I tried the following: Boot into fastboot mode on the Redmi (Vol Down + Power). Then type fastboot flash ...
0
votes
1answer
380 views

Disable Mi5 Touchscreen Input via adb

I've got a Xiaomi Mi5 (gemini) and I encounter the problem of ghost input. I guess my phone could be water-damaged even though I'm not sure. To backup my data I need to access the phone (not just it's ...
0
votes
0answers
95 views

How to get adb access to recovery mode

My phone is stuck in boot loop, but I rooted it before. I want to get adb access to push some files which I deleted causing the loop. I tried Power + Volume up. But I can't grant adb access there. I ...
0
votes
0answers
72 views

how can i restore backup without crash adb

If i use adb backup -alland restore it on another device with adb restore backup.abthe restore starts, but after a few seconds my device says "Unfortunately, Secure Storage Service has stopped". It's ...
0
votes
0answers
137 views

ADB on Android over SOTI

TL;DR: Can you execute an ADB command via SOTI to do a backup restore from a .ab data? Soti is a web-based application with a Microsoft-SQL-Based database in background. You can distribute not only ...
0
votes
0answers
205 views

make the app device owner through programming

I am trying to make the app device owner using adb shell command the script is below adb shell dpm set-device-owner com.foo.example/.AdminReceiver but I have almost 50(more) tablets I cant have ...