-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
188 lines (159 loc) · 9.18 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
BASE :=base_cm
# 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 := 540x960
##############################################################################
# Default MINI_SYSTEM is false
# Cut the useless resource or not
# if MINI_SYSTEM is true, it will cost much more time to build, and of course
# the size of system size will be reduced.
#-----------------------------------------------------------------------------
MINI_SYSTEM := false
##############################################################################
# Defaul NO_SYSTEM_IMG is true
# If you want generate an system.img, set it to false
#-----------------------------------------------------------------------------
NO_SYSTEM_IMG := true
##############################################################################
# Default SIGN_OTA is true
# If your pc's memory is lower than 2GB, you better set it to false
#-----------------------------------------------------------------------------
SIGN_OTA := false
##############################################################################
# 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
##############################################################################
# customize weather add assert in update-script of ota package
# set false if you don't need this assert function
#-----------------------------------------------------------------------------
RECOVERY_OTA_ASSERT := false
##############################################################################
# customize weather create update script in system/etc/install-recovery.sh
# set true if you want to update recovery image when boot-up
#-----------------------------------------------------------------------------
# make_recovery_patch := true
##############################################################################
# Directorys which you want to remove in vendor directory
#-----------------------------------------------------------------------------
vendor_remove_dirs := app vendor/operator/app
##############################################################################
# Files which you want to remove in vendor directory
#-----------------------------------------------------------------------------
# vendor_remove_files := bin/zchgd
##############################################################################
# Vendor apks you want to use
#-----------------------------------------------------------------------------
vendor_saved_apps := Bluetooth BluetoothExt
##############################################################################
# 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:
# a, use "apktool d source/system/framework/framework-res.apk other/TMP/framework-res"
# b, use "idtoname 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:
# a, use "apktool d source/system/framework/framework-res.apk other/TMP/framework-res"
# b, use "idtoname 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 := android.policy framework framework2 pm services telephony-common
##############################################################################
# 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 := NfcNci.apk BaiduAppSearch.apk BaiduBackupRestore.apk BaiduClickSearch.apk BaiduMap.apk BaiduVideoEditor.apk GameCenter.apk SearchBox.apk BaiduDirectShare.apk Email2.apk Exchange2.apk HelpBook.apk iReader.apk BaiduLightApp.apk
##############################################################################
# baidu_modify_apps: which base the baidu's apk
# just override the res, append *.smali.part
#-----------------------------------------------------------------------------
baidu_modify_apps := SettingsProvider BaiduServiceFramework Settings TeleService Keyguard SystemUI MediaProvider
##############################################################################
# baidu_modify_jars: which base the baidu's jar
# just append *.smali.part
#-----------------------------------------------------------------------------
#baidu_modify_jars := framework-yi
##############################################################################
# override_property: this property will override the build.prop
#-----------------------------------------------------------------------------
# The property decide whether hide the soft mainkeys.
# If 1, hide the soft mainkeys. If 0, display the soft mainkeys.
# You should configure the property according to your device.
# override_property += \
# qemu.hw.mainkeys=0
# The property decide whether the device support the phone book index in the sim card.
# If true, support the phone book index. If false, don't support the phone book index.
# You should configure the property according to your device.
# In general, most devices support the phone book index, so the property default value is true.
# Becareful about the initial number of index, some devices start from 0, while others start from 1.
override_property += \
phone_book_index_supported=false
# The property decide your ID on the backend server which statistical data for your device.
# You should configure the property according to your ID, ie, replace "Coron" with your ID.
override_property += \
ro.baidu.romer=Coron_Hxs
##############################################################################
# remove_property: this property will remove from the build.prop
#-----------------------------------------------------------------------------
# remove_property += \
# dev.defaultwallpaper
##############################################################################
# The FORMAT_PARAM_NUM is used to define format function's parameters number,
# which was in the META-INF/com/google/android/updater-script.
#
# If FORMAT_PARAM_NUM is 4, the format function may like this:
# format("ext4", "EMMC", "/dev/block/platform/hi_mci.1/by-name/system", "0");
#
# Otherwise if FORMAT_PARAM_NUM is 5:
# format("ext4", "EMMC", "/dev/block/platform/hi_mci.1/by-name/system", "0", "/system");
#-----------------------------------------------------------------------------
# FORMAT_PARAM_NUM := 4
include $(PORT_BUILD)/main.mk
include $(PORT_BUILD)/autopatch.mk