How to mod android rom so none can ever install an app in it? I already know how to modify an android ROM by modifying files, remove and add it into ROM. But I don't have knowledge to building/compiling a ROM.

I want to lock the OS so none can ever install new app to it. Well at least for they that not have a knowledge to flash the ROM with other OS.

Is there a way to prevent user from install any application to the ROM?

like removing the market app or the package installer, pros n cons?
Your idea of removing the store and package installer should work.

To do so, delete the following apks (and any .odex files of the same name) from /system/app, either in your ROM image or after obtaining root.


DefaultContainerService.apk - used for app installs by both the Play store and Packageinstaller.
PackageInstaller.apk - This is used to install non-market apps.
Vending.apk - This is the Play store.
Phonesky.apk - This is the Play store on JB and some ICS builds.


With those gone (and the phone unrooted), it should be impossible to install anything.

Note : I have not tested this.  Making a backup before doing this would be advisable.