Hi everyone, I've been using GrapheneOS for a while now, but I haven't found a good solution for one specific issue: locking the power menu (shutdown, restart, etc.). My goal is to prevent my phone from being powered off while it's locked. Right now, the phone can be turned off easily from the lock screen without even asking for the PIN.
I've tried an app that claims to disable the power menu, but it doesn't work well. The only drastic alternative I've come up with so far is using ADB with the following command to disable the power menu:
adb shell settings put global power_button_long_press 0
Does anyone have any other suggestions or alternatives for this issue?