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
0answers
20 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 ...
0
votes
0answers
13 views

Setting global proxy with user/pass and edit it via ADB

I need to automate changing the global proxy (so it affects all applications), but the usual method via adb I’ve seen don’t allow for a username and password for authentication. Surely this is ...
1
vote
0answers
13 views

Installing TWRP on locked Sony Z3 Compact D5803

I was googling that for ages and couldn't find any decent solution. I have locked Sony Z3 Compact [D5803] and I need to install TWRP and backup the current OS. I CAN use flashtool to install custom ...
0
votes
1answer
26 views

How do I enable SEANDROID ENFORCING over adb inside TWRP?

When I boot into TWRP Recovery, it says, RECOVERY IS NOT SEANDROID ENFORCING but when I run sestatus, it tells me SELinux status: enabled SELinuxfs mount: /sys/fs/...
1
vote
0answers
19 views

Is there a way to show the status bar in Adobe Reader in Reading Mode?

Adobe Reader has a "Reading Mode" that is very nice for reading books and other documents but unfortunately, it hides the status bar on my Essential Phone. This phone has a notch so when the status ...
-1
votes
0answers
10 views

Export date information in a list CSV that contains all the files on the device?

I would like to know how to export a list (CSV) of all the files of each of the partitions together with the dates of the last accesses to the files using adb.
0
votes
0answers
20 views

Set ownerinfo with adb

I need an ADB command which sets the ownerinfo(little textbox on lock screen) of my Android device. I couldn't find any cmdlets that works while searching. My device has Android 7
-1
votes
0answers
21 views

Why am I facing errors like“Unresolved reference”,“Expecting top level declaration” when I write public class MainActivity AppCompatActivity{ [closed]

class MainActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) // ...
-1
votes
0answers
25 views

Build and Flash AOSP in genymotion [closed]

Is it possible to build and flash custom ROM's in genymotion and Android Emulator devices?
0
votes
1answer
28 views

How to downgrade Google search app in recovery?

For some reason, I would like to downgrade the Google search app (com.google.android.quicksearchbox) to a older version, and upgrade later, on a MI 8 running Android Oreo. But when /system is mounted ...
0
votes
1answer
36 views

ADB Shell Input text unicode value gives permission error

I am running below command on Ubuntu with connected devices adb shell input text "तणणररथ" but it gives me permission denied error and start dumping state of the device sh: resetreason: can't ...
0
votes
1answer
39 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?)...
2
votes
0answers
40 views

Removing multiple files using ADB

This is what I tried: $ adb -e exec-out run-as com.awesomeproject rm *.jpg rm: *.jpg: No such file or directory After that I tried using find $ adb -e exec-out run-as com.awesomeproject ls ...
0
votes
0answers
42 views

How to open pattern locked phone and backup with adb?

I am running android KitKat stock ROM with a broken display and touchscreen. I have USB debugging enabled. My pattern is 3214789 (3*3 pattern top-right to top-left then to down-left to down-right). I ...
0
votes
0answers
21 views

How to wipe phone, cannot access recovery

So I have an older phone I want to wipe. Problem is, literally nothing works. Trying to do so from the settings simply restarts the phone. So do adb reboot recovery and bootloader. --wipe_data and ...
0
votes
0answers
45 views

ADB: Emulator avd exited with code null, signal SIGABRT

We have Appimum tests running on a virtual device. But the problem is that the emulator's device won't start. I'm pretty sure it's something with Android or Qt or Ubuntu itself. In Appimu's output ...
1
vote
0answers
38 views

Why using ADB command 'settings put global preferred_network_mode' doesn't reflect the changes in Test Settings?

I've been trying to search about changing network mode programmatically which was already answered, but I noticed that when using: settings put global preferred_network_mode x settings put global ...
0
votes
0answers
20 views

Nexus 6p stuck in recovery - not visible in adb or lsusb

I've got a Nexus 6P which used to run LineageOS and Twrp. When upgrading to the latest vendor image I accidentally downloaded and flashed a complete factory image. As a result the phone is stuck on ...
1
vote
1answer
96 views

How to enable/disable apps using ADB (Android 8.x)?

I cannot get apps enabled or disabled using ADB. Android: 8.0.0 Device: Samsung Galaxy A520 (SM-A520F) I don't have root access to my device. To get the list of the disabled packages I use: $ adb ...
1
vote
1answer
23 views

Why did my phone reboot after copying an so file to the system/lib folder?

I ran the following command and the phone automatically rebooted after copying. Why? Was it because the so file was in use? $ adb shell 'mount -o rw,remount /system && cp /sdcard/libfoo.so /...
0
votes
0answers
33 views

nokia 3 'fastboot devices' command gives nothing

I have downloaded platform tools and adb-setup.exe which installs adb and fastboot i think,further on opening cmd after clicking shift + right click in platform tools i open cmd and here i typed ...
1
vote
0answers
43 views

Display bound manipulation on an android device, to avoid faulty touchscreen area

I have a Oneplus 3T on which, the digitizer would not register a touch on the bottom 1cm of the display. I tried the adb shell wm overscan 0,0,0,100 command to set display margins, and it breaks a lot ...
0
votes
1answer
36 views

Full image of emmc

I have an Archos 55 Platinum here. There is also a unofficial TWRP, if this might help. I would like to make a backup of the storage of the phone, like dd for any partition, so I can inspect the ...
2
votes
1answer
322 views

Is there a way to give root privileges to an app through the ADB?

The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the ...
1
vote
1answer
51 views

How to make adb shell commands wrap single line to multiple lines by default?

Let's say I have this long one-liner command: am force-stop com.example.foo; am force-stop com.example.bar; am force-stop com.example.foo2 am force-stop com.example.bar2; am force-stop com.example....
0
votes
0answers
27 views

Phone problem change the density/reduction and freeze

in the past last week I've read this: Resize screen for Dead touch zone an old interesting post, and I try to use adb commands to change the density/reduction in a broken screen, on my phone (Haier ...
-1
votes
1answer
37 views

How to backup the entire device from a computer and mount any of the bakup partitions in Linux?

I am looking for some tutorial or help to be able to make a backup of all Android partitions directly on my computer and be able to mount each of them from Linux to view them.
0
votes
0answers
17 views

How to unbrick lenovo k6 power?

My phone just got bricked. I was trying to flash a new ROM but due to low battery my phone got shut down. My phone is Lenovo K6 Power, powered by SoC 430. I need help with resolving this matter.
1
vote
0answers
22 views

ADB shell input keypress play/pause doesn't work in Netflix/Hulu Android apps?

I'm trying to control my Android Box (running Android 6.0, my guess is a modified version of a phone's os, definitely not the official android tv os) via adb for a home automation project & I'm ...
0
votes
0answers
15 views

Adb pull /system/bin/mpdecision: Remote permission denied

So i'm trying to pull some files out of /system/bin for lineageos to compile and even though i'm root, it still fails. The / and /system directorys are read/write so its not a filesystem problem. Also ...
0
votes
0answers
34 views

Install apk via adb on native booted android

I found that I can't install apk files. But it can be done by 3rd party apps. I can't even download from play store. I found a solution on internet to use adb. But I am not using vbox. So how can I ...
0
votes
1answer
63 views

Android Studio unable to see any connected targets, neither hardware nor virtual

In Android Studio, I can successfully do a clean build, but every time I try Run, I see the "Select Deployment Target" window say Initializing ADB, but then in Connected Devices I see . I can ...
0
votes
2answers
24 views

Make a “adb shell” batch file?

Is a way I can make a batch file that'll run "adb shell twrp decrypt 0000" and go all the way to 9999?
0
votes
1answer
42 views

Doing the equivalent of “adb pull”, but initiated from the Android device, not via adb

I have a rooted Oreo Android device, and I can use "adb pull" from my linux machine to retrieve copies of files and directories from my device. However, I want to get a full copy of each and every ...
0
votes
0answers
24 views

How to properly modify build.prop (for production sake)?

OK, this is going to be a question SIMILAR but NOT IDENTICAL to a lot of the questions asked here. This is what I want to accomplish: modify build.prop whilst still be able to properly boot into the ...
0
votes
1answer
94 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 ...
0
votes
0answers
52 views

Simulate long press on Overview button through ADB to split screen

I'm trying to simulate the split screen action through adb by doing a long press on Overview virtual button. adb shell input keyevent 187 ; sleep 2 The result is recents menu is shown only, but when ...
1
vote
1answer
27 views

Multiple problems with HTC M8S after rom upgrade

I have an old HTC M8S I'm trying to give a new lease on life by getting off the stock ROM. It's an EE (read Orange UK) branded phone. romver: 1.11.61.2 CID: ORANG001 ModelID: 0PKV10000 Project: ...
0
votes
0answers
28 views

Adb working fastboot isn,t

First I have to tell you I've been trouble shooting this myself for a couple weeks. I'm familiar with the interface. I have a couple unique issues, that I haven't found on any forums. I usually use ...
0
votes
0answers
61 views

How can I use ADB Access to add a notification drop down button to the navigation bar?

I am using a Samsung Note 9 running Android 8.1. I would like to add a button to the navigation bar that brings down the notification drawer. This was possible natively on a previous version of ...
1
vote
0answers
29 views

Create a private folder in Android: set the SELinux attribute of a folder in external storage

There are quite a few apps that require read and write access to the external storage, which gives them access to the whole /sdcard directory. But since that is also the only storage the user ...
0
votes
0answers
10 views

Shell command to change WiFi parameters [duplicate]

Is there an ADB shell command to quickly change WiFi parameters, such as proxy settings? I want to toggle proxy settings on and off, and don't want to have to go through the settings page everything I ...
0
votes
0answers
449 views

Find app causing: Sending non-protected broadcast android.intent.action.SU_SESSION_CHANGED from system

I'm trying to find out what is responsible for constantly causing the following messages to be printed to logcat. 10-08 11:28:30.919 5258 5273 E ActivityManager: Sending non-protected broadcast ...
0
votes
0answers
111 views

adb: failed to read command: Undefined error: 0

I tried to use adb sideload and gotten following error: $ adb sideload marlin-ota-ppr2.181005.003-469ae02d.zip serving: 'marlin-ota-ppr2.181005.003-469ae02d.zip' (~94%) adb: failed to read ...
0
votes
0answers
30 views

Android Restarts automatically after adb command recieved

My device (Samsung J7 Prime, running the stock ROM) recently updated from Android version 7.0 to 8.0. When I connect it to Android Studio and run the app, it successfully installs the app – but when ...
0
votes
1answer
944 views

How to edit build.prop without root and without custom recovery?

I have an old Motorola-Verizon phone. Since it is a Verizon exclusive model, they didn't left any chance of rooting phone, unlocking bootloader or installing custom recovery. So my question is Is it ...
0
votes
1answer
14 views

Android device is listed and recognized using adb, Hardware Overview but won't show in Finder?

I'm using a Macbook Pro OS X Sierra, with Android File Transfer installed. When plugging in an Asus Zenfone 2, a popup shows with the message (minus the Initialize button): However, this is followed ...
1
vote
0answers
42 views

xt1527 in boot loop with usb debugging disabled

a couple days ago my xt1527 started acting weird. Gapps started to crash out of nowhere. Today, every app that I tried to open crashed 2 seconds after, so I turned my device off to reboot and see what ...
0
votes
0answers
115 views

“Unknown admin: ComponentInfo” error

I always get the same error "component info", some solution to make "dpm set-profile-owner". I am using "terminal.apk", have root permissions and the user is created "id 10" as shown in "pm list ...
0
votes
1answer
32 views

My android device doesn't show up when I do ADB Devices but DOES show up in my Chrome developer tools

Really not sure what's going on because it seems to be detected by chrome when I plug in but ADB doesn't know whats going on.