AndroidMantifest.xml:android:sharedUserId="android.uid.system">
Android.mk LOCAL_CERTIFICAT:=platfrom 里有这句话app的用户是system_app
把src和res和
AndroidMantifest.xml提取出来,编写如下的Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
#LOCAL_DEX_PREOPT :=false
LOCAL_PACKAGE_NAME := Launcher
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
#include $(call all-makefiles-under,$(LOCAL_PATH))
在Android.mk里APP分别编译在app和pri_app里,如下区分
LOCAL_PRIVILEGED_MODULE := true
编译在system/pri-app中
LOCAL_MODULE_TAGS := optional这个表示编译到system/app中,
如果都没有,则是编译到data/app下。
阅读(2376) | 评论(0) | 转发(0) |