将apk编译到指定目录

编译到data/app:

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_PREBUILT_PACKAGE := $(LOCAL_PATH)/SogouInput.apk
LOCAL_PACKAGE_NAME := SogouInput
LOCAL_CERTIFICATE := shared
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app

include $(PREBUILT_PACKAGE)

编译到system/app:

LOCAL_PATH:= $(call my-dir)

LOCAL_MODULE_TAGS := optional

include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-subdir-java-files)
//LOCAL_SRC_FILES := \
        $(call all-java-files-under, src)
LOCAL_CERTIFICATE := platform

LOCAL_JNI_SHARED_LIBRARIES := libkaicom

LOCAL_PACKAGE_NAME := KailibTest

include $(BUILD_PACKAGE)

# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))

你可能感兴趣的:(驱动,c语言学习备忘,linux,android学习笔记,android,相关知识)