How to open Wireless Debugging submenu in Android programmatically?

1.8k Views Asked by At

I am trying to build a shortcut to the Wireless Debugging screen and so far I have come to opening only up to the Developer Options submenu.

How do I open the Wireless Debugging screen from the code? Refer the screenshot for the screen I am mentioning.enter image description here

3

There are 3 best solutions below

3
Sashi Kiran On

I Still don't know how to implement this in Android 12, but in 13, Android itself provides this Quick Setting. So just go to the Quick Settings, Tap on Edit, scroll down to bottom and search for "Wireless Debugging" settings and drag it wherever you need it.

1
Александр Савин On

Just use "Quick Settings Developer tiles"(in Settings -> "Developer options") to add "Wireless Debugging" shortcut to the "Quick Settings"

here is video about it -> https://www.youtube.com/watch?v=Gq1IVs0_ScY

0
Samwise Ganges On

To add to the Quick Settings Developer Tiles solution, if you want to get to the actual Wireless Debugging menu rather than just turn it on and off, long press on the quick setting it will bring you there, then you can click on Pair device with QR code or whatever you want.