android - LOCAL_MODULE_TAGS 有什么用?

标签 android frameworks package android-source android-build

我想在一个包中更新我的 Android.mk 文件以构建该新包,但我不明白 LOCAL_MODULE_TAGS 的用途是什么。

LOCAL_MODULE_TAGS 有什么作用?

最佳答案




更正:
不再推荐使用用户标签。
相反,

Add "LOCAL_MODULE_TAGS := optional"
Then add "LOCAL_MODULE" value to PRODUCT_PACKAGES section of product makefile.

原帖:

LOCAL_MODULE_TAGS 定义了这个模块应该安装在哪个构建风格中。
如果您希望将模块安装在所有 (user, userdebug, eng) 中,只需给出“用户”标签

您可以找到完整的文档 here

eng     This is the default flavor. A plain make is the same as make eng.

* Installs modules tagged with: eng, debug, user, and/or development.
* Installs non-APK modules that have no tags specified.
* Installs APKs according to the product definition files, in addition to tagged APKs.
* ro.secure=0
* ro.debuggable=1
* ro.kernel.android.checkjni=1
* adb is enabled by default. 

user    make user

This is the flavor intended to be the final release bits.

* Installs modules tagged with user.
* Installs non-APK modules that have no tags specified.
* Installs APKs according to the product definition files; tags are ignored for APK modules.
* ro.secure=1
* ro.debuggable=0
* adb is disabled by default.

userdebug   make userdebug

The same as user, except:

* Also installs modules tagged with debug.
* ro.debuggable=1
* adb is enabled by default. 

关于android - LOCAL_MODULE_TAGS 有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9496284/

相关文章:

frameworks - 推荐在线免费增值服务基础设施的开箱即用解决方案?

package - 如何创建一个简单的 debian 包(只需压缩/提取源代码或任何带有 debian 打包的文件)

c++ - 合并两个 C++ 包

android - 防止新 Intent 或切换应用程序破坏 Activity

安卓 : Custom DialogFragment so slow to display

android - 创建支持原生和支持 fragment/Activity 的库

node.js - Node 包 ( Grunt ) 已安装但不可用

android - ProgressDialog 未显示在 Activity 中

ios - 在 iOS 8.0 嵌入式框架中使用 Alamofire

PHP 框架 + LDAP