4

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

Sashi Kiran
  • 156
  • 9
  • Since its wireless debugging, I am trying this in only Android11+ devices. – Sashi Kiran May 18 '22 at 14:33
  • There could be a way to get the intent when you are opening the settings via the shortcut. See logcat, there is `ActivityTastManager` that starts an settings intent, you just need to find a way to get those extras. `I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from uid 1000` – arenaq Oct 17 '22 at 08:19
  • Does this answer your question? [Any way to go directly to the "Enable Usb Debugging" page in Android?](https://stackoverflow.com/questions/55961409/any-way-to-go-directly-to-the-enable-usb-debugging-page-in-android) – xjonx Dec 20 '22 at 07:01
  • I am currently working on 13+. So the OS itself has this QS tile which takes me directly to the said screen resulting in making this question Obsolete for me. But thankyou for the effort for answering. Hope it might be helpful for someone else how needs this and respond accordingly... – Sashi Kiran Dec 24 '22 at 17:04

3 Answers3

2

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.

Sashi Kiran
  • 156
  • 9
  • 2
    On OnePlus phones with Android 13, the quick setting tile does not open the Wireless debugging screen. It just toggles it on and off. Device manufacturers always mess things up. – Amit Jayant Mar 17 '23 at 05:36
  • @AmitJayant if you long press on the quick setting it will bring you to the full Wireless Debugging menu then you can click on Pair device with QR code or whatever you want, at least this works on my Pixel 7 Pro – Samwise Ganges Jul 23 '23 at 21:47
  • 1
    @SamwiseGanges On OnePlus devices running Android 13, long press just closes the quick setting panel :( – Amit Jayant Jul 25 '23 at 16:10
2

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

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.

Samwise Ganges
  • 395
  • 6
  • 11