-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
145 lines (127 loc) · 6.71 KB
/
config.sh
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
##########################################################################################
#
# Magisk Module Template Config Script
# by topjohnwu
#
##########################################################################################
##########################################################################################
#
# Instructions:
#
# 1. Place your files into system folder (delete the placeholder file)
# 2. Fill in your module's info into module.prop
# 3. Configure the settings in this file (config.sh)
# 4. If you need boot scripts, add them into common/post-fs-data.sh or common/service.sh
# 5. Add your additional or modified system properties into common/system.prop
#
##########################################################################################
#########################################################
# #
# PureZ Xperia MOD for all Android 5.0+ Devices #
# by ZawZaw @xda-developers #
# #
#########################################################
##########################################################################################
# Configs
##########################################################################################
# Set to true if you need to enable Magic Mount
# Most mods would like it to be enabled
AUTOMOUNT=true
# Set to true if you need to load system.prop
PROPFILE=false
# Set to true if you need post-fs-data script
POSTFSDATA=false
# Set to true if you need late_start service script
LATESTARTSERVICE=false
##########################################################################################
# Installation Message
##########################################################################################
# Set what you want to show when installing your mod
print_modname() {
ui_print "******************************************"
ui_print "*** PureZ Xperia MOD for all Devices ***"
ui_print "*** ========================== ***"
ui_print "*** Magisk Moudle/Flashable ***"
ui_print "*** ***"
ui_print "*** (version-3.0) ***"
ui_print "*** ***"
ui_print "*** BY ***"
ui_print "*** ZawZaw @xda-developers ***"
ui_print "*** ***"
ui_print "******************************************"
}
##########################################################################################
# Replace list
##########################################################################################
# This is an example
REPLACE="
"
# Construct your own list here, it will override the example above
# !DO NOT! remove this if you don't need to replace anything, leave it empty as it is now
REPLACE="
/system/addon.d/purezxperia.sh
/system/app/SemcHome/XperiaHome.apk
/system/app/SemcIconPack/XperiaXIcon.apk
/system/etc/permissions/com.sony.device.xml
/system/etc/permissions/com.sonyericsson.colorextraction.xml
/system/etc/permissions/com.sonyericsson.dlna.xml
/system/etc/permissions/com.sonyericsson.dtcpctrl_private.xml
/system/etc/permissions/com.sonyericsson.dtcpctrl_protected.xml
/system/etc/permissions/com.sonyericsson.psm.sysmonservice.thermal.xml
/system/etc/permissions/com.sonyericsson.system.xml
/system/etc/permissions/com.sonyericsson.updatecenter.xml
/system/etc/permissions/com.sonyericsson.uxpres.xml
/system/etc/permissions/com.sonyericsson.video.player.service.xml
/system/etc/permissions/com.sonyericsson.video.settings.xml
/system/etc/permissions/com.sonymobile.home.resourceprovider.xml
/system/etc/permissions/com.sonymobile.imageenhancer.xml
/system/etc/permissions/com.sonymobile.playanywhere.xml
/system/etc/permissions/com.sonymobile.product.xml
/system/etc/permissions/com.sonymobile.sonyaudioeffect.xml
/system/framework/com.sony.device.jar
/system/framework/com.sonyericsson.colorextraction_impl.jar
/system/framework/com.sonyericsson.dlna_impl.jar
/system/framework/com.sonyericsson.dtcpctrl_private_impl.jar
/system/framework/com.sonyericsson.dtcpctrl_protected_impl.jar
/system/framework/com.sonyericsson.psm.sysmonservice.thermal_impl.jar
/system/framework/com.sonyericsson.system.jar
/system/framework/com.sonyericsson.updatecenter.jar
/system/framework/com.sonyericsson.uxp.jar
/system/framework/com.sonyericsson.uxpres.jar
/system/framework/com.sonyericsson.video.jar
/system/framework/com.sonyericsson.video.player.service.jar
/system/framework/com.sonyericsson.video.settings.jar
/system/framework/com.sonymobile.album.jar
/system/framework/com.sonymobile.home.resourceprovider.jar
/system/framework/com.sonymobile.imageenhancer_impl.jar
/system/framework/com.sonymobile.photoeditor.jar
/system/framework/com.sonymobile.playanywhere.jar
/system/framework/com.sonymobile.product_impl.jar
/system/framework/sonyaudioeffect.jar
"
##########################################################################################
# Permissions
##########################################################################################
set_permissions() {
# Only some special files require specific permissions
# The default permissions should be good enough for most cases
# Here are some examples for the set_perm functions:
# set_perm_recursive <dirname> <owner> <group> <dirpermission> <filepermission> <contexts> (default: u:object_r:system_file:s0)
# set_perm_recursive $MODPATH/system/lib 0 0 0755 0644
# set_perm <filename> <owner> <group> <permission> <contexts> (default: u:object_r:system_file:s0)
# set_perm $MODPATH/system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0
# set_perm $MODPATH/system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0
# set_perm $MODPATH/system/lib/libart.so 0 0 0644
# The following is default permissions, DO NOT remove
set_perm_recursive $MODPATH 0 0 0755 0644
# Set purezxperia permission file
set_perm $MODPATH/system/addon.d/purezxperia.sh 0 0 0755
}
##########################################################################################
# Custom Functions
##########################################################################################
# This file (config.sh) will be sourced by the main flash script after util_functions.sh
# If you need custom logic, please add them here as functions, and call these functions in
# update-binary. Refrain from adding code directly into update-binary, as it will make it
# difficult for you to migrate your modules to newer template versions.
# Make update-binary as clean as possible, try to only do function calls in it.