Restart the android operating system


How can I restart the android operating system from the app?


Just outta curiosity, why do you want to restart device automatically??


For my particular application, which requires that the app is always running …
I want to reboot the system, to prevent android, activate some protection, battery saving, after several hours that the user does not interact with the app …
how can I do?


excuse me I do not understand…