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.

0
votes
2answers
39 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 ...
1
vote
0answers
24 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> <...
1
vote
0answers
41 views

ADB unknown permissions

I created a .sh script which sets app permissions on android devices. If I push the script on /sdcard and run it through adb shell with command sh ./test.sh. The following error occurs on each ...
0
votes
1answer
18 views

Is there a way to pass keyboard or joystick input to a phone through a computer?

I use my phone to emulate old games, but using the touch screen for input hurts my fingers and gives me cramps. Is there a way for me to connect my phone to a computer then pass input from a ...
1
vote
0answers
20 views

ADB backup and restore app data between device and emulator?

I have an application for which I'd like to transfer the app data from my physical device to an emulator on my PC. I'm not proficient with ADB / Linux / Bash, so I'd appreciate any efforts spared to ...
1
vote
1answer
26 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....
1
vote
1answer
35 views

Accessing device with broken touch sensor and LCD using adb

After a drop, my phone's (Galaxy J3 6v) screen (both LCD and touch sensor) are completely unresponsive. I believe I have USB debugging turned on, but cannot be sure. I have a Linux machine with ...
0
votes
1answer
26 views

Can adb sideload be used to flash/install ZIPs using 'stock' recovery/fastboot?

TWRP isn't supported for my WE_T1 Android Nougat. Can I still use the adb sideload function to install ZIPs using stock fastboot?
0
votes
0answers
21 views

How to Extract boot.img from Sharp Z3 Fs8009?

I'd like to extract the boot.img from this device in order to root it with Magisk. Is it possible with adb commands? Or another way maybe? The firmware on it is 00WW_1_310 global version, and I can't ...
1
vote
0answers
42 views

Why wont my device run Twrp img for rooting

Okay, happy post Vday. 🍥 💕 So, Im trying to root an unlocked Blu J1, running Marsh. 6.0. I recently reset it, due to perf. issues & now trying to root. My setup is Win7, w/ the latest Usb ...
1
vote
1answer
47 views

What is the best way to ensure adb access if a screen breaks?

I just broke the screen on my OnePlus 6, which doesn't allow adb debugging until you change the USB Connection Type to 'MTP' (via the screen), and their repair service states they will wipe any device ...
1
vote
0answers
48 views

Why is adb backup creating a 1KB backup file when backup is permitted for the app?

I am using adb (latest one) from Android SDK Platform Tools. I also installed the adb driver from Intel USB Drivers for Android Devices. All installation done on two computer, one with Windows 8.1, ...
0
votes
2answers
71 views

ADB claims that app is not installed when uninstalling and that it is installed when installing

Gboard kept crashing when trying to open the settings, so I wanted to uninstall and reinstall it. Google Play Store kept giving me the error code 910, the advice for that was installing it with ADB. ...
1
vote
0answers
17 views

How can i authorize my PC to my phone that doesn't work properly?

So yesterday I accidentally changed my phone's (Samsung Galaxy Note 4 SM-N910C) dpi from 640 to 140 using Nomone Resolution changer that uses root and that screwed up my whole phone because now it ...
0
votes
0answers
22 views

Kindle 5th generation in fastboot but no options?

Having 2 Kindle Fire "5th generation"s that are pretty much useless for not getting proper software, I had good hope of putting on a custom ROM after reading this post. But as always with old posts, ...
0
votes
0answers
19 views

fastboost doesn't see device on linux even with su and sudo

so i Had a trouble booting into download mode on my Samsung Galaxy J4 to boot twrprecovery.img and not flashing it after enabling "developers options" and "USB debugging" and "Unlock OEM" now ...
2
votes
1answer
39 views

Does adb backup store all applications?

On my non-rooted phone first I did adb backup -all -apk -obb -f lenovo.ab and bit later adb restore lenovo.ab (both commands had no errors). Surprisingly I did not find quite a lot of apps after the ...
0
votes
0answers
17 views

Can't use adb after phone startup until unplug/replug USB cable on Galaxy S3

I am doing some Android kernel development and would like to be able to quickly flash a kernel and reboot my phone to test my changes. Unfortunately, whenever my phone starts up, I can't access the ...
0
votes
0answers
13 views

What is the difference between adb backup and TWRP backup? [duplicate]

TWRP backup is more robust? As I understand I can restore from TWRP if system is not bootable - this is all differences? I have Lineage 14 (NightOwl, Android 7) rooted Samsung Galaxy Note N7000.
0
votes
0answers
30 views

adb error type 3 Activity class {com.android.launcher3/com.android.launcher3.WallpaperCropActivity} does not exist

I tried to change my wallpaper via adb. As I'm new to Android and don't know much about its activities, launcher etc. I don't know where my mistake is. I have found following adb command: adb shell ...
0
votes
1answer
27 views

How can I install / debug applications on nanopi m4 Android board?

I have a nanopi m4 Android board, usb type c port for charging and data (and debugging maybe), four usb 3.0 ports, Android 8.1 I need to use adb, what I have tried use the charging / data port (usb ...
0
votes
0answers
31 views

Create lock screen shortcut to direct dial a contact number

I’ve seen several articles like this, that show how to create a lock screen shortcut on my version of Android (8.1 Oreo), but I can’t seem to figure out how to create one that replicates behaviour of ...
1
vote
1answer
54 views

Send an SMS from an Android 8.0 using adb

A lot of docs are explaining how to send an SMS from an Android using adb command line, but none of these work for the newer Android version 8. I am eager to know where are the docs for service ...
0
votes
0answers
18 views

How to change default Location Accuracy in Andriod 8.0.0 (Samsung J7 V)?

I usually keep Location services off, but occasionally I turn it on. I am only interested in GPS location, not wifi or cell network. I use it either for driving navigation or logging hikes, so wifi/...
1
vote
0answers
40 views

how to change hotspot auto-off time using ADB command o Root?

Hi guys I'm looking for a solution on how to change the auto-off time of the hotspot with ADB command o Root, defatul is set to 5 minutes: "the hotspot will be turned off if no device will connect ...
1
vote
1answer
24 views

One Plus 5 does not appears in ADB

I wish to install an another OS on my OnePlus 5 phone. At least try... So I follow the various guides on the web, valid developer options, click on "unlock OEM" and "USB debugging". OK. I also ...
0
votes
0answers
19 views

USB MTP/PTP/Tethering/Midi Not Working

I have a Samsung Galaxy Tab 4 T235Y LTE 7.0". I have ported and flashed rom and it went wrong. Then I flashed stock rom. Now it's not detecting usb on pc (not showing usb options in tablet like mtp/...
2
votes
1answer
49 views

Galaxy S7 - How to back-up stored email mailboxes with ADB?

I've been through several threads on Stackexchange / XDA to find a solution that yet eludes me for the following task : As we all know, when we create and email account with our android devise and ...
1
vote
1answer
78 views

How can I find preinstalled apps via adb?

Is there a way to find for example a preinstalled WhatsApp? So before I delete WhatsApp I can check if for example Samsung has a pre-version installed on the device (and so I can’t fully remove it)? ...
0
votes
0answers
49 views

ADB command to send an android intent

I need to convert the following java code to an adb command to trigger scanner on a Zebra Android Scanner (not camera) mobile device. I found the code on the the Zebar site as follwos, Intent i = ...
1
vote
1answer
50 views

What are the differences between these adb and fastboot packages?

In my Bash shell, I have the packages: adb vs android-tools-adb as well as fastboot vs android-tools-fastboot. For reference I am trying to root my device, and later use these tools to learn about ...
0
votes
1answer
76 views

How to grant write access to external SDcard using ADB in Android tv?

I can't get ES file explorer and winrar to write (copy or cut from internal storage and paste to external storage) to SDCard external storage in Android TV. It says that there will be an "open from" ...
0
votes
0answers
48 views

Is there a way to pull stock rom from android using adb and a non-rooted android device?

I know that in a lot of cases adb can be powerful, but adb requires root access under certain circumstances, so my question is, if i wanted to pull my stock rom or firmware from my device, can i do it ...
0
votes
2answers
110 views

ADB/Fastboot not detecting Android stuck in bootloader

I tried to flash the most recent android pie update to my pixel 2 only for it to fail writing partitions even though I followed a recent guide to my best ability. Now, the phone is stuck in the ...
1
vote
0answers
30 views

ADB no device Nexus 5

On my Nexus 5 (LineageOS 15.1 / Android 8.1) i can't see my device when typing "adb devices" (manjaro with Android SDK 3.2.1). What I tried: root access: "ADB only" android debugging: "on" revoked ...
1
vote
1answer
82 views

How to AutoRotate in LineageOS With ADB?

I am using LOS 14.1 unofficial (by dl12345 user from XDA) in my N910C. AutoRotate doesn't work and i found a solution which is working partly. What does mean partly? I added these to my build.prob ...
1
vote
0answers
26 views

How can i change default user of ADB daemon

When i use adb shell i am logged in as user shell who is in lot of groups and have a lot of permissions. My question is if i can change default user which ADB daemon use to have less permissions. For ...
0
votes
0answers
33 views

Xperia L not booting to TWRP

I installed TWRP in my rooted Sony Xperia L using the TWRP Official App. The app said that the flashing was successful. Then, when I give adb reboot recovery command, it boots into the stock recovery. ...
0
votes
0answers
49 views

How can I send fake accelerometer data to my phone?

I want to have my phone read some fake accelerometer data on a loop so that I can have apps use my loop instead of the real accelerometer. I have a rooted Galaxy A8 2018. Preferably through a terminal ...
0
votes
0answers
41 views

Adb works in “computer's” command prompt but not in “Android Studio's” Terminal

When I type "Adb" on computer's command prompt the correct format follows.(Indicating that the environment variable path is correct). When I type "Adb" in Android Studio's Terminal it says " 'adb' is ...
1
vote
0answers
71 views

Options for recovering user data off of unrooted Motorola Android in boot loop

My phone started to boot loop*. It is a Motorola Droid Turbo (xt1254) running Android 6.0.1, and this is a snippet from the recovery screen: Device is LOCKED. Status Code: 0 Software status: ...
0
votes
1answer
23 views

Phone stuck in Safe Mode (Volume Keys not functioning)

Recently my Samsung Galaxy E7 entered into Safe Mode. My volume keys are non functional. Can someone please suggest a way to get out of Safe Mode using ADB.
0
votes
0answers
14 views

Troubles making ADB work on Neffos C5s

Help please! I have this phone, the Neffos C5s, with the SOC MTK6735 and Android 7.0, but I can't make the ADB command line work. I already installed all the drivers on my OS (W7 x64), ADB and the ...
1
vote
1answer
259 views

Equivalent ADB command in Termux

Is there any command equivalent to adb cmd package compile -m everything -f in termux?
2
votes
1answer
157 views

Galaxy S7 Edge - Change USB Mode in Phone that Will Not Boot

I've done a few hours worth of research and have been unable to find a clear answer. Hoping something in the community here might be able to help: Verizon Galaxy S7 Edge (Oreo with latest Verizon ...
1
vote
1answer
145 views

Show adb backup manual

How do I show the help text/manual for adb backup? When I run adb help I see ... backup/restore:     to show usage run "adb shell bu help" ... When I run adb shell bu ...
1
vote
0answers
84 views

How to enable TalkBack through ADB in Android P?

I've got the Oneplus 6 with unofficial mod (OmniRom Treskmod) installed on it. The issue is that the mod probably uses its own setup programme, and the accessibility gesture is partially broken. ...
1
vote
1answer
34 views

Nextbit robin recognised on fastboot but not adb shell

In the process of rooting my Nextbit Rboin, I unlocked the bootloader, and wiped it so I only have TWRP on it. I have an LOS zip ready but I dont know how to get it on the device. I have installed ...
-1
votes
1answer
233 views

I am trying to change my device's Mac address from adb shell but

I tried to change the Mac address of my non-rooted Samsung Galaxy J5 2016 (running Android 7.1.1) from adb shell. But the command ip link set wlan0 [...........] returns permission denied. Any ...
0
votes
0answers
26 views

Getevent very laggy under EMUI 5

I have a Huawei P9 Plus smartphone. Android 6 with EMUI 4.1.1 was preinstalled. I'm using adb shell getevent -t /dev/input/event5 to show all the touch events. On Android 6 with EMUI 4.1.1 this works ...