天天看点

Android 如何将非系统jar包打入系统包

以cfgmanager.jar的com.tdtech.config.configurationmanager举例:

(1) cfgmanager.jar中添加文件com.tdtech.config.configurationmanager.xml:

2) android.mk中添加:

local_path:= $(call my-dir)

include $(clear_vars)

local_module_tags := optional

local_module := com.tdtech.config.configurationmanager.xml

local_module_class := etc

local_module_path := $(target_out_etc)/permissions

local_src_files := $(local_module)

include $(build_prebuilt)

(3) device/nollec/ep680v2/目录下ep680v2.mk添加:

product_packages += \

com.tdtech.config.configurationmanager.xml \

cfgmanager \

(4) device/nollec/ep680v2/目录下init.rc添加:

export bootclasspath

/system/framework/cfgmanager.jar

继续阅读