Can we prevent phone from shutting down like someone steals your phone and he is unable to shut it down.
In some devices like samsung ones there is an option to prevent shutdown by asking a password to power off device.
But it still does not prevent shutdown as it can be forced shutdown through power and volume buttons.
I was testing this adb command to hide the power ui from lock screen
I ran this command on my graphene os pixel 7.
adb shell settings put global power_button_long_press 0
it effectively disables the long press of the power button. But it must not disable forced shutdown or reboot through volume and power button.
When i disabled it i was unable to reboot or shutdown through buttons either by long pressing power or any combination with volume buttons.
Is it the intended behavior??
if we can't shutdown after this, can we effectively stop shutdown by hiding the quick settings as it has power menu there?? or am i missing something?