essentials icon indicating copy to clipboard operation
essentials copied to clipboard

[Feature]: Secure Bluetooth tile

Open Entiti3039086 opened this issue 10 months ago • 6 comments

Problem Statement

Android usually lets anyone toggle the Bluetooth tile even from the lockscreen

Proposed Solution

Adding a tile from the app which uses the normal android Bluetooth pop-up but request unlocking the device

Alternatives Considered

No response

Priority

Medium - Would improve my experience

Contribution

  • [ ] I would be willing to implement this feature

Additional Context

This is the menu I mean 3fed36034b0f7619ddafbde30b804e9e.jpeg

Entiti3039086 avatar Jan 22 '26 02:01 Entiti3039086

Unfortunately it is no longer as easy like Android 15 since now we can toggle bluetooth without opening the tile in Android 16 QPR+. So Instead I am looking into a way to prevent access to all tiles, let's see :)

sameerasw avatar Jan 22 '26 08:01 sameerasw

Would you make this as another option with a menu for picking the tiles, which should get locked, if thats possible?

Entiti3039086 avatar Jan 22 '26 08:01 Entiti3039086

Would you make this as another option with a menu for picking the tiles, which should get locked, if thats possible?

I can't lock individual tiles... there's no way the SystemUI allowing us to inject a check before it's opening without root. So for the internet tile, what I does is I check for the network scan log which happens when we open the tile menu and then take actions. But the bluetooth tile is a special one that allows toggling off without even opening the menu. So I can not interfere with it at all.

Maybe the option is to see a way to re-enable bluetooth if was disabled but then mobile data is not controllable from 3rd party apps from what I've seen (unless Shizuku allows it)

So we are quite restricted on what we can do here.

sameerasw avatar Jan 22 '26 14:01 sameerasw

If it's not possible for everything, could a reverse engineered method work? Custom qsTile which forces to unlock and only then displays the Bluetooth menu for example?

Entiti3039086 avatar Jan 22 '26 18:01 Entiti3039086

If it's not possible for everything, could a reverse engineered method work? Custom qsTile which forces to unlock and only then displays the Bluetooth menu for example?

That will of course work but not sure how much control we can give tot he user to match the same experience... Also we can not replicate the Android 16 QPR+ Bluetooth tile since it's not a public API we can use so it will be just a regular QS tile.

Let's see :)

sameerasw avatar Jan 23 '26 06:01 sameerasw

I have come to the conclusion that we can not interfere with the split QS (The one with the dedicated toggle button inside the tile allowing to toggle without opening) tiles but will try to prevent the statusbar at all in #132

sameerasw avatar Mar 23 '26 14:03 sameerasw