Hi deema.mekdad2010oev, welcome to Thunkable!
Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide to make the best of your Thunkable Community experience!
This would not be possible on Thunkable, code from an app is usually blocked from accessing things like locking the phone, etc. Those permissions are usually only granted to the operating system itself.