A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
2
votes
0answers
76 views

Programmatically add wifi networks on Android

I have a list of about 100 WiFi SSIDs and passwords that I've extracted from my old phone and I want to add them to the new phone that runs Android 10 and I couldn't find any useful information on the ...
0
votes
1answer
1k views

ADB Push not keeping file permissions, specifically execute permission

I "inadvertently" wiped system on my tablet with adb. No critique needed. I've already called myself all the names. What I need now is a way to put at least the "sh" program back on using adb or other ...
2
votes
1answer
271 views

Recover files from a Pixel 2 stuck in bootloop

My Pixel 2 is stuck in the boot loop. I will send it for a replacement but I would like to recover some files that weren't backed up in the cloud. I can see the phone using adb devices and I was ...
0
votes
1answer
2k views

adb shell returns with error: closed

I somehow bricked my oneplus one phone badly. It only loads directly to the recovery. Pressing vol up + power button or rebooting it with adb reboot bootloader doesn't get me to the bootloader. I ...
0
votes
0answers
74 views

Error: java.lang.IllegalStateException: command '1636 volume partition disk:179:64 private' failed with '400 1636 Command failed'

using the method described here. First command adb devices Output of first command List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfully ...
0
votes
0answers
49 views

Make second user also a device owner

I recently bought Samsung Galaxy tab s5e , and configured my account for it. Afterwards I created account (using android multiuser feature ) for my wife. Hovewer the second account is very limited due ...
2
votes
2answers
1k views

adb shows devices as offline but system_profiler detects the devices fine

I have several devices (mix of tablets and phones) connected to my mac mini. Some of them are connected directly while some are connected by a good quality hub. $ system_profiler SPUSBDataType | ...
0
votes
1answer
2k views

Unable to mount SAMSUNG Android when USB debugging

I'm running Ubuntu 16.04 LTS on my PC, and Android 5.0.1 on my Samsung Galaxy S4. Whenever I plug my phone in with MTP mode and USB debugging enabled, it gives me a repeated popup saying "Unable to ...
1
vote
1answer
2k 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
1answer
2k views

Remove everything from android

I would like to remove all files from my android device INCLUDING system files. I have tried rm -r * and other commands but when I switch the phone off the files reappear.
1
vote
1answer
1k views

How to restore adb backup on Nexus 4 (boot loop)?

Recently I have flashed unofficial cyanogenmod 10.2 for my Nexus 4. After testing some features I the device came into a "bootloop" (stays on cyanogenmod logo launcher). I tried to reflash it with cm ...
0
votes
1answer
74 views

change root location to /system/xbin android

i have a root android device, but su is located on / So, i wanna change my su to /system/xbin or /system/bin. but i can't change su while i'm using it. I also need to change 2 files that are located ...
1
vote
2answers
4k views

ADB works over USB, but doesn't work over Wifi

I have weird issue with NTT 407 tablet that works on Android 4.1.1. I've switched "USB Debugging" and when I plug USB, adb works fine. But I need it working over Wifi, so I connect to my AP, set ...
3
votes
4answers
21k views

How to remove the SIM Toolkit from my phone? (Without root or flashing any ROM)

This application is sending a lot of spam to my phone recently, two or three times a day. I deactivated broadcast messages, tried converting USSD pop-ups into notifications to avoid being interrupted (...
1
vote
1answer
1k views

LG - Fastboot doesn't recognize my device

I'm trying to get flash a custom recovery on my LG p760, however when I type fastboot devices in the command prompt (while booted into fastboot mode) nothing shows up. adb devices works fine though. I ...
1
vote
4answers
3k views

Is it possible to adb connect android via wifi without configuring port on android?

I can connect via wifi by typing these codes in android terminal - setprop service.adb.tcp.port 5555 stop adbd start adbd and connect ip:port on PC adb .. it is connected .. Is there any ...
0
votes
1answer
1k views

Micromax nitro a311 fastboot connection error

I'm trying to flash custom ROM for Micromax a311 when I enter fastboot devices it is stuck at < waiting for device >. I think this is driver problem, I tried with some drivers that I found on web, ...
0
votes
1answer
1k views

How can I get the IMEI on Lollipop and upper with ADB?

I'm trying to get the IMEI with this command "adb shell dumpsys iphonesubinfo" but is not working. Also I try this: adb shell service call iphonesubinfo 1 but neither How can I resolve it?
2
votes
1answer
5k views

BOOTLOADER - USB Device Not Recognized

I am currently using a ROOTED "Huawei MediaPad 7 Lite" tablet and am having issues entering the bootloader. When powered on and connected to a PC, the device is seen in adb using the command adb ...
2
votes
3answers
14k views

Where can I find my device product ID using ADB shell commands?

I want to unlock my device (Huawei G610-U20) bootloader but I'm unable to retrieve my product ID from common way *#*#1357946#*#* Product ID is required by Huawei website to provide the unlocking ...
3
votes
1answer
1k 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
1answer
3k views

Issues while installing Android apps in Anbox

I know it's a relatively new and unstable application but I figured if anyone has suffered through the issue and solved it then they can help me too. So Anbox doesn't come pre-installed with Google ...
0
votes
0answers
95 views

Boot loop recovery with access to Download / Recovery modes, OEM / FRP lock enabled

Context: I have a Samsung Galaxy Tab S3. Which, seemingly sudden, entered a boot loop - The Device name and Samsung logo screens will cycle indefinitely until There is no power left or I interrupt ...
0
votes
2answers
1k views

Tablet listed under adb devices, but not under lsusb while in recovery

I am working with a Gemini devices GEM1000 tablet, I have performed all the steps to get adb working, and the device shows up under 'adb devices' so I go to the bootloader with 'adb reboot bootloader' ...
0
votes
1answer
1k views

Backup and Restore with Holo ( ADB ) from N4 to another N4 - some questions

I am soon receiving a replacement device for my Nexus 4, that got some problems charging now and then. Some questions regarding Holo Backup: It shall be no problem to restore a "Backup all without ...
1
vote
1answer
2k views

Get common name of an app given its package name

I'm interested in a way to go from the package name (e.g. com.android.providers.telephony) to its common name (Phone). I'd like to know if there's ADB/shell command (from the phone), or any system/...
67
votes
4answers
286k views

How to start root shell with Android Studio?

I just installed Android Studio. How do I get into root shell on my phone? Or do I have to download ADB separately?
0
votes
1answer
1k views

how to transfer a file from within system partition on android to desktop

background I'm developing an app that downloads files to the device.. some of these files are acting out and to trouble shoot I want to actually transfer these files to my (mac) desktop and go ...
1
vote
2answers
4k views

Can't flash custom TWRP recovery image on Motorola Moto G7 Power phone

I've got a brand new Motorola Moto G7 Power running Android 9. I also have Ubuntu 19.04 running on my desktop. I want to root the phone. I've managed to unlock the bootloader using Motorola's ...
0
votes
1answer
2k views

Error in connecting Samsung A3 to Ubuntu 14 (USB); adb unauthorized (no pop up on device too)

I have a Samsung A3 with Android 4.4.2 (not rooted) and a computer running Ubuntu 14. I am trying to connect my device to my computer through USB to be able to perform some tests on it. I have ...
0
votes
2answers
2k views

Adb doesn't work, “adb.exe has stopped working” window appears

I want to learn flutter, so, I installed Android SDK from Android Studio but when I tried to connect my device a "adb.exe has stopped working" window showed, then I tried using 'adb devices' command ...
1
vote
2answers
3k views

How can I get the last dialled number and call duration via adb?

I'm creating a computer system for telemarketing. I'm using adb commands to dial numbers Link Is it possible to get last dialled number and call duration via adb? If it is, how?
1
vote
1answer
162 views

How To Enable Debug Mode From ADB Shell or ADB Via Terminal In Linux

so far I have put my android device in ftm mode i have tried from adb sideload now i am trying with busybox ash I'm able to run ls but anything else says permission denied or error:closed. / $ ls ...
0
votes
0answers
13 views

“mount -o bind” command does not work [duplicate]

I ran this mount command to link a folder in /data to /storage/emulated/0: mount -o bind /data/directory_1 /storage/emulated/0/directory_2. Although there was no errors, in the mounted directory (/...
0
votes
0answers
24 views

Phone not recognized by computers at all. No adb, usb, lsusb, fastboot

For over a year my phone had no issue connecting to my computer via usb cable. I could transfer files back and forth via adb no problem. It stopped being recognized about a month or two ago, So I've ...
0
votes
1answer
2k views

How can I record the phone screen from the command prompt?

I have been trying to record my phone screen (Nexus 5) through command prompt. I have also downloaded the SDK. For some unknown reason I am unable to open or play the file saved using this script: $...
0
votes
0answers
59 views

How to mount 100% ext4 sd in Android Pie?

My phone (Redmi 6A) is running Android Pie(MIUI). How do I mount a 100% ext4 formatted sd card, such that it would be seen by vold? My phone is rooted. I am not experienced with the android shell ...
0
votes
0answers
69 views

Android TV stuck at boot animation after using `reboot bootloader` in terminal emulator

I used reboot bootloader in terminal emulator of my android TV. Since then it's stuck at boot animation. I tried connecting it to my laptop using USB type A male to male cable and USB type A to C as ...
0
votes
1answer
1k views

Windows doesn't show device in Explorer

After updating my Nexus 7 to the latest version of Android (4.4.4 at this point), Windows decided that it would no longer show the device in Explorer in MTP mode. PTP worked fine, but obviously this ...
2
votes
1answer
3k views

how to succesfully boot into bootloader/fastboot mode on alcatel 5049z smartphone

I am having issues( i am a "novice" when it comes to unlocking a30 android bootloader with a PC...) with booting into bootloader/fastboot mode on my stock rom--android 7--Alcatel a30(non rooted 5049z?)...
0
votes
1answer
87 views

Local equivalent to adb install

With a PC connection and adb, I can install packages by running adb install foobar.apk There is also an option to downgrade a package to an earlier version and keep data (as long the app itself did ...
3
votes
1answer
17k views

Chrome taking up lots of space on my Android device

I have an OnePlus 5T running Oxygen 5.1.4 (which is based on Android Oreo 8.1.6). According to the app DiskUsage, Google Chrome is using almost 15 GB of data. (Click image to enlarge it) Apart from ...
0
votes
0answers
43 views

Get raw app usage data

Android seems to keep a log of the past week of app usage. It seems that there are many applications that are able to get this "App usage" permission and by querying some underlying api get all the ...
7
votes
1answer
6k views

How to run adb and fastboot 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 ...
0
votes
1answer
899 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 ...
1
vote
2answers
3k views

Some app is causing bootloop

It happened when Google Play was automatically updating apps. I guess, something went wrong and the phone suddenly restarted and was not able to turn on again. It always gets stuck on "Starting apps" ...
4
votes
1answer
4k 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 ...
4
votes
2answers
2k views

Install OpenGApps in Android Studio Emulator (Marshmallow)

I wanted to install OpenGApps in an Android emulator (created in Android Studio). The emulator is running with Marshmallow. There is enough storage space available, so this is not the problem. I tried ...
0
votes
1answer
32 views

Should my “adb backup” include the system files or not if I'm planning to downgrade my Android version?

I'm using Oneplus 3t on the latest Android 9 OS. I'm planning to downgrade it to Android 8 and hence backing up my data with adb first. adb backup "-apk -obb -shared -all -nosystem -f d:/other backup/...
35
votes
8answers
148k views

ADB can discover devices but not fastboot

I've searched on the web about this problem and it's usually solved by installing the appropriate drivers. Problem is I'm on a Mac. When I plug in my device, it can be discovered when I run adb ...