-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
93 lines (72 loc) · 3.92 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
#
# Makefile for gnote
#
# The original zip file, MUST be specified by each product
local-zip-file := stockrom.zip
# The output zip file of MIUI rom, the default is porting_miui.zip if not specified
local-out-zip-file := MIUI_MT11i.zip
# All apps from original ZIP, but has smali files chanded
local-modified-apps := Camera Fmapplication VFX
local-modified-jars :=
# All apks from MIUI
local-miui-removed-apps := MediaProvider SuperMarket Updater VoiceAssist GameCenter GameCenterSDKService
local-miui-modified-apps := AntiSpam Backup Browser BugReport Calculator Calendar CalendarProvider CloudService Contacts \
ContactsProvider DeskClock DownloadProvider DownloadProviderUi FileExplorer MiuiCompass \
MiuiGallery MiuiHome MiuiSystemUI MiuiVideo MiWallpaper Mms Music NetworkAssistant2 Notes PackageInstaller Phone \
PaymentService Provision QuickSearchBox Settings SoundRecorder TelephonyProvider ThemeManager VpnDialogs \
Weather WeatherProvider XiaomiServiceFramework YellowPage
# Config density for co-developers to use the aaps with HDPI or XHDPI resource,
# Default configrations are HDPI for ics branch and XHDPI for jellybean branch
local-density := HDPI
# All apps need to be removed from original ZIP file
local-remove-apps := SystemUI Gallery2 Launcher2 VideoEditor PicoTts VoiceDialer \
HoloSpiralWallpaper MagicSmokeWallpapers PhaseBeam Galaxy4 NoiseField Exchange2 \
#antstatenotifer FmRxService antradioservice Fmapplication
# To include the local targets before and after zip the final ZIP file,
# and the local-targets should:
# (1) be defined after including porting.mk if using any global variable(see porting.mk)
# (2) the name should be leaded with local- to prevent any conflict with global targets
local-pre-zip := local-pre-zip-misc
local-after-zip:= local-put-to-phone
# The local targets after the zip file is generated, could include 'zip2sd' to
# deliver the zip file to phone, or to customize other actions
include $(PORT_BUILD)/porting.mk
# To define any local-target
#updater := $(ZIP_DIR)/META-INF/com/google/android/updater-script
#pre_install_data_packages := $(TMP_DIR)/pre_install_apk_pkgname.txt
local-pre-zip-misc:
cp other/spn-conf.xml $(ZIP_DIR)/system/etc/spn-conf.xml
cp other/apns-conf.xml $(ZIP_DIR)/system/etc/apns-conf.xml
cp other/boot.img $(ZIP_DIR)/boot.img
cp other/system_fonts.xml $(ZIP_DIR)/system/etc/system_fonts.xml
@echo Add missing icons
cp -f other/icons $(ZIP_DIR)/system/media/theme/default/icons
cp other/extras/miui_mod_icons/*.png $(ZIP_DIR)/system/media/theme/miui_mod_icons/
# cp -f other/extras/lock_wallpaper $(ZIP_DIR)/system/media/theme/default/lock_wallpaper
@echo Add various apps
cp other/Email.apk $(ZIP_DIR)/system/app/Email.apk
cp other/XiaomiAuthenticator.apk $(ZIP_DIR)/system/app/XiaomiAuthenticator.apk
# cp other/MiuiUpdater.apk $(ZIP_DIR)/system/app/MiuiUpdater.apk
# cp other/MiuiWeather.apk $(ZIP_DIR)/system/app/MiuiWeather.apk
@echo Add various tweaks
cp other/08zram $(ZIP_DIR)/system/etc/init.d/08zram
cp other/09cpu $(ZIP_DIR)/system/etc/init.d/09cpu
cp other/11speedsd $(ZIP_DIR)/system/etc/init.d/11speedsd
cp other/12cleaner $(ZIP_DIR)/system/etc/init.d/12cleaner
cp other/99led $(ZIP_DIR)/system/etc/init.d/99led
@echo DalvikVM Build 28 Qualcomm Optimized
cp -f other/dalvikvm $(ZIP_DIR)/system/bin/dalvikvm
cp -f other/dexopt $(ZIP_DIR)/system/bin/dexopt
cp -f other/libdvm.so $(ZIP_DIR)/system/lib/libdvm.so
cp -f other/libqc-opt.so $(ZIP_DIR)/system/lib/libqc-opt.so
@echo Update build.prop
cp other/build.prop $(ZIP_DIR)/system/build.prop
@echo Update bootanimation
rm $(ZIP_DIR)/system/bin/bootanimation
cp other/bootanimation $(ZIP_DIR)/system/bin/bootanimation
cp -f other/bootanimation.zip $(ZIP_DIR)/system/media/bootanimation.zip
@echo Remove usless stuff
rm -rf $(ZIP_DIR)/data/miui/apps/*.apk
rm -rf $(ZIP_DIR)/system/media/video/*.mp4
rm -rf $(ZIP_DIR)/system/tts/lang_pico/*.bin
out/framework2.jar : out/framework.jar