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

Send a broadcast command to Work profile

I have created an Android Enterprise and my app is in the Work profile and on the personal side. I am trying to send the broadcast to the app, but it is sent on the personal side and never on the work ...
user avatar
  • 111
0 votes
0 answers
199 views

Change Sound Mode without reboot

I'm trying to change the Sound Mode from "Mute" to "Vibrate" with the commands. adb shell settings put global mode_ringer 1 adb reboot Is it possible to apply it without reboot? ...
user avatar
1 vote
0 answers
103 views

Executing Edify script via adb shell

Edify script is a very limited language that is being used in flashable zips (mostly updater-script files); Within Edify script we can execute shell commands (run_program()) but what about the vice ...
user avatar
  • 455
2 votes
0 answers
322 views

Looking for a tool that can execute Dynamic Partitions operations

For managing dynamic partitions, there are a number of operations such as resize, remove, add_group ... When flashing a Rom, these commands are listed in dynamic_partitions_op_list file (with Rom file)...
user avatar
  • 455
1 vote
0 answers
468 views

PIN locked Pixel with broken screen and USB debugging OFF, OTG keyboard doesn't unlock it

I got a Google Pixel 1 with a smashed dead black screen locked by a known PIN that I would like to recover some photos from. Nothing vital but now it has become a personal crusade to do it! The good ...
user avatar
0 votes
0 answers
96 views

Unable to set removable SD card as the default location using ADB

I have a Sony Xperia (E2303) running Android 6.0.1. I have a 32 GB removable SD card. I got Android to format it. I think it is still a FAT32 file system. I was not given an option to format as ...
user avatar
0 votes
1 answer
57 views

Why isn't my phone recognized by my computer in Fastboot mode?

I have recently bought a Samsung Galaxy S42 5G, and was messing around with boot combinations. While I was doing this, I found out that the phone had Download mode, but also a Fastboot mode. I was ...
user avatar
0 votes
0 answers
89 views

🤔❓APK components - services, activities, broadcast & content receivers where's their data Stored?

As I understand Every APK install is associated with these components. Trying to figure out precisely where they are stored. Services Activities Broadcast receivers Content receivers For most apps ...
user avatar
0 votes
0 answers
47 views

Hide original app badge icon [Pixel Android 11, root allowed]

I wanted to ask if there's any way (settings, adb, Magisk) to hide the app icon of the original app on a homescreen shortcut. When I e.g. create a shortcut to a webpage in Firefox, there's always the ...
user avatar
  • 1
0 votes
0 answers
153 views

Output Analysis of dumpsys for a particular app

I am using dumpsys (a command-line tool from adb) to get some information for a specific app by using the command adb shell dumpsys meminfo packagename. So, I got the following output: Objects ...
user avatar
0 votes
0 answers
71 views

enabling usb/adb functions android

I am having a helluva time guys(&girls) & some insight & shared wisdom would be beyond appreciated. What I am needing to do is send adb commands to a few Samsung phones that have a few ...
user avatar
0 votes
0 answers
15 views

My Redmi note5 power button is broken and the batteries have now run out...How do i turn it back on?

I have turned on some accessibility features on my phone to help me bypass the need for the power and volume buttons most of the time. I also have a scheduled power off/on daily just in case the phone ...
user avatar
  • 1
1 vote
0 answers
32 views

Why would Android list some files that are not accessible (I/O error)?

For background, trying to resolve a problem with a Android 4.x tablet Denver TAC-97032 (Tablet battery replacement and alloc_device_open fail?). The device cannot boot fully, but I can connect to it ...
user avatar
  • 171
1 vote
0 answers
59 views

What can I do with an open source phone/kernel?

So this is my very first attempt in any kind of android development. I have here my phone's official kernel source. I was wondering if I can build this to boot or if it's ready for building. Also this ...
user avatar
0 votes
1 answer
3k views

(Not Solved Again) How to root Gabb Wireless Z2?

(UPDATE: The accepted answer has since been patched. 12-16-2021) I have a Gabb Wireless which is an Android that is programmed to be "dumb". By "dumb", I mean it only has core apps ...
user avatar
0 votes
0 answers
126 views

Remap Chromecast device button via ADB

I got a Chromecast with Google TV. It has the ability to emit certain infrared signals when a button on the remote is pressed, allowing the user to control both Chromecast and TV with one single ...
user avatar
0 votes
0 answers
550 views

pm Disable activity

Have been asked many times, how to block the installation of applications from an apk file, how to block the package installer ... The common answer is that it is impossible because even if you will ...
user avatar
  • 95
0 votes
0 answers
376 views

Programming an Android application to switch default SIM for mobile Data

I am working on a project in which I have to switch the default SIM for data automatically, and without the need for user intervention. I read some posts on internet and got to know a method in which ...
user avatar
2 votes
0 answers
203 views

Tried to ungoogle my android device, but accidentally removed a vital package, and neither it or google play store reinstalls through adb or apk's

I've got Coolpad Porto S, which is running Android 5.1. The apps I have been trying to reinstall were com.android.vending and com.google.android.webview (I don't have concrete evidence but after ...
user avatar
  • 31
1 vote
0 answers
173 views

There is no way for me to boot recovery mode on my tablet

So, I recently thought about rooting my Lenovo Tab M10 (according to the TWRP site, TB-X605F), so I flashed the latest version of TWRP to my tablet from fastboot, and realised: "Oh. I can't boot ...
user avatar
  • 11
0 votes
0 answers
71 views

Turning on "show pointer" breaks mirrored screen. How to turn off without phone screen

I am trying to help a friend who's screen broke on their Huawei P30. The screen is dead-dead. No touch, no light, nothing. So I tried to connect an external screen to it, an voila, I have a screen. I ...
user avatar
0 votes
1 answer
1k views

How to use phone as camera and microphone for PC via ADB?

There are many previous questions asking about how to use the phone as camera and microphone for PC. For example: Use my Android phone as the camera and microphone for PowerPoint slide recording ...
user avatar
  • 444
2 votes
0 answers
51 views

How to find PID of test runner

I have my app and my tests saved as following: App package name: com.my.app Test runner: com.my.app.test When I run the app by itself, I can use adb to see the pid of my app: adb shell ps | grep com....
user avatar
1 vote
1 answer
803 views

does "adb install"overwrite or skips when the apk is already installed?

i just want to have more clarity in what adb does by default . when i run adb install for an apk that is already installed the cmd only shows : Performing Streamed Install Success it does not specify ...
user avatar
  • 11
1 vote
0 answers
48 views

What is Android OS in context of Chrome OS?

What kind of operating system is Android? I've tried using other file types, but not any of them work: .ios, .img, .exe, .pkg. My terminal needs a password which is chromeos-setdevpasswd. Yet, when I ...
user avatar
  • 11
1 vote
0 answers
252 views

`adb shell service call isms` message size limit

I am using the following: adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "%num%" s16 "null" s16 "'%THISMSG%'" s16 "null" s16 &...
user avatar
1 vote
0 answers
37 views

Boot-Up System Test tools

I am a test automation script developer using Python. One of my recents tasks has been to create scripts that can output the following test cases from an Android device under test during boot-up: -...
user avatar
  • 111
1 vote
1 answer
315 views

How to write to an Android system file?

Why is writing to /sys/class/power_supply/battery/status having no effect? Accessed manually via adb shell as root, eg echo "Discharging" > /sys/class/power_supply/battery/status does not ...
user avatar
  • 113
1 vote
1 answer
151 views

Nokia 7.1 recovery mode adb shell

Recently, my Nokia 7.1 stopped booting properly. When I turn it on, it just goes to the "android one" scree, then stops. I managed to boot into recovery mode, and I got the following options:...
user avatar
3 votes
1 answer
494 views

Device not shown on ADB even after pairing for wireless debugging on Linux

Wireless debugging seems to pair, but then the device just does not show up. I tried it on Mac and it works, but it does not work on Linux. I am on a Samsung phone. I run adb pair [IP]:[PORT] [CODE]. ...
user avatar
1 vote
0 answers
173 views

How to get 3rd and 4th IMEI number for an android using ADB command?

I am using service call iphonesubinfo 3 i32 1 to get the 2nd IMEI number. I want to get 3rd and 4th number for quad sim phone. How to get that using adb shell command?
user avatar
1 vote
1 answer
1k views

Pixel 4a : adb detects device but fastboot command doesn't work

This is a self answered question that is different and may save hours of frustration to somebody Related questions but none that helped ADB detects my device but fastboot doesn't Yureka fastboot ...
user avatar
  • 37.9k
4 votes
1 answer
871 views

My phone is charging my MacBook over USB C, and not showing up as an adb device. Is there a fix?

Sorry in advance if this is a duplicate, I couldn't find a solution to this exact problem posted anywhere. I'm using Unity on macOS and I am trying to build for Android. I'm running into an issue ...
user avatar
1 vote
0 answers
341 views

Unable to get oem unlock data

I am dealing with a Motorola X4 that says "Your device is corrupt. It can't be trusted and will not boot." when ever I try to boot it up. I am able to get the device into fastboot mode, and ...
user avatar
2 votes
0 answers
323 views

Resize /system partition on Galaxy note 3 SM-N9005

I am trying to resize the partition /system using the parted and gdisk commands. But none of these commands succeed in changing mmcblk0 partitions after execution. The things I do are as follows: ...
user avatar
2 votes
0 answers
31 views

How can I turn on notifications on phone speakers when earphones are plugged in?

Phone: Redmi Note 8 Pro, MIUI Global 12.0.7.0 Stable (QGGMIXM), Android 10QP1A.190711.020 I can't seem to find a way to get notification sounds through my speakers if I have my earphones plugged in. ...
user avatar
1 vote
0 answers
53 views

Start button broke, USB debugging NOT enabled, need to start phone!

Basically I have a Moto X4 without USB debugging enabled and the start button doesn't work. I can boot up to AP Fastboot (the screen with the little droid in the background), but I don't have USB ...
user avatar
1 vote
0 answers
58 views

Authorize ADB connection from another connection

Let's say that I have access to the phone via serial port (edit: FTDI USB Serial Device converter). I want to install apk, so I need to have working adb connection. But I don't have an access to the ...
user avatar
  • 141
1 vote
0 answers
143 views

Should SELinux be Permissive to access /dev/diag

I am trying to set the SELinux to permissive on Android with no luck. I tried the command su 0 setenforce 0 it returns OK while still being Enforcing if checking immediately using getenforce command. ...
user avatar
  • 11
1 vote
0 answers
259 views

What folders on Android besides /sdcard, com.android.. telephony and contacts should be backed up to preserve common data?

I want to wipe my phone but backup as much data as possible that is stored on the phone itself. I can restore applications but things such as photos, SMS text messages, and some contacts are store on ...
user avatar
  • 161
3 votes
1 answer
156 views

Why does "tar -czh" produce a corrupt archive but "tar -ch | gzip" work fine?

I am trying to backup a directory from a phone over adb. When using the following command I get an archive which is corrupt: adb exec-out "tar -czh /sdcard/DCIM" > backup.tar.gz But with ...
user avatar
  • 161
1 vote
0 answers
69 views

Reducing Tx_Power for mobile hotspot - hostapd.conf

I am using rooted Samsung J2 pro with Marshmallow 6.0.1. My mobile hotspot uses a lot of battery. And this battery usage is reported by Android OS process by Smart Manager. I have reduced the tx_power ...
user avatar
  • 11
1 vote
0 answers
273 views

/data - Error: Failed to open the device

Device (Nook HD+) will not boot. It was running LOS 14.1 with TWRP recovery, to which I can still boot up, but any attempts to wipe, or format the /data partition fail. I also can access the shell (...
user avatar
1 vote
0 answers
28 views

ADB requires drivers that are installed, not fastboot though, what drivers are required for fastboot?

I want to use ADB to backup everything on my phone so I can use CFAutoroot and restore root permissions, without erasing my entire phone, or deleting an app. I've had issues with this phone, I still ...
user avatar
1 vote
0 answers
311 views

How to "adb push" files from linux to android without the non-permissive symlinks

I want to push over 120K small files including symlinks using "adb" but without those links if they fail in "remote symlink failed: Permission denied" to Android device.
user avatar
  • 111
1 vote
0 answers
185 views

What are the adb commands for Wipe>Swipe right to Factory Reset>yes in TWRP?

Question What are the adb commands to perform the following action sequence in TWRP: First click Wipe, then Swipe to Factory Reset, enter yes? TWRP documentation The interface shows the wipe>Swipe ...
user avatar
  • 237
1 vote
1 answer
107 views

Booting Fairphone Open OS automatically after sideloading from TWRP

After writing a bash code that automatically installs LineageOS on the Fair Phone 2 (FP2), I am also implementing the "reverse" OS installation, from LineageOS to Fairphone Open OS. From ...
user avatar
  • 237
1 vote
0 answers
164 views

Is it possible to unbrick an Allwinner Adroid tablet?

A few months ago I got my hands on a cheap allwinner tablet. I wanted to experiment with running linux on it, but in the process of my experimentation I (stupidly) deleted/overwrote both the /boot and ...
user avatar
  • 111
1 vote
1 answer
977 views

Device not detected in fastboot | REALME 3 PRO

I have device Realme 3 Pro. And I am trying to install TWRP. So, I downloaded In-depth test apk and got application reviewed. Then I booted into fastboot and device is not showing in device manager. I ...
user avatar
0 votes
1 answer
172 views

How to get the Stoock ROM from Huawei P30 lite New Edition (MAR-LX1B)?

I am trying to root my new Huawei P30 lite New Edition(MAR-LX1B). I found out that there is no official version of TWRP for Huawei P30 lite New Edition(MAR-LX1B). After a long research I found out ...
user avatar

1
3 4
5
6 7
43