我想更新包中的 Android.mk 文件以构建新包,但我不明白该文件的目的是什么LOCAL_MODULE_TAGS
is.
什么是LOCAL_MODULE_TAGS
do?
更正:
不再建议使用用户标签。
反而,
Add "LOCAL_MODULE_TAGS := optional"
Then add "LOCAL_MODULE" value to PRODUCT_PACKAGES section of product makefile.
原帖:
LOCAL_MODULE_TAGS 定义了该模块应安装在哪种构建风格中。
如果您希望模块安装在所有(user、userdebug、eng)中,只需给出“user”标签
您可以找到完整的文档here https://source.android.com/setup/develop/new-device#build-variants
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.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)