平台应用编译
平台应用demo的Android.mk写法:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := Test
LOCAL_CERTIFICATE := platform
LOCAL_PRIVATE_PLATFORM_APIS = true
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)
注: LOCAL_PRIVATE_PLATFORM_APIS 表明使用平台的API,否则无法调用平台的一些hide方法
添加模块编译项:
PRODUCT_PACKAGES += Test
平台应用裁剪
1.一般常规的裁剪方式,是把模块不加到PRODUCT_PACKAGES中,这种方式不好,不利于裁剪的统一个管理&#x