forked from VishwaKumaran/MIUI-8-For-Galaxy-S4-Active
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·84 lines (67 loc) · 3.46 KB
/
makefile
File metadata and controls
executable file
·84 lines (67 loc) · 3.46 KB
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
#
# Makefile for Samsumg S4 Active (i9295)
#
# 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 := MIUI8_jactivelte.zip
# The location for local-ota to save target-file
local-previous-target-dir :=
# All apps from original ZIP, but has smali files chanded
local-modified-apps :=
local-modified-jars := org.cyanogenmod.platform
# All apks from MIUI
local-miui-removed-apps := BugReport FM GameCenter MiGameCenterSDKService MiLivetalk Mipay MiuiSuperMarket MiuiVideo MiuiVoip QuickSearchBox SogouInput SystemAdSolution VoiceAssist WebViewGoogle XiaomiVip XMPass
local-miui-modified-apps := InCallUI MiuiSystemUI Provision TeleService SecurityCenter
# 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 := XXHDPI
PORT_PRODUCT = jactivelte_global
# All apps need to be removed from original ZIP file
local-remove-apps :=
include phoneapps.mk
#The certificate for release version
local-certificate-dir := security
local-target-bit := 32
# 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:
$(TOOLS_DIR)/post_process_props.py out/ZIP/system/build.prop other/build.prop
@echo copying files!
$(hide) cp -rf other/system $(ZIP_DIR)/
@echo goodbye! miui prebuilt binaries!
$(hide) rm -rf $(ZIP_DIR)/system/bin/app_process32_vendor
$(hide) cp -rf stockrom/system/bin/app_process32 $(ZIP_DIR)/system/bin/app_process32
@echo remove unnecessary libs!
$(hide) rm -rf $(ZIP_DIR)/system/lib64
$(hide) rm -rf $(ZIP_DIR)/system/lib/libDecRes_sdk.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libjni_eglfence.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libjni_filtershow_filters.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libjni_jpegstream.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libjni_latinime.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libjni_terminal.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/librsjni.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libminivenus.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libmresearch.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libsecurities_sdk.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libwebp.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libweibosdkcore_sogou.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/libxmpass_sdk_patcher.so
$(hide) rm -rf $(ZIP_DIR)/system/lib/xmpass_libweibosdkcore.so
@echo remove unnecessary files!
$(hide) rm -rf $(ZIP_DIR)/system/etc/CHANGELOG-CM.txt
$(hide) rm -rf $(ZIP_DIR)/system/recovery-from-boot.bak
$(hide) rm -rf $(ZIP_DIR)/system/media/audio/*
@echo use only miui sounds!
$(hide) cp -rf $(PORT_ROOT)/miui/system/media/$(local-density)/audio/* $(ZIP_DIR)/system/media/audio
$(hide) rm -rf $(ZIP_DIR)/system/media/audio/create_symlink_for_audio-timestamp