MTK 6753预装应用

一、新建APK存放目录  vendor/mediatek/proprietary/custom/aeon6753_xxx/apps/test,并把APK 和SO库拷贝到test目录中

二、编写Android.mk

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := test
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk 
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE_PATH := $(TARGET_OUT_APPS)//拷贝路径
LOCAL_CERTIFICATE := platform

PRODUCT_COPY_FILES += \
        

include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := libMp4v2
LOCAL_SRC_FILES_64 := lib/arm64-v8a/libMp4v2.so
LOCAL_SRC_FILES_32 := lib/armeabi/libMp4v2.so
LOCAL_SHARED_LIBRARIES := libfile_op libnvram libstdc++
LOCAL_MULTILIB := both
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_SUFFIX := .so
include $(BUILD_PREBUILT)

三、在device/mediatek/xxx/device.mk 中添加PRODUCT_PACKAGES += xxx

 

 

 

你可能感兴趣的:(MTK 6753预装应用)