-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustomize.sh
More file actions
85 lines (79 loc) · 2.46 KB
/
customize.sh
File metadata and controls
85 lines (79 loc) · 2.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
85
#MMT Extended Config# MMT Extended Config Script
#Config Flags
MINAPI=30
MAXAPI=30
DYNLIB=true
#Replace list
REPLACE="
/system/media/theme/miui_mod_icons
/system/data-app/ota-miui-MiGalleryLockscreen
/system/product/priv-app/LatinIMEGoogle
/system/product/app/LatinIMEGoogle
/system/product/app/LatinImeGoogle
/system/media/bootaudio.mp3
/system/bin/diag_mdlog_system
/system/bin/kernellog.sh
/system/bin/logcat
/system/bin/logcatkernel.sh
/system/bin/logcatlog.sh
/system/bin/logd
/system/bin/logwrapper
/system/bin/mtdoopslog.sh
/system/bin/crash_dump32
/system/bin/crash_dump64
/system/bin/dumpstate
/system/bin/dumpsys
/system/bin/lpdump
/system/bin/lpdumpd
/system/bin/subsystem_ramdump_system
/system/xbin/mqsasd
/system/vendor/bin/diag_klog
/system/vendor/bin/diag_mdlog
/system/vendor/bin/diag_socket_log
/system/vendor/bin/diag_uart_log
/system/vendor/bin/logwrapper
/system/vendor/bin/pktlogconf
/system/vendor/bin/dumpsys
/system/vendor/bin/i2cdump
/system/vendor/bin/minidump64
/system/vendor/bin/subsystem_ramdump
/system/vendor/bin/tcpdump
/system/vendor/bin/dumpsys
/system/vendor/bin/i2cdump
/system/vendor/bin/minidump64
/system/vendor/bin/subsystem_ramdump
/system/vendor/bin/tcpdump
/system/vendor/bin/ssr_diag
/system/vendor/bin/ssr_setup
"
#Permissions
set_permissions() {
set_perm_recursive $MODPATH 0 0 0755 0644
}
#start uninstall script
unzip -qjo "$ZIPFILE" 'common/ua.sh' -d $TMPDIR >&2
chmod +x "$TMPDIR" 'ua.sh'
. $TMPDIR/ua.sh
#fix yellowish display
unzip -qjo "$ZIPFILE" 'common/nl.sh' -d $TMPDIR >&2
chmod +x "$TMPDIR" 'nl.sh'
. $TMPDIR/nl.sh
#Wifi Bonding (bysimonsmh)
[ -x "$(which magisk)" ] && MIRRORPATH=$(magisk --path)/.magisk/mirror || unset MIRRORPATH
array=$(find /system /vendor -name WCNSS_qcom_cfg.ini)
for CFG in $array
do
[[ -f $CFG ]] && [[ ! -L $CFG ]] && {
SELECTPATH=$CFG
mkdir -p `dirname $MODPATH$CFG`
ui_print "- Migrating $MIRRORPATH$SELECTPATH"
cp -af $MIRRORPATH$SELECTPATH $MODPATH$SELECTPATH
ui_print "- Starting modifiy"
sed -i '/gChannelBondingMode24GHz=/d;/gChannelBondingMode5GHz=/d;/gForce1x1Exception=/d;s/^END$/gChannelBondingMode24GHz=1\ngChannelBondingMode5GHz=1\ngForce1x1Exception=0\nEND/g' $MODPATH$SELECTPATH
}
done
[[ -z $SELECTPATH ]] && abort "- Installation FAILED. Your device didn't support WCNSS_qcom_cfg.ini." || { mkdir -p $MODPATH/system; mv -f $MODPATH/vendor $MODPATH/system/vendor;}
#MMT Extended Logic - Don't modify anything after this
SKIPUNZIP=1
unzip -qjo "$ZIPFILE" 'common/functions.sh' -d $TMPDIR >&2
. $TMPDIR/functions.sh