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

199 posts
Thanks Meter: 277
By i5lee8bit, Senior Member on 3rd April 2020, 07:03 AM
Post Reply Email Thread
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!

- 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:

Source for modified module:
Attached Files
File Type: apk NoQSInLockScreen-P4Mod_1.0-Q.apk - [Click for QR Code] (9.6 KB, 32 views)
The Following 9 Users Say Thank You to i5lee8bit For This Useful Post: [ View ] Gift i5lee8bit Ad-Free
8th April 2020, 06:45 PM |#2  
OP Senior Member
Flag New Jersey
Thanks Meter: 277
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. =)
The Following 3 Users Say Thank You to i5lee8bit For This Useful Post: [ View ] Gift i5lee8bit Ad-Free
4th May 2020, 08:31 PM |#3  
Senior Member
Thanks Meter: 27
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).
20th May 2020, 09:05 PM |#4  
Senior Member
Flag Spokane
Thanks Meter: 202
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
20th May 2020, 09:15 PM |#5  
Senior Member
Thanks Meter: 27
Originally Posted by bradical711

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:
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes