LOCAL_MODULE_TAGS 有什么用? [英] What is the use of LOCAL_MODULE_TAGS?

查看:63
本文介绍了LOCAL_MODULE_TAGS 有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to update my Android.mk file in a package in order to build that new package, but I don't understand what the purpose of the LOCAL_MODULE_TAGS is.

LOCAL_MODULE_TAGS 有什么作用?

推荐答案




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




Correction:
Using user tag is no longer recommended.
Instead,

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

原帖:

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

LOCAL_MODULE_TAGS defines in which build flavor this module should be installed.
Just give "user" tag, if you want the module to be installed in all of (user, userdebug, eng)

您可以在此处找到完整文档

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. 

这篇关于LOCAL_MODULE_TAGS 有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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