1、 将源代码复制到packages/apps/目录下,假设模块名为MyAPP。
2、 在MyAPP目录下新建一个Android.mk文件。
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SDK_VERSION := current
# List of libraries to include in thepackage
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES :=
LOCAL_STATIC_JAVA_LIBRARIES :=
# Build all java files in the javasubdirectory-
LOCAL_SRC_FILES:= $(call all-java-files-under, src)</