Lockscreen Powermenu Blocker logo

Lockscreen Powermenu Blocker (Magisk)

0.0(0 reviews)
By@sadiq-bd
Open Source
Downloads
3
Version
v2.0.0
Size
4.75 KB
Updated
26 Jul 2026

Module Overview

Lockscreen Powermenu Blocker is a lightweight, native C Magisk module that prevents access to the power menu when an Android device is locked. By intercepting hardware-level Linux events, it stops unauthorized users from turning off or restarting the device from the lockscreen.

I've been running this on my daily driver as a primary anti-theft safeguard to stop anyone from easily rebooting my locked phone. Instead of relying on heavy shell scripts, it uses a lightweight background C daemon to directly monitor the hardware power button node. If the device is locked, holding the power button instantly turns the screen off before the menu can even pop up, costing absolutely zero extra battery drain.

Core Features

  • Native C backend. It dumps clunky shell scripts in favor of standard Linux input structures for instant hardware interception.
  • Saves your battery by utilizing a low-overhead poll() event loop instead of constantly waking up the CPU to check device states.
  • Zero disk I/O. Everything runs strictly in RAM, meaning no temporary files get written or deleted during operation.
  • Automatically detects hardware. It dynamically scans your device's /dev/input/ nodes to find the exact one controlling your power key, regardless of your ROM.

Support & Requirements

  • Root Setup: Magisk or KernelSU
  • OS Compatibility: Android 10+ (works on most OEM and AOSP ROMs)

How to Install

  1. Open the Magisk or KernelSU app and navigate to the Modules section.
  2. Tap "Install from storage" and select the downloaded ZIP file.
  3. Reboot your device to start the daemon.

Rate this Module

Share your experience with the community.

* You will be prompted to login via Google in one click to verify your rating.