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

Search This thread

antihate

Member
Oct 4, 2017
6
0
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

Awesome, just what I wanted with the quick settings. Thank you so much.



Works on samsung s10, android 12.
 

jonasof

New member
Feb 18, 2023
2
1
I was able to make it compatible with android 13.

It seems something changed in android that makes lsposed not find the "show" and "hide" methods of "KeyguardDisplayManager". I've change the code to use the "updateDisplays" method which is a still visible method to lsposed. Please test if it's working.

Source: https://github.com/jonasof/xposed-qslock-P4mod/tree/android-13
 

Attachments

  • xposed-qslock-P4mod-android-13.apk
    9.8 KB · Views: 24

mistickalone

Member
Aug 22, 2014
12
0
I was able to make it compatible with android 13.

It seems something changed in android that makes lsposed not find the "show" and "hide" methods of "KeyguardDisplayManager". I've change the code to use the "updateDisplays" method which is a still visible method to lsposed. Please test if it's working.

Source: https://github.com/jonasof/xposed-qslock-P4mod/tree/android-13
It works for me, thank you very much !
Tested on a samsung galaxy S8 on Android 13 with LineageOS 20.
Now we need a similar module to disable power button menu.
 

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?