以cfgmanager.jar的com.***.config.ConfigurationManager举例:
(1) cfgmanager.jar中添加文件com.***.config.ConfigurationManager.xml:
<?xml version="1.0" encoding="utf-8"?> <permissions> <library name="com.***.config.ConfigurationManager" file="/system/framework/cfgmanager.jar"/> </permissions>
(2) Android.mk中添加:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := com.***.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.***.config.ConfigurationManager.xml \
cfgmanager \
(4) device/nollec/ep680v2/目录下init.rc添加:
export BOOTCLASSPATH
/system/framework/cfgmanager.jar
时间: 2024-10-26 12:13:18