System App Permissions 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!
As ProNetGuru already pointed out, Titanium Backup could indeed be used for that:


root
install TiBu
convert app to system app (i.e. it gets installed to /system/apps
uninstall TiBu
unroot.


Done. That app would have access up to "signatureOrSystem" protection levels then (if specified so in its Manifest).

Giving it root access is something different – but probably not even needed here.