[Xposed] (Security) Disable Quick Settings Pulldown on Lock Screen

Search This thread

i5lee8bit

Senior Member
This is just a simple Xposed module that disables pulling down the notification shade / quick settings tiles while on the lock screen (but doesn't break media player controls on lock screen). Only tested on Pixel 4 and Pixel 4 XL on Android 10 (more on this later).

Background: This has always been an annoying aspect of Android for me, and it's dumb from a security standpoint. Being able to pull down the quick settings tiles on a locked phone is dumb. Why hasn't Android natively built this in yet? Using this and Gravity Box to disable power menu on lock screen makes me feel a lot better in the event my phone ever gets lost or stolen. It's dumb that anyone can steal your phone and immediately toggle your settings (turn off WiFi, Mobile Data, toggle Airplane Mode, etc) and/or turn the phone off... I've been spoiled for years by the OG HTC devs (particularly LeeDroid and Team Venom) and their ROMs with these features baked in, so it's back to using Xposed to fill that gap for me and my wife, lol. Anyway, I pair these mods along with the Lockwatch app from Play Store and it gives me more peace of mind. Hey, anything to increase the chances of recovering a lost or stolen phone, am I right?

Credits / Technical Details: This module is based off of char101's published Xposed Repo module, and all credits and thanks should go to him. This is the first app / APK I've compiled so it was a nice learning experience, but it was all based off of his source and I really just needed to remove a few lines of code to get it to work properly with our phones. His mod worked fine and disabled the quick settings pull down on the lock screen, as intended. The problem was that it would also prevent media player controls from functioning (and I would assume other possible functions as well). To fix this, I just removed DISABLE2_NOTIFICATION_SHADE references from the code, leaving DISABLE2_NONE and DISABLE2_QUICK_SETTINGS untouched. The mod still works perfectly as intended. Only tested on Pixel 4 / 4 XL on Android 10. I'm sure it would work on other devices as well.

I really just did this on a whim for me and my wife's own phones and wasn't planning on sharing it, but I figure other people may have also wanted this for their P4's as well, so enjoy. Again, all thanks go to @char101!

Installation:
- Download .APK file attached to this post.
* If you have char101's original module installed already, I would highly recommend uninstalling it first.
- It's an Xposed module. Install the APK and enable in your Xposed Manager.
- Reboot and test.

Based on: https://repo.xposed.info/module/com.github.char101.qslock

Source for modified module: https://github.com/i5lee8bit/xposed-qslock-P4mod
 

Attachments

  • NoQSInLockScreen-P4Mod_1.0-Q.apk
    9.6 KB · Views: 907
Last edited:

i5lee8bit

Senior Member
Just noticed something that worried me at first, but turned out to be nothing of concern afaik, but in case anyone else gets spooked by it: I just noticed last night that if you launch the camera while on the lock screen, you can still pull down the notification shade. Same can be said for other apps that can be active over lock screen (e.g. Phone app during active call).

However, the quick settings are still inaccessible while locked. The notification contents that do show will follow the same rules as your settings, so if you have it set to hide sensitive notification content (which you probably should... otherwise 2-factor authentication is extremely pointless if your device were lost or stolen), you still won't be able to see the notification content itself, just that there is a pending notification for that particular app.

I hope you're finding the mod useful, for anyone who is using it. Please let me know if you find any issues with the module, thanks. I'm by no means a developer, but I have more free time than usual for obvious global reasons and it's a fun learning experience while the free time lasts. =)
 

nanquan

Senior Member
Dec 30, 2015
131
31
I've been using the original NoQSInLockScreen, and while it did the job, it really bothered me that you couldn't use media controls on the lock screen (or expand notifications).

This mod took care of that problem. Really happy with it!

Just wanted to say thank you for putting it up!

Tested it on Android 9 (LineageOS 16.0).
 
Last edited:

nanquan

Senior Member
Dec 30, 2015
131
31
Just wanted to stop in and say thank you for the awesome edxposed mod! I appreciate the extra security and hope you're doing well!

Sent from my Pixel 4 XL using XDA Labs
Just wanted to let you know, as a fellow (now former) user of this mod, that I found a better way of doing this! So just thought I'd share:

Using GravityBox app for EdXposed framework you can simply define which individual QS tiles you want to secure. That way you still have access to the QuickSettings pulldown menu from the lockscreen (unlike this mod which disables it altogether), but things like Wi-Fi, Location, Airplane Mode etc. are secure and not accessible until you've unlocked your phone. It's a much more practical and elegant solution in my opinion.

Check out my post on this from Reddit where I describe the steps if you're interested:
https://www.reddit.com/r/LineageOS/comments/gdvwml/securing_quick_settings_tiles_on_lock_screen/
 
  • Like
Reactions: i5lee8bit

i5lee8bit

Senior Member
(edit)

09 June 21 update.. and the mod is still woring

I completely forgot about this mod, haha. But thanks for letting us know!

As @nanquan mentioned (a long time ago, lol), you can also achieve (essentially) the same thing by using GravityBox. It is indeed a more "elegant" solution, and since I already use GravityBox heavily, I now just use GB's tweaks to lock down the main comm tiles.

But I'm glad this still works, for those who still prefer to use it for whatever reason. I can see it still being useful if you have a lot of custom QS tiles and want to keep it all locked down.
 
  • Like
Reactions: vdevl

Suavie103

Senior Member
Jun 15, 2014
194
45
Google Pixel C
Google Pixel 4 XL
Successfully working on Android 12 using Lsposed-Zygisk magisk 24.3
 

Attachments

  • Screenshot_20220412-122749_Pixel Launcher.png
    Screenshot_20220412-122749_Pixel Launcher.png
    277.2 KB · Views: 198
  • Screenshot_20220412-122812_Shell.png
    Screenshot_20220412-122812_Shell.png
    188.6 KB · Views: 195
  • Screenshot_20220412-122853_Shell.png
    Screenshot_20220412-122853_Shell.png
    118.8 KB · Views: 196

kos25k

Senior Member
Nov 15, 2012
3,165
434
Hello,very usefull mod.Any chance to re-continue it?I use los 19.1 and keeping quick tiles unlocked is extremely unsafe these days..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    This is just a simple Xposed module that disables pulling down the notification shade / quick settings tiles while on the lock screen (but doesn't break media player controls on lock screen). Only tested on Pixel 4 and Pixel 4 XL on Android 10 (more on this later).

    Background: This has always been an annoying aspect of Android for me, and it's dumb from a security standpoint. Being able to pull down the quick settings tiles on a locked phone is dumb. Why hasn't Android natively built this in yet? Using this and Gravity Box to disable power menu on lock screen makes me feel a lot better in the event my phone ever gets lost or stolen. It's dumb that anyone can steal your phone and immediately toggle your settings (turn off WiFi, Mobile Data, toggle Airplane Mode, etc) and/or turn the phone off... I've been spoiled for years by the OG HTC devs (particularly LeeDroid and Team Venom) and their ROMs with these features baked in, so it's back to using Xposed to fill that gap for me and my wife, lol. Anyway, I pair these mods along with the Lockwatch app from Play Store and it gives me more peace of mind. Hey, anything to increase the chances of recovering a lost or stolen phone, am I right?

    Credits / Technical Details: This module is based off of char101's published Xposed Repo module, and all credits and thanks should go to him. This is the first app / APK I've compiled so it was a nice learning experience, but it was all based off of his source and I really just needed to remove a few lines of code to get it to work properly with our phones. His mod worked fine and disabled the quick settings pull down on the lock screen, as intended. The problem was that it would also prevent media player controls from functioning (and I would assume other possible functions as well). To fix this, I just removed DISABLE2_NOTIFICATION_SHADE references from the code, leaving DISABLE2_NONE and DISABLE2_QUICK_SETTINGS untouched. The mod still works perfectly as intended. Only tested on Pixel 4 / 4 XL on Android 10. I'm sure it would work on other devices as well.

    I really just did this on a whim for me and my wife's own phones and wasn't planning on sharing it, but I figure other people may have also wanted this for their P4's as well, so enjoy. Again, all thanks go to @char101!

    Installation:
    - Download .APK file attached to this post.
    * If you have char101's original module installed already, I would highly recommend uninstalling it first.
    - It's an Xposed module. Install the APK and enable in your Xposed Manager.
    - Reboot and test.

    Based on: https://repo.xposed.info/module/com.github.char101.qslock

    Source for modified module: https://github.com/i5lee8bit/xposed-qslock-P4mod
    4
    Just noticed something that worried me at first, but turned out to be nothing of concern afaik, but in case anyone else gets spooked by it: I just noticed last night that if you launch the camera while on the lock screen, you can still pull down the notification shade. Same can be said for other apps that can be active over lock screen (e.g. Phone app during active call).

    However, the quick settings are still inaccessible while locked. The notification contents that do show will follow the same rules as your settings, so if you have it set to hide sensitive notification content (which you probably should... otherwise 2-factor authentication is extremely pointless if your device were lost or stolen), you still won't be able to see the notification content itself, just that there is a pending notification for that particular app.

    I hope you're finding the mod useful, for anyone who is using it. Please let me know if you find any issues with the module, thanks. I'm by no means a developer, but I have more free time than usual for obvious global reasons and it's a fun learning experience while the free time lasts. =)
    2
    (edit)

    09 June 21 update.. and the mod is still woring
    2
    Hello,

    this is a great feature and I would like to install on my pixel 7 android 13.

    Anyone tried yet?
    Just tried it. Not doing anything.
    1
    @i5lee8bit Any chance of an update for Android 13?