I have an application that needs root permissions to run. No biggie, all of my personal devices are rooted, so I am very comfortable with the process. The problem is that this application is to be used on company owned devices issued to certain employees and I don't want them to be able to uninstall the application nor do I want them having root access to the device.
I was thinking that the following process would accomplish my goals:
- Root the device
- Install my app as a system app
- Launch the application and grant su rights to it
- Unroot the device
Since it would be a system app, and the device wouldn't be rooted, users would be prevented from removing the app. What I am unsure of is whether or not that application would retain its root privileges once the device is unrooted?
Any feedback or insight would be greatly appreciated!