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
0answers
7 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? ...
1
vote
0answers
28 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 ...
2
votes
0answers
25 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)...
1
vote
0answers
42 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 ...
1
vote
0answers
18 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 ...
1
vote
1answer
20 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 ...
1
vote
0answers
58 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
29 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 ...
0
votes
0answers
10 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 ...
1
vote
0answers
22 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 ...
1
vote
0answers
31 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 ...
0
votes
1answer
74 views

How to root Gabb Wireless Z2?

I have a Gabb Wireless which is an Android that is programmed to be "dumb". By "dumb", I mean it only has core apps such as Settings, Phone, Messaging, etc. I like it because it is ...
0
votes
0answers
39 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 ...
0
votes
0answers
15 views

Binding to a specific interface in adb port forwarding

When running adb forward tcp:8080 tcp:8080, the port forward listens on localhost. Is it possible to make it listen on a specific interface?
0
votes
0answers
46 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 ...
0
votes
0answers
75 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 ...
0
votes
0answers
39 views

How to kill or stop LMK daemon? (lmkd)

I'd like to kill low memory killer daemon(lmkd) to estimate swap performance of my smartphone. I tried these commands inside a rooted adb shell ps -ef | grep lmkd kill -9 $(lmkd_pid) However, lmkd ...
2
votes
0answers
65 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 ...
1
vote
0answers
33 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 ...
0
votes
0answers
26 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 ...
0
votes
1answer
55 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 ...
2
votes
0answers
21 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....
1
vote
1answer
84 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
28 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 &...
1
vote
0answers
26 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: -...
1
vote
0answers
85 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 ...
1
vote
1answer
41 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:...
1
vote
0answers
28 views

Wireless debugging issue on Android 11

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 It ...
1
vote
0answers
26 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?
1
vote
1answer
172 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 ...
4
votes
1answer
61 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 ...
1
vote
0answers
84 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 ...
2
votes
0answers
78 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: ...
2
votes
0answers
22 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. ...
1
vote
0answers
22 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 ...
1
vote
0answers
23 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 ...
1
vote
0answers
74 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. ...
0
votes
0answers
26 views

Recover one month old deleted text message

I deleted a text message one month ago on my one plus 6t can I recover it back it is very urgent I do not have any kind of backup and my phone is not rooted yet.
1
vote
0answers
67 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 ...
3
votes
1answer
49 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 ...
1
vote
0answers
24 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 ...
0
votes
0answers
44 views

Can I bring android usb tethering network together with the wifi that android is connected to?

Since my computer does not have a built in wireless adapter and most market wireless adapters are horrible, I am using an android USB tethering feature to give my computer connection, while the ...
1
vote
0answers
91 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 (...
1
vote
0answers
19 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 ...
1
vote
0answers
41 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.
1
vote
0answers
62 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 ...
1
vote
1answer
44 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 ...

1
2 3 4 5
40