28

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

做什么的LOCAL_MODULE_TAGS

4

1 回答 1

34




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

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

原帖:

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

你可以在这里找到完整的文件

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. 
于 2012-03-13T22:44:31.443 回答