1、system/app
首先明确一点
include $(CLEAR_VARS)
include $(BUILD_PACKAGE)
组合用于编译带源码src文件夹
include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := APPS
include $(BUILD_PREBUILT)
组合用于编译带apk文件
不指定路径时,默认输出到 system/app 目录
frameworks\base\packages\EasterEgg\Android.mk
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v4 \ android-support-v13 \ android-support-dynamic-animation \ android-support-v7-recyclerview \ android-support-v7-preference \ android-support-v7-appcompat \ android-support-v14-preference \ jsr305 LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := EasterEgg LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) include $(call all-makefiles-under,$(LOCAL_PATH))
2、system/bin
3、system/etc
4、system/etc/xxxx
5、system/framework
6、system/lib
7、system/lib/xxxx
8、system/priv-app
9、system/xbin
10、system/yyyy
11、vendor/app
12、vendor/bin
13、vendor/etc
14、vendor/etc/xxxx
15、vendor/framework
16、vendor/lib
17、vendor/lib/xxxx
18、vendor/priv-app
19、vendor/xbin
20、vendor/yyyy
21、data
22、data/app
23、data/xxxx
24、root
25、root/bin
# 26、root/sbin
27、root/etc
28、root/usr
29、odm/app
30、oem/app