2012-02-29 41 views

Trả lời

31




Correction:
Sử dụng thẻ người dùng không còn được khuyến khích.
Thay vào đó,

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

Original post:

LOCAL_MODULE_TAGS định nghĩa trong đó xây dựng hương vị mô-đun này cần được cài đặt.
Chỉ cần cung cấp cho "người sử dụng" thẻ, nếu bạn muốn module được cài đặt trong tất cả các (user, userdebug, eng)

Bạn có thể tìm tài liệu đầy đủ 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. 
+1

Nếu thẻ sử dụng không còn đề nghị. Làm thế nào chúng ta có thể đánh dấu một mô-đun chỉ xuất hiện trong xây dựng eng. – Fakebear

+1

Sự hiểu biết của tôi là thẻ "eng" sẽ khiến mô-đun xuất hiện trong quá trình xây dựng eng. Thẻ "userdebug" sẽ khiến thẻ xuất hiện trong các bản dựng gỡ lỗi người dùng và thẻ "tùy chọn" sẽ khiến thẻ xuất hiện trong người dùng xây dựng IFF mô-đun được liệt kê trong PRODUCT_PACKAGES được xác định trong nhà cung cấp//độc quyền/phổ biến//thiết bị -vendor.mk –

+2

ETA: nếu bạn không muốn mô-đun được tạo * ở tất cả *, chỉ cần xóa hoàn toàn LOCAL_MODULE_TAGS. –

Các vấn đề liên quan