天天看點

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

繼續閱讀