使Android Source中的应用程序编译为系统/应用程序而不是数据/应用程序? [英] Making an app in the Android Source compile into system/app instead of data/app?

查看:93
本文介绍了使Android Source中的应用程序编译为系统/应用程序而不是数据/应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从源代码编译Android ROM,并且我有几个可以编译的应用程序,但是可以在手机上转换为数据/应用程序.可通过电话设置将其卸载.我希望它们无法从手机上卸载,而不能编译为系统/应用程序,而不是数据/应用程序.

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.

有什么建议吗?

edit:typo

edit:typo

推荐答案

添加:

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

这篇关于使Android Source中的应用程序编译为系统/应用程序而不是数据/应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆