-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
155 lines (133 loc) · 7.11 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
# Makefile Reference
# Please use this file as the project Makefile reference
##############################################################################
# This value defines which overlay should be choose, only use for baidu internal.
# Support values: rom-mtk, baidu-4.0
# when your product is mtk, you can choose rom-mtk, otherwise set it to baidu-4.0
#-----------------------------------------------------------------------------
BAIDU_FRAMEWORK_OVERLAY_TYPE := baidu-4.0
##############################################################################
# Default DALVIK_VM_BUILD setting is 27
# android 4.0: 27
# android 4.1: 28
# htc t328t is special one
#-----------------------------------------------------------------------------
DALVIK_VM_BUILD := 27
##############################################################################
# Default DENSITY setting is hdpi
# this depends on the device's resolution
#-----------------------------------------------------------------------------
DENSITY := xhdpi
##############################################################################
# This value will control the method of pack or unpack image and so on
# you can use mtk/qualcomm/ti/nvidia
#-----------------------------------------------------------------------------
PLATFORM := nvidia
##############################################################################
# This value will control the method of unpack image when prepare BOOT when use a ota base zip
# you can use mtk/qualcomm/ti/nvidia
#-----------------------------------------------------------------------------
BASE_PLATFORM := nvidia
##############################################################################
# you can custom boot image and recovery image name
#-----------------------------------------------------------------------------
# BOOT_IMG := bootname
# RECOVERY_IMG := recoveryname
##############################################################################
# use for newproject, not unpack boot.img to BOOT, or not unpack recovery.img to RECOVERY
# Support Values:
# false, not unpack
#-----------------------------------------------------------------------------
# PRJ_UNPACK_BOOT_IMG := false
# PRJ_UNPACK_RECOVERY_IMG := false
##############################################################################
# customize weather use prebuilt image or pack from BOOT/RECOVERY directory
# Support Values:
# true, use prebuilt boot.img/recovery.img
# flase, pack boot.img/recovery.img from vendor/BOOT / vendor/RECOVERY
# NULL, none boot.img/recovery.img
#-----------------------------------------------------------------------------
PREBUILT_BOOT_IMG := false
PREBUILT_RECOVERY_IMG := true
##############################################################################
# Directorys which you want to remove in vendor directory
#-----------------------------------------------------------------------------
vendor_remove_dirs := app appbackup customize/resource media/audio/notifications media/zchgd
##############################################################################
# Files which you want to remove in vendor directory
#-----------------------------------------------------------------------------
vendor_remove_files := bin/zchgd
##############################################################################
# Vendor apks you want to use
#-----------------------------------------------------------------------------
vendor_saved_apps := FMRadioService Bluetooth Nfc
##############################################################################
# Apks build from current project root directory
# if the apk is decode from baidu:
# 1, check if the apk in LOCAL_BAIDU_UPDATE_RES_APPS (you can see it in build/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 := FM_Radio
##############################################################################
# Jars build from current project root directory
# if the jar is decode from baidu:
# 1, check if the jar in LOCAL_BAIDU_UPDATE_RES_APPS (you can see it in build/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 framework2 services HTCExtension
##############################################################################
# baidu_remove_apps: those baidu apk you want remove
#-----------------------------------------------------------------------------
# baidu_remove_apps := BaiduUpdate
##############################################################################
# baidu_modify_apps: which base the baidu's apk
# just override the res, append *.smali.part
#-----------------------------------------------------------------------------
baidu_modify_apps := Phone
##############################################################################
# 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
#-----------------------------------------------------------------------------
# property to show/hide feature of defaultWrite Settings
override_property += \
ro.baidu.default_write.settable=true
# modify for generate ota zip
override_property += \
ro.build.description=baidu_onex 2.17.1400.6 IMM76D CL96531 release-keys \
ro.build.fingerprint=htccn_chs/endeavoru/endeavoru:4.0.4/IMM576/96531.6:user/release-keys
# hide the soft mainkeys
override_property += \
qemu.hw.mainkeys=1
##############################################################################
# override_property: this property will override the build.prop
#-----------------------------------------------------------------------------
remove_property += \
ro.operator.optr \
ro.operator.spec \
ro.operator.seg
include $(PWD)/vendor.remove.mk
include $(PORT_BUILD)/main.mk