r/androiddev • • 28d ago

How to keep wireless debugging on 24/7 even after restarts?

If my phone restarts, I have to 1. connect it to a wifi network (I'm almost never on or near wifi), 2. go into settings and turn on wireless debugging 3. re-pair all my dev machines to its new port

How can I make this less painful?

6 Upvotes

4 comments sorted by

2

u/SnipesySpecial 27d ago

Just root/kernelsu/magisk/etc if you want that.

Its that way because otherwise an app can self adb connect on reboot, and give itself escalated privilege with 0 user involvement. Which is not great.

-1

u/Informal-Addendum435 27d ago

Can't you overpower it with USB debugging?

0

u/[deleted] 27d ago

[removed] — view removed comment

1

u/androiddev-ModTeam 26d ago

Use your own voice when writing. Posts and comments which appear to be generated, including those with excessive flourish, gushing or emojis, will be removed.