Какая польза от LOCAL_MODULE_TAGS? - PullRequest
26 голосов
/ 29 февраля 2012

Я хочу обновить свой файл Android.mk в пакете, чтобы создать этот новый пакет, но я не понимаю, какова цель LOCAL_MODULE_TAGS.

Что делает LOCAL_MODULE_TAGS?

1 Ответ

33 голосов
/ 14 марта 2012




Исправление:
Использование тега пользователя больше не рекомендуется.
Вместо этого

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

Исходное сообщение:

LOCAL_MODULE_TAGS определяет, в каком варианте сборки должен быть установлен этот модуль.
Просто укажите тег "user", если вы хотите, чтобы модуль был установлен во всех (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. 
...