I locked down my device (running Android 6.0
+) so that only my application can run on it. I have to give these devices to the employees in my firm. Now I have implemented an Enterprise Mobility Management(EMM) solution to run only one application. But I'm afraid the employees still have access to Safe Mode through which they can uninstall my company app and get access to the entire device.
So I have come across various third party Kiosk Applications like Mobilock Pro who gives the functionality to restrict safe mode without rooting. The link to their Blog is here. Android has itself posted here that this restriction is possible with Marshmallow.
I have searched for similar questions but None of them used Marshmallow APIs.
So my question is how can I implement this restricted access of safe mode on my own? Any Help would be appreciated!