When I have the passcode enabled, you can still shut down my phone when you press the power button. Is there any way to prevent people from shutting down my phone?

  • There is a way, but I'd like to know which phone model and Android version
    – esQmo_
    Jan 11 '17 at 15:54
  • I have a Samsung galaxy phone in the J series. The android version is 6.0.1(Marshmallow). Jan 15 '17 at 11:11

You can't do it 100%, because it is, like mentioned by bmdixon and in here How to prevent someone from powering off an android device?, a hard-wired feature. But you can get rid of the on-screen-option with this App: Smart Lockscreen protector (Play Store)

Not the answer you're looking for? Browse other questions tagged or ask your own question.