Root and then unroot afterwards? On my device, I have a bunch of stock applications. Some of them I don't need. Some of them are outdated. Here's what I want to do:


Root my device.
Uninstall all my unnecessary apps (no changing of roms).
Install the updates that my other stock apps need (like Facebook). Note: I meant I want to overwrite where the older version will be replaced. This is a common problem with stock applications. You can upgrade them but the older version is still around (possibly because of lack of root access), thus eating up unnecessary internal space.
Add some more other apps.
Secure some of the newly added apps so that they are uninstallable when I go back to being unrooted.
Unroot the phone.


As you can probably tell by now, I just want to overall change the applications on my phone. I also want to secure some new applications that I will be installing (e.g. make them act the same as the Facebook app wherein I can't uninstall it unless I have root). I don't want to install another rom, I don't want to overclock or anything. I just want to change the phone apps then return it back to being unrooted and be on my merry way.

Is this possible?
Absolutely. Well...almost. Just make sure you set the partition from rewritable to read-only once you're "unrooted". However, once you are unrooted, binaries like su and the SuperUser apk will in all probability removed, so you will in effect be dropped to a lower privilege level. This will have the side-effect of having the apps installed in the system partition as being uninstallable.

A workaround is to remove/uninstall apps from the system partition, remove root and then add the apps as user apps - this will ensure that they can be updated in the future without the need for root.