-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
147 lines (125 loc) · 6.34 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
# Makefile Reference
# Please use this file as the project Makefile reference
##############################################################################
# Default DALVIK_VM_BUILD setting is 27
# android 4.0: 27
# android 4.1: 28
# htc t328t is special one
#-----------------------------------------------------------------------------
DALVIK_VM_BUILD := 27
##############################################################################
# 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.img
##############################################################################
# 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 MediaProvider SoundLevelAlert Nfc Stk
##############################################################################
# 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 := Radio3
##############################################################################
# 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 services
##############################################################################
# baidu_remove_apps: those baidu apk you want remove
#-----------------------------------------------------------------------------
baidu_remove_apps := BaiduUserFeedback
##############################################################################
# baidu_modify_apps: which base the baidu's apk
# just override the res, append *.smali.part
#-----------------------------------------------------------------------------
baidu_modify_apps := Settings
##############################################################################
# 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 += \
qemu.hw.mainkeys=1
# Change default region and language
override_property += \
ro.product.locale.language=zh \
ro.product.locale.region=CN
# Add baidu modified property
override_property += \
ro.baidu.build.hardware=lt26i \
ro.baidu.build.hardware.version=1.0 \
ro.baidu.build.software=yi_3.0 \
ro.baidu.build.version.release=2.1 \
ro.product.manufacturer=Baidu
override_property += \
ro.config.notification_sound=Ding.mp3 \
ro.config.ringtone=Echo.mp3 \
ro.config.alarm_alert=alarm.mp3 \
ro.config.rootperm.enable=1
override_property += \
persist.sys.timezone=Asia/Shanghai \
persist.sys.usb.config=mass_storage,adb
# property to show/hide feature of defaultWrite Settings
override_property += \
ro.baidu.default_write.settable=true
##############################################################################
# override_property: this property will override the build.prop
#-----------------------------------------------------------------------------
remove_property += \
dev.defaultwallpaper
##############################################################################
# Special case for Sony LT26i, vendor miss dbus.conf, use BAIDU_PREBUILT to keep it.
#-----------------------------------------------------------------------------
BAIDU_PREBUILT += \
etc/dbus.conf
################### Auto Patch Constants Definition #########################
# Current ROM version and the new version to be ugraded.
# These two are useful for ROM upgrading.
# When UPGRADE_VERSION is none, means to upgrade to the newest version.
#-----------------------------------------------------------------------------
ROM_VERSION := ROM39
#UPGRADE_VERSION := ROM39
include $(PORT_BUILD)/main.mk
include $(PORT_BUILD)/autopatch.mk