7,760 questions
0
votes
0
answers
35
views
MiniTouch in ADB devices(win 11)
I use adb to connect with my Noxplayer but showing this:
[14:34:26][ERROR]<airtest.core.android.touch_methods.touch_proxy> stdout[b''] stderr[b"mv: bad '/data/local/tmp/minitouch': Invalid ...
Advice
1
vote
1
replies
57
views
How to switch between ADB and ADBD
How to switch between the the two (adb and adbd) I'm trying to get to adb but it keeps kicking me into ADBD. And I'm not sure why could someone please explain. Thank you.
I'm not sure if this is a not ...
Advice
1
vote
1
replies
73
views
Having trouble connecting my phone with my laptop to open my app
I’m a beginner trying to run my Flutter app on my Android phone, but I’m having trouble connecting my device and installing the APK.
# Connect device via USB, then run: adb install build/app/outputs/...
0
votes
1
answer
96
views
Can you debug your app with a second user?
On various devices you can create additional users. On my device I encounter a strange storage issue: An app I develop cannot access it's external files dirs (while it works on another device). So I ...
0
votes
1
answer
95
views
After Android studio upgrade, not able to see list of devices in 'Select device' list
I was using an older version (Flamingo 2022) of Android studio. Due to a plugin dependency I upgraded it to Otter (2025), below issue persisted and downgraded to Android Studio Ladybug | 2024.2.1 RC 1 ...
0
votes
1
answer
123
views
React Native Android app not connecting to Metro Bundler
I'm trying to run my React Native app on Android using installDevDebug, and then starting Metro with:
npx react-native-start
Metro seems to bundle the app correctly (I can see in the console that the ...
2
votes
1
answer
93
views
What is the right format of packets in ADB pull?
I am working on an embedded RTOS system, and I want to support ADB file pulling based on open-source USB stack.
I read the document about ADB protocol (https://github.com/cstyan/adbDocumentation), and ...
0
votes
0
answers
116
views
Android Studio: “Unable to open debugger port / VMDisconnectedException”
Since my last upgrade to Android Studio Otter 2025.2.1, Gradle 8.13.1, and ADB 1.0.41 (Version 36.0.0-13206524), debugging via Wi-Fi has been rendered entirely useless. Sure, Wi-Fi debugging was ...
Tooling
0
votes
0
replies
88
views
how to adjust the NPU (on the Snapdragon 8 Gen 3) frequency and measure npu payload
ENV:
a rooted Android phone equipped with the Snapdragon 8 Gen 3 chip.
Question:
I can adjust the CPU/GPU frequency via sysfs (e.g., `echo xxx > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq`).
Are ...
Advice
0
votes
4
replies
56
views
How do I find an intent to get me as close to "Encryption & credentials" in Settings?
I’m trying to automate setting up a Trusted CA in an emulator. I know I could use
adb shell input tap
commands, but I’d rather leave that to a human. I just want to get the human as close to the
...
1
vote
0
answers
133
views
Frida on Android: how to locate native TLS verify/pinning path likely Cronet when classic BoringSSL hooks don't fire?
I'm on a rooted emulator Magisk target package is com.catdaddy.cat22. System http tools CA is installed. Java side HTTPS works bypassed TrustManagerImpl.verifyChain but calls to bobcatwweproduction....
1
vote
1
answer
345
views
HTTP Toolkit misses HTTPS request and Frida shows it as pinned
I'm intercepting traffic from an Android app on a rooted BlueStacks emulator (Windows). With HTTP Toolkit in Android Device via ADB mode, most traffic appears, but a specific HTTPS request to ...
0
votes
1
answer
96
views
Understanding what's happening in this script [closed]
I have a script, supposedly running in Android 12 ksh that works... but I can't understand why or how.
script begins with:
#!/system/bin/sh
is_sourced() {
[ "$_" = "is_sourced" ]
...
1
vote
0
answers
234
views
Set device owner when multiple users exist (without deleting users / losing data)
I’m building a desktop provisioner (Go CLI + ADB) for an enterprise Android app. The goal is to fully automate setting our app as device owner on already-deployed devices without factory reset and ...
1
vote
0
answers
134
views
How do I refresh the contact list in Android to make the green WhatsApp contact button appear in the Android contacts
When you add a contact to an Android mobile phone, the contact will after some seconds (or some other amount of time) should green WhatsApp contact info in the contact card.
A reliable way to ensure ...
0
votes
0
answers
175
views
Android Studio AVD crashes with “qemu-system-x86_64.exe – APPCRASH – 0xc0000005”
I’m running automated tests using Appium, ADB, and Python, with multiple Android Studio AVDs.
When I run four AVDs simultaneously, one of them occasionally crashes with this error in Windows Event ...
0
votes
1
answer
218
views
How to tell expo to use a certain emulator (or to skip a broken one)?
I have difficulties running our expo project on Android emulator. In principle it works, but I have a dead, broken emulator device in adb devices which I cannot get rid of (I think I tried everything.....
0
votes
0
answers
220
views
How to use ADB to disable immersive mode in a single application?
I know I've done it before, even to this app, but I've lost my notes and can't find it on the web. There's some adb shell command to make a specific package name not allowed to enter immersive (...
0
votes
0
answers
118
views
Is there any way to automatically detect adb port in bluestacks?
I am currently working on a project and need to connect in bluestacks using adb and code in c#:
I have a problem when every time I use the command adb:
C:\Windows\system32>"C:\Program Files\...
0
votes
1
answer
374
views
Android studio 2025.1.2:Device was detected by ADB but not Android Studio
I am using Android Studio 2025.1.2 to develop flutter applications .
After I connect my device, ADB can identify it, but when not Android Studio. I can not see my device in android studio connection ...
0
votes
0
answers
374
views
How to boot Android emulator from command line (i.e. without opening Android Studio)?
I'm using Windows 11. My Android emulator version is Android emulator version 35.6.11.0 (build_id 13610412) (CL:N/A).
I previously installed an Android device system software via the Device Manager in ...
0
votes
0
answers
78
views
Android System Monitoring: ADB polling vs. APK with Socket.IO - Which has lower performance overhead?
I need to collect various system metrics from an Android device, including:
Frame rate (FPS)
Memory usage
CPU frequency
Battery level
Battery voltage
Battery temperature
Battery current
Power ...
0
votes
1
answer
523
views
Android device not recognized for USB debugging
I have a fresh install of Android Studio Narwhal 2025.1.1 on Ubuntu Linux 22.04.5 LTS, and a Pixel 4a phone connected on USB.
I was able to install/run an app one time, I believe using USB, though I'm ...
0
votes
0
answers
104
views
How to change the ADB interface on emulator?
When I run emulator.exe on windows, it starts the adb server on 127.0.0.1:5555, but I want it to listen on all interfaces (0.0.0.0). Does anyone know if there’s a way to make the emulator listen for ...
0
votes
0
answers
383
views
Flutter device daemon fails to start after Android Studio “Narwhal” update (exit code 1)
I just updated Android Studio to Narwhal (version 2025.X), and now although:
adb devices shows my realme RMX2076
My phone USB‑debug dialog appears and accepts the computer
Virtual emulators still ...
0
votes
0
answers
188
views
How do I solve an "undefined symbol" error with adb (trying to run scrcpy)
I'm running scrcpy for the first time. I have android-tools and scrcpy installed. When I try to launch scrcpy from the terminal, I get this error:
scrcpy 3.3.1 <https://github.com/Genymobile/scrcpy&...
1
vote
1
answer
511
views
How to make wireless debugging persistent on android reboot?
I'm setting up an rooted android phone as an IP Webcam.
I'm linking my phone to a webserver using tailscale.
The approach was to have a script (/data/adb/service.d/99adb.sh) run on boot,
avoiding ...
0
votes
0
answers
40
views
How to select a WiFi network during Android device setup using automation? Automate WiFi selection screen during Android OOBE with Robot Framework
I’m trying to automate the process of selecting a WiFi network by its name during the initial setup of an Android device — the setup flow that includes selecting language, region, and connecting to ...
0
votes
0
answers
443
views
How to Allow Downgrade Installation When Installing a Non-Debuggable Package Using `adb install`?
I encountered the error INSTALL_FAILED_VERSION_DOWNGRADE while trying to install chrome100.apk using the adb install command:
➜ ~ adb install chrome100.apk
Performing Streamed Install
adb: failed to ...
2
votes
1
answer
1k
views
adb returns "error: unknown host service" when pairing device using Scrcpy wireless debugging
I'm trying to connect my Android device to my Windows 11 PC using Scrcpy over wireless debugging with ADB, but I keep running into this error when trying to pair:
> adb pair 192.168.1.7:434223
...
1
vote
4
answers
716
views
Why is Android Studio unable to connect to my Android device despite all troubleshooting steps?
I'm encountering an issue where Android Studio consistently fails to detect my Android device.
It shows that "Device was detected by ADB but not Android Studio.".
Here are the steps I've ...
0
votes
2
answers
245
views
Android Device Recognized by flutter devices but Not Selectable in IntelliJ IDEA
My Android device, connected via ADB, doesn't show up in Intellij IDEA, but when running flutter devices from the command line the device shows up and I can run flutter run to debug the application.
...
0
votes
0
answers
277
views
Flutter emulator device offline – adb fails with device offline error while native apps install fine
I'm facing a persistent issue with the Android Emulator while working on Flutter projects on my office laptop. The emulator boots and works perfectly when I install native apps (Kotlin/Java), but ...
4
votes
0
answers
439
views
Cannot Hit C++ Breakpoints on Samsung S23
As the title says, I am unable to debug C++ code on an S23 Ultra. We have a Vulkan bug that only exhibits on the Adreno chipset that the S23 uses.
I can build the app in Android Studio, have it load ...
0
votes
0
answers
72
views
I'd like some help to better understand how @devicefarmer/adbkit-logcat library works
I'm developing a small Node.js app, for now all it can do is track USB device connections using @devicefarmer/adbkit, which works fine.
Next I need to be able to read the logcat of each connected ...
0
votes
1
answer
72
views
How to capture adb pull and push output?
I need to run some adb commands through a small java application. Everything works fine but I can't intercept the output of the pull and push commands.
Here's a simplified example of what I've come up ...
0
votes
1
answer
56
views
adb shell mv Error [filename] not directory
I have encountered the following error when trying to rename a file on an android phone using adb on Windows. The mv command often gives me the following error:
mv: '/storage/emulated/0/Download/xrn/...
0
votes
1
answer
34
views
Dart:io Process.run method unable to find file or directory macos
so I want to run some adb commands in the setUp of my integration test.
I'm using this command to execute the test
flutter drive --driver=integration_test/integration_driver.dart --target=...
1
vote
0
answers
53
views
Android logcat readable buffer size is greater than total buffer size
So recently I ran adb logcat -g on my Samsung Galaxy S10 Lite, and I got the following result:
main: ring buffer is 5 MiB (4 MiB consumed, 20 MiB readable), max entry is 5120 B, max payload is 4068 B
...
0
votes
0
answers
146
views
adb devices show so many offline emulators,and my adb server auto shutdown every 2~5 min
when I upgrade new Android-Studio named:android-studio-2025.1.1.6-linux; And when I first start the new Android-Studio,the Issue show out!
When the issue show Out,I tap adb devices,it will show :
adb: ...
0
votes
0
answers
67
views
Enabling Camera Regulator GPIO via Sysfs (Android + Qualcomm)
I'm working on an Android-based embedded system using a Qualcomm Snapdragon 865XR (XR2 HDK). I'm trying to power up a camera module that requires enabling a regulator tied to GPIO_159.
This GPIO ...
1
vote
0
answers
242
views
adb error: protocol fault (couldn't read status message): Success when pairing Google Pixel Watch via Wireless LAN
I am trying to debug a Google Pixel Watch via Wireless LAN and get this:
adb pair XX.XX.XX.XX:XXXX
Enter pairing code: XXXXX
error: protocol fault (couldn't read status message): Success
It does not ...
0
votes
0
answers
33
views
Can't eject phone after running ADB
Sorry for the strange question.
I ran this on the command prompt to disable doze mode.
"adb shell dumpsys deviceidle disable"
All went well but I couldn't eject the phone as ADB was still in ...
2
votes
1
answer
286
views
ADB Root: backup / Restore Androids Account Manager credentials / fingerprints
I've been exploring ways to create a backup of the central account management on my rooted Android phone using ADB and potentially SQLite.
My goal is to ensure that I can restore either specific ...
-3
votes
1
answer
86
views
Unity doesn't load the device I connected
I created an empty Unity Mobile 3D project and when I tried to select my device which I wanna use for debug, saw that there isn't any device
USB-Debugging is turned on.
adb devices sees the device, it ...
1
vote
0
answers
69
views
Can I build my own Android adb client using existing adb API library? (not from scratch)
I have been using Adroid's SDK tools' adb (client) command from the terminal and works fine.
I want to build a program which does adb shell calls, pulls, pushes, etc. Instead of shelling out whenever ...
0
votes
1
answer
73
views
Using AHK v1 to save a screenshot from adb (redirect binary output to a file)
In an AHK script, I'm trying to redirect the binary output from adb to a file. adb exec-out screencap -p > Screenshot.png However, it looks like AHK's RunWait doesn't really handle binary output.
...
1
vote
0
answers
371
views
How can I use android virtual device (or emulator) running on my windows host to run RN expo app in dev container?
How can I use android virtual device (or emulator) running on my windows host through Android studio's device manager to run my React Native RN expo app in dev container?
I'm developing my RN expo app ...
0
votes
0
answers
133
views
Unable to Remove Accounts to set device owner in Android Device
enter image description here
I want to remove accounts from my Meta Quest device to set a new device owner, but I can’t do it anymore because the accounts seem to have disappeared.
When I run adb ...
2
votes
1
answer
150
views
Confusion of the behavior open() with O_CREAT|O_EXCL in Linux
I am working on an embedded Linux system (kernel-5.10.188), where adbd is running in the target system.
In the target system I created a file with echo "hello" > /data/open, then I ran ...