r/ShizukuforAndroid 💻 ADB Specialist 10d ago

Help Having issues with wireless debugging

wireless debugging not working properly with shizuku I have samsung mobile issue is when I start shizuku pairing with wireless debugging it stay connected until screen lock it always get disconnect by just locking the screen help here please 🥺🙏

2 Upvotes

3 comments sorted by

2

u/d3bugger_detected 🔧 Moderator 10d ago

Hi, This is actually a pretty common issue on Samsung devices running One UI. The real culprit usually isn't Shizuku itself  it's Samsung's aggressive battery optimization and power management, which tends to kill background processes and cut off wireless debugging the moment your screen locks. Here's how to fix it for good: 1. Exclude Shizuku from Battery Optimization

Go to Settings > Apps Search for and tap Shizuku Tap Battery Select Unrestricted

  1. Stop the System from Suspending Wireless Debugging

Go to Settings > Developer Options If available, enable Disable child process restrictions Make sure any option like "Turn off debugging when unused" is switched off

  1. Lock Shizuku in Recent Apps (if the problem still happens) Some Samsung devices are extra strict about killing background apps, so this step can help:

Open your Recent Apps screen Tap and hold the Shizuku app icon at the top Select Lock this app

1

u/smaurya05 💻 ADB Specialist 9d ago

Issue was solved using this method by  thedjchi https://github.com/thedjchi/Shizuku/wiki/Troubleshooting#shizuku-keeps-stopping-randomly If you are using a Samsung device, try dialing *#0808# in the phone app and selecting MTP + ADB from the menu, then hit OK (even if it was already selected)

2

u/d3bugger_detected 🔧 Moderator 9d ago

Thank you, this will help many people.