Making an app in the Android Source compile into system/app instead of data/app?

Patches picture Patches · Apr 13, 2012 · Viewed 7.7k times · Source

I'm compiling an Android ROM from source, and I have several apps that compile, but into data/app on the phone. They're uninstallable through the phone settings. I want them to be impossible to uninstall from the phone, and to compile into system/app instead of data/app.

Any advice?

edit:typo

Answer

Justin Buser picture Justin Buser · Mar 29, 2013

Add:

LOCAL_MODULE_PATH := system/app
LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_CERTIFICATE := platform