-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
129 lines (108 loc) · 6.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Makefile Reference
# Please use this file as the project Makefile reference
##############################################################################
# Default DALVIK_VM_BUILD setting is 27
# Only used for odex, if not, ignore...
#-----------------------------------------------------------------------------
DALVIK_VM_BUILD := 27
##############################################################################
# Default DENSITY setting is hdpi
# this depends on the device's resolution
#-----------------------------------------------------------------------------
DENSITY := hdpi
##############################################################################
# Default RESOLUTION setting is nothing
# this used to config the bootanimation
#-----------------------------------------------------------------------------
RESOLUTION :=
##############################################################################
# customize weather use prebuilt image or pack from BOOT/RECOVERY directory
# Support Values:
# vendor_modify_images := boot recovery
# boot/recovery, pack boot.img/recovery.img from vendor/BOOT / vendor/RECOVERY
# NULL, check boot.img/recovery.img in project root directory, if it exists,
# use a prebuilt boot.img/recovery.img, if not, nothing to do
#-----------------------------------------------------------------------------
vendor_modify_images := boot recovery
##############################################################################
# Directorys which you want to remove in vendor directory
#-----------------------------------------------------------------------------
vendor_remove_dirs := app appbackup vendor/operator media/audio/notifications
##############################################################################
# Files which you want to remove in vendor directory
#-----------------------------------------------------------------------------
# vendor_remove_files := bin/zchgd
##############################################################################
# Vendor apks you want to use
#-----------------------------------------------------------------------------
vendor_saved_apps := FMRadio MtkBt
##############################################################################
# Apks build from current project root directory
# if the apk is decode from baidu:
# 1, check if the apk in BAIDU_UPDATE_RES_APPS (you can see it in build/configs/baidu_default.mk)
# 2, if in, you need to change the resource id to "#type@name#t" or "#type@name#a" by idtoname.py:
# a, use "apktool d source/system/framework/framework-res.apk other/TMP/framework-res"
# b, use "idtoname.py other/TMP/framework-res/res/values/public_master.xml XXXX/smali"
# (XXXX is the directory where you decode baidu's apk to)
# 3, if not, just decode it
#
# if the apk is decode from vendor: just decode it
#
# eg: vendor_modify_apps := FMRadio
# you need decode FMRadio.apk to the project directory (use apktool d FMRadio.apk) first
# then you can make it by: make FMRadio
#-----------------------------------------------------------------------------
vendor_modify_apps := FMRadio
##############################################################################
# Jars build from current project root directory
# if the jar is decode from baidu:
# 1, check if the jar in BAIDU_UPDATE_RES_APPS (you can see it in build/configs/baidu_default.mk)
# 2, if in, you need to change the resource id to "#type@name#t" or "#type@name#a" by idtoname.py:
# a, use "apktool d source/system/framework/framework-res.apk other/TMP/framework-res"
# b, use "idtoname.py other/TMP/framework-res/res/values/public_master.xml XXXX/smali"
# (XXXX is the directory where you decode baidu's jar to)
# 3, if not, just decode it
#
# if the apk is decode from vendor: just decode it
#
# eg: vendor_modify_jars := android.policy
# you need decode android.policy.jar to the project directory (use apktool d android.policy.jar) first
# then you can make it by: make android.policy
#-----------------------------------------------------------------------------
vendor_modify_jars := framework mediatek-framework secondary_framework services
##############################################################################
# Directorys which you want to saved in baidu directory
#-----------------------------------------------------------------------------
# baidu_saved_dirs := media/audio/ui
##############################################################################
# Files which you want to saved in baidu directory
#-----------------------------------------------------------------------------
# baidu_saved_files := lib/libwebcore.so
##############################################################################
# baidu_remove_apps: those baidu apk you want remove
#-----------------------------------------------------------------------------
# baidu_remove_apps := BaiduUserFeedback.apk
##############################################################################
# baidu_modify_apps: which base the baidu's apk
# just override the res, app end *.smali.part
#-----------------------------------------------------------------------------
baidu_modify_apps := Phone BaiduCamera Settings BaiduMusicPlayer
##############################################################################
# baidu_modify_jars: which base the baidu's jar
# just append *.smali.part
#-----------------------------------------------------------------------------
baidu_modify_jars := android.policy
##############################################################################
# override_property: this property will override the build.prop
#-----------------------------------------------------------------------------
# hide the soft mainkeys
override_property += \
sys.product_default_lock_mode=1
ro.baidu.romer=cxd541806675
##############################################################################
# override_property: this property will override the build.prop
#-----------------------------------------------------------------------------
# remove_property += \
# dev.defaultwallpaper
include $(PORT_BUILD)/main.mk
include $(PORT_BUILD)/autopatch.mk