Disable access to everything on phone and access with pattern


I’m new to appgyver and have a small project in mind.

I would like to know if it is possible to disable access to every part of the phone as a security feature that can only be enables through a set pattern or actions, like holding down the volume button and power button for a prolonged period of time.

Alternatively, could I set an alarm that would sound if the app I created was exited and the user accesses other parts of the phone - admin, other apps, etc?



The fist option seems impossible,

As for the second one, you can make sound alerts when the user touches the screen also when the device position and acceleration is changed
but i cant think of a way to know if the user gets on the home screen using a button or a sliding motion