I have a Samsung S7 running Nougat, rooted, stock ROM.
Is there a way to launch a fake "power off" application when the "Power off" menu item is chosen after the Power button is pressed, whether the phone is locked or unlocked? This app should show a blank screen as if the phone were off and a subsequent long-press of the Power button should restart the phone as it would normally. Ideally, it should also allow to enable a list of apps that will remain active (disabling the rest) in this fake powered-off mode.
I have a Cerberus licence and it allows fake power off, but only when the phone is locked.