-
Notifications
You must be signed in to change notification settings - Fork 4
/
customize.sh
385 lines (350 loc) · 17.2 KB
/
customize.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
## MFFM v11
## 2024.10.05
#Debugging mode enabled
set -xv
#Original Paths
[ -d ${ORIDIR:=`magisk --path`/.magisk/mirror} ] || \ # Borrowed From OMF
ORIDIR=
[ -d ${ORIPRD:=$ORIDIR/product} ] || \ # Borrowed From OMF
ORIPRD=$ORIDIR/system/product
[ -d ${ORISYSEXT:=$ORIDIR/system_ext} ] || \ # Borrowed From OMF
ORISYSEXT=$ORIDIR/system/system_ext
ORIPRDFONT=$ORIPRD/fonts
ORIPRDETC=$ORIPRD/etc
#ORIPRDXML=$ORIPRDETC/fonts_customization.xml
ORIPRDXML=/sdcard/MFFM/fontsxml/fonts_customization.xml
ORISYSFONT=$ORIDIR/system/fonts
ORISYSETC=$ORIDIR/system/etc
#ORISYSXML=$ORISYSETC/fonts.xml
ORISYSXML=/sdcard/MFFM/fontsxml/fonts.xml
#MODPATH
PRDFONT="$MODPATH/$(if [ "$ORIPRD" = "$ORIDIR/product" ]; then echo "product"; else echo "system/product"; fi)/fonts"
PRDETC="$MODPATH/$(if [ "$ORIPRD" = "$ORIDIR/product" ]; then echo "product"; else echo "system/product"; fi)/etc"
PRDXML=$PRDETC/fonts_customization.xml
SYSFONT=$MODPATH/system/fonts
SYSETC=$MODPATH/system/etc
SYSEXTETC="$MODPATH/$(if [ "$ORISYSEXT" = "$ORIDIR/system_ext" ]; then echo "system_ext"; else echo "system/system_ext"; fi)/etc"
SYSXML=$SYSETC/fonts.xml
MODPROP=$MODPATH/module.prop
FONTDIR=$MODPATH/Files
#MFFM
MFFM=/sdcard/MFFM
[ ! -d $MFFM ] && mkdir -p $MFFM
#API
APILEVEL=$(getprop ro.build.version.sdk)
grep -q 'miui' $SYSXML && {
echo "- Miui detected, Not supported, Aborting installation."
exit 1
}
mffmex(){
sleep 1
ui_print ""
ui_print "- Copying MFFM folder resources to module directory."
if [ -n "$(find "$FONTDIR" -maxdepth 1 -type f -name "MFFM.ttf" -o -name "Regular.ttf")" ]; then
:
else
snglfnt=$(find "$MFFM" -maxdepth 1 -type f -name "MFFM.ttf")
if [ -n $snglfnt ]; then
cp $snglfnt $FONTDIR
fi
fi
fonts="Black.ttf BlackItalic.ttf Bold.ttf BoldItalic.ttf Medium.ttf MediumItalic.ttf Regular.ttf Italic.ttf Light.ttf LightItalic.ttf Thin.ttf ThinItalic.ttf"
for file in $fonts; do
if [ -e $FONTDIR/$file ] || [ -e $FONTDIR/MFFM.ttf ]; then
:
else
fontstocopy="$MFFM/Fonts/$file"
for i in "$fontstocopy"; do
if [ -e $i ]; then
cp $fontstocopy $FONTDIR
fi
done
fi
done
if [ -n "$(find "$FONTDIR" -maxdepth 1 -type f \( -name "*.zip" -o -name "*.ttf" \) -name "*Beng*")" ]; then
:
else
bengali=$(find "$MFFM" -maxdepth 1 -type f \( -name "*.zip" -o -name "*.ttf" \) -name "*Beng*")
if [ -n "$bengali" ]; then
cp $bengali $FONTDIR
fi
fi
if [ -n "$(find "$FONTDIR" -maxdepth 1 -type f \( -name "*.zip" -o -name "*.ttf" \) -name "*Serif*")" ]; then
:
else
serif=$(find "$MFFM" -maxdepth 1 -type f \( -name "*.zip" -o -name "*.ttf" \) -name "*Serif*")
if [ -n "$serif" ]; then
cp $serif $FONTDIR
fi
fi
if [ -n "$(find "$FONTDIR" -maxdepth 1 -type f -name "Mono*.ttf")" ]; then
:
else
monofile=$(find "$MFFM" -maxdepth 1 -type f -name "Mono*.ttf")
if [ -n "$monofile" ]; then
cp $monofile $FONTDIR
fi
fi
}
v() {
sed -i "s/\(version=\)\(.*\)/\1\2$1/" module.prop
}
mv $FONTDIR/bin $MODPATH/bin
base64 -d $MODPATH/bin > $MODPATH/f && tar xf $MODPATH/f -C $MODPATH
tar xf $MODPATH/data.xz -C $MODPATH
tar xf $FONTDIR/data -C $MODPATH
mkdir -p $PRDFONT $PRDETC $SYSFONT $SYSETC $SYSEXTETC
if [ ! -f "$ORISYSXML" ]; then
nohup am start -a android.intent.action.VIEW -d https://telegra.ph/Installation-Logic-for-seamless-installing-updating-12-28 >/dev/null 2>&1 &
exit 1
else
cp "$ORISYSXML" "$SYSXML"
fi
[ -f $ORIPRDXML ] && cp $ORIPRDXML $PRDXML
SS="<family name=\"sans-serif\">" SSC="<family name=\"sans-serif-condensed\">" VRD="<alias name=\"verdana\" to=\"sans-serif\" \/>" GSN="<family customizationType=\"new-named-family\" name=\"googlesans\">"
GS="<family customizationType=\"new-named-family\" name=\"google-sans\">" GST="<family customizationType=\"new-named-family\" name=\"google-sans-text\">" GSB="<family customizationType=\"new-named-family\" name=\"google-sans-bold\">"
GSM="<family customizationType=\"new-named-family\" name=\"google-sans-medium\">" GSTM="<family customizationType=\"new-named-family\" name=\"google-sans-text-medium\">" GSTB="<family customizationType=\"new-named-family\" name=\"google-sans-text-bold\">"
GSTBI="<family customizationType=\"new-named-family\" name=\"google-sans-text-bold-italic\">" GSTMI="<family customizationType=\"new-named-family\" name=\"google-sans-text-medium-italic\">" GSTI="<family customizationType=\"new-named-family\" name=\"google-sans-text-italic\">"
[ -f "$FONTDIR/Thin.ttf" ] && thin="<font weight=\"100\" style=\"normal\">NotoSansBuhid-Regular.ttf</font>" || unset thin
[ -f "$FONTDIR/ThinItalic.ttf" ] && thinitalic="<font weight=\"100\" style=\"italic\">NotoSansCarian-Regular.ttf</font>" || unset thinitalic
[ -f "$FONTDIR/Light.ttf" ] && light="<font weight=\"300\" style=\"normal\">CarroisGothicSC-Regular.ttf</font>" || unset light
[ -f "$FONTDIR/LightItalic.ttf" ] && lightitalic="<font weight=\"300\" style=\"italic\">ComingSoon.ttf</font>" || unset lightitalic
[ -f "$FONTDIR/Regular.ttf" ] && regular="<font weight=\"400\" style=\"normal\">DroidSans.ttf</font>" || unset regular
[ -f "$FONTDIR/Italic.ttf" ] && italic="<font weight=\"400\" style=\"italic\">DroidSans-Bold.ttf</font>" || unset italic
[ -f "$FONTDIR/Medium.ttf" ] && medium="<font weight=\"500\" style=\"normal\">SourceSansPro-SemiBold.ttf</font>" || unset medium
[ -f "$FONTDIR/MediumItalic.ttf" ] && mediumitalic="<font weight=\"500\" style=\"italic\">SourceSansPro-SemiBoldItalic.ttf</font>" || unset mediumitalic
[ -f "$FONTDIR/Black.ttf" ] && black="<font weight=\"900\" style=\"normal\">SourceSansPro-Regular.ttf</font>" || unset black
[ -f "$FONTDIR/BlackItalic.ttf" ] && blackitalic="<font weight=\"900\" style=\"italic\">SourceSansPro-Italic.ttf</font>" || unset blackitalic
[ -f "$FONTDIR/Bold.ttf" ] && bold="<font weight=\"700\" style=\"normal\">SourceSansPro-Bold.ttf</font>" || unset bold
[ -f "$FONTDIR/BoldItalic.ttf" ] && bolditalic="<font weight=\"700\" style=\"italic\">SourceSansPro-BoldItalic.ttf</font>" || unset bolditalic
#-----
[ -f "$FONTDIR/Light.ttf" ] && glight="<font weight=\"300\" style=\"normal\">Lato-Regular.ttf</font>" || unset glight
[ -f "$FONTDIR/LightItalic.ttf" ] && glightitalic="<font weight=\"300\" style=\"italic\">Lato-Italic.ttf</font>" || unset glightitalic
[ -f "$FONTDIR/Regular.ttf" ] && gregular="<font weight=\"400\" style=\"normal\">Rubik-Regular.ttf</font>" || unset gregular
[ -f "$FONTDIR/Italic.ttf" ] && gitalic="<font weight=\"400\" style=\"italic\">Rubik-Italic.ttf</font>" || unset gitalic
[ -f "$FONTDIR/Medium.ttf" ] && gmedium="<font weight=\"500\" style=\"normal\">Rubik-Medium.ttf</font>" || unset gmedium
[ -f "$FONTDIR/MediumItalic.ttf" ] && gmediumitalic="<font weight=\"500\" style=\"italic\">Rubik-MediumItalic.ttf</font>" || unset gmediumitalic
[ -f "$FONTDIR/Bold.ttf" ] && gbold="<font weight=\"700\" style=\"normal\">Rubik-Bold.ttf</font>" || unset gbold
[ -f "$FONTDIR/BoldItalic.ttf" ] && gbolditalic="<font weight=\"700\" style=\"italic\">Rubik-BoldItalic.ttf</font>" || unset gbolditalic
patchsysxml(){
sed -i 's/RobotoStatic/Roboto/g' $SYSXML
#sed -i "s/$SS/$SS\n $thin\n $thinitalic\n $light\n $lightitalic\n $regular\n $italic\n $medium\n $mediumitalic\n $black\n $blackitalic\n $bold\n $bolditalic\n <\/family>\n <family>/" $SYSXML
FONT_ENTRIES=""
for font in thin thinitalic light lightitalic regular italic medium mediumitalic black blackitalic bold bolditalic; do
[ -n "$(eval echo \$$font)" ] && FONT_ENTRIES="$FONT_ENTRIES $(eval echo \$$font)\n"
done
FONT_ENTRIES=$(echo "$FONT_ENTRIES" | sed 's/\\n$//')
if [ -n "$SS" ] && [ -n "$FONT_ENTRIES" ]; then
sed -i "/$SS/a\\
$FONT_ENTRIES\\
</family>\\
<family>" "$SYSXML"
fi
sed -i -n '/<family name=\"sans-serif-condensed\">/{p; :a; N; /<\/family>/!ba; s/.*\n//}; p' $SYSXML
#sed -i "s/$SSC/$SSC\n $thin\n $thinitalic\n $light\n $lightitalic\n $regular\n $italic\n $medium\n $mediumitalic\n $bold\n $bolditalic/" $SYSXML
if [ -n "$SSC" ] && [ -n "$FONT_ENTRIES" ]; then
sed -i "/$SSC/a\\
$FONT_ENTRIES" "$SYSXML"
fi
sed -i -n '/<family name=\"roboto-flex\">/{p; :a; N; /<\/family>/!ba; s/.*\n//}; p' $SYSXML
if [ -n "<family name=\"roboto-flex\">" ] && [ -n "$FONT_ENTRIES" ]; then
sed -i "/<family name=\"roboto-flex\">/a\\
$FONT_ENTRIES" "$SYSXML"
fi
}
sfont() {
singlefont
cp $FONTDIR/Regular.ttf $SYSFONT/DroidSans.ttf
cp $FONTDIR/Italic.ttf $SYSFONT/DroidSans-Bold.ttf
cp $FONTDIR/Medium.ttf $SYSFONT/SourceSansPro-SemiBold.ttf
cp $FONTDIR/MediumItalic.ttf $SYSFONT/SourceSansPro-SemiBoldItalic.ttf
cp $FONTDIR/Bold.ttf $SYSFONT/SourceSansPro-Bold.ttf
cp $FONTDIR/BoldItalic.ttf $SYSFONT/SourceSansPro-BoldItalic.ttf
cp $FONTDIR/Black.ttf $SYSFONT/SourceSansPro-Regular.ttf
cp $FONTDIR/BlackItalic.ttf $SYSFONT/SourceSansPro-Italic.ttf
cp $FONTDIR/Thin.ttf $SYSFONT/NotoSansBuhid-Regular.ttf
cp $FONTDIR/ThinItalic.ttf $SYSFONT/NotoSansCarian-Regular.ttf
cp $FONTDIR/Light.ttf $SYSFONT/CarroisGothicSC-Regular.ttf
cp $FONTDIR/LightItalic.ttf $SYSFONT/ComingSoon.ttf
if [ -f $SYSFONT/DroidSans.ttf ]; then
sleep 0.5
ui_print ""
ui_print "- Installing Fonts"
ui_print " Installing SANS-SERIF fonts"
patchsysxml
else
sleep 0.5
ui_print ""
ui_print "- Installing Fonts"
ui_print " Skipping SANS-SERIF installation."
fi
}
# Borrowed From OMF
delgsans(){
sed -i -E "/<family customizationType=\"new-named-family\" name=\"(google-sans|google-sans-flex|google-sans-medium|google-sans-bold|google-sans-text|google-sans-text-medium|google-sans-text-bold|google-sans-text-italic|google-sans-text-medium-italic|google-sans-text-bold-italic|google-sans-inter|google-sans-medium-inter|google-sans-bold-inter|google-sans-text-inter|google-sans-text-medium-inter|google-sans-text-bold-inter|google-sans-text-italic-inter|google-sans-text-medium-italic-inter|google-sans-text-bold-italic-inter)\">/,/<\/family>/d" $PRDXML
}
gsans(){
var1="google-sans-clock sfroundedtime sfsofttime-semibold googlesansclock audimat"
for v1 in $var1; do
sed -i "/<family customizationType=\"new-named-family\" name=\"$v1\">/,/<\/family>/{/<family customizationType=\"new-named-family\" name=\"$v1\">/b;/<\/family>/b;d}" $PRDXML
done
if [ -n "$gbold" ]; then
for name in "google-sans-clock" "googlesansclock" "audimat" "sfroundedtime" "sfsofttime-semibold"; do
sed -i "/<family customizationType=\"new-named-family\" name=\"$name\">/,/<\/family>/c\ <family customizationType=\"new-named-family\" name=\"$name\">\n $gbold\n <\/family>" $PRDXML
done
elif [ -n "$gmedium" ]; then
for name in "google-sans-clock" "googlesansclock" "audimat" "sfroundedtime" "sfsofttime-semibold"; do
sed -i "/<family customizationType=\"new-named-family\" name=\"$name\">/,/<\/family>/c\ <family customizationType=\"new-named-family\" name=\"$name\">\n $gmedium\n <\/family>" $PRDXML
done
elif [ -n "$gregular" ]; then
for name in "google-sans-clock" "googlesansclock" "audimat" "sfroundedtime" "sfsofttime-semibold"; do
sed -i "/<family customizationType=\"new-named-family\" name=\"$name\">/,/<\/family>/c\ <family customizationType=\"new-named-family\" name=\"$name\">\n $gregular\n <\/family>" $PRDXML
done
fi
delgsans
}
prdscrp(){
GFONT_ENTRIES=""
for gfont in glight glightitalic gregular gitalic gmedium gmediumitalic gblack gblackitalic gbold gbolditalic; do
[ -n "$(eval echo \$$gfont)" ] && GFONT_ENTRIES="$GFONT_ENTRIES $(eval echo \$$gfont)\n"
done
GFONT_ENTRIES=$(echo "$GFONT_ENTRIES" | sed 's/\\n$//')
if [ -n "$GFONT_ENTRIES" ]; then
for name in "oneplusslate" "op-sans" "harmonyos-sans" "fluid-sans" "lato" "barlow" "rubik" "roboto-system" "source-sans" "noto-sans" "manrope" "zilla-slab-medium"; do
sed -i -n '/<family customizationType=\"new-named-family\" name=\"$name\">/{p; :a; N; /<\/family>/!ba; s/.*\n//}; p' $PRDXML
sed -i "/<family customizationType=\"new-named-family\" name=\"$name\">/,/<\/family>/c\ <family customizationType=\"new-named-family\" name=\"$name\">\n $GFONT_ENTRIES\n <\/family>" $PRDXML
done
fi
}
# Borrowed From OMF
gfntdsbl(){
echo 'MODDIR=${0%/*}
until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 1; done
until [ -d /sdcard ]; do sleep 1; done
sleep 1
pm disable com.google.android.gms/com.google.android.gms.fonts.provider.FontsProvider
pm disable com.google.android.gms/com.google.android.gms.fonts.update.UpdateSchedulerService
rm -rf /data/fonts
rm -rf /data/data/com.google.android.gms/files/fonts/opentype/*ttf' > $MODPATH/service.sh
}
bengpatch(){
sed -i '/<family lang="und-Beng" variant="elegant">/,/<\/family>/c\<family lang="und-Beng" variant="elegant">\n <font weight="400" style="normal">NotoSansBengali-VF.ttf<\/font>\n <font weight="500" style="normal">NotoSerifBengali-VF.ttf<\/font>\n <font weight="700" style="normal">NotoSansBengaliUI-VF.ttf<\/font>\n<\/family>' $SYSXML
sed -i '/<family lang="und-Beng" variant="compact">/,/<\/family>/c\<family lang="und-Beng" variant="compact">\n <font weight="400" style="normal">NotoSansBengali-VF.ttf<\/font>\n <font weight="500" style="normal">NotoSerifBengali-VF.ttf<\/font>\n <font weight="700" style="normal">NotoSansBengaliUI-VF.ttf<\/font>\n<\/family>' $SYSXML
}
beng(){
sleep 0.5
unzip -qq $FONTDIR/Beng*.zip -d $FONTDIR
cp $FONTDIR/Beng-Regular.ttf $SYSFONT/NotoSansBengali-VF.ttf && cp $FONTDIR/Beng-Medium.ttf $SYSFONT/NotoSerifBengali-VF.ttf && cp $FONTDIR/Beng-Bold.ttf $SYSFONT/NotoSansBengaliUI-VF.ttf
[ -f $SYSFONT/NotoSansBengali-VF.ttf ] && { bengpatch && ui_print " Installing BENGALI fonts."; } || ui_print " Skipping BENGALI font installation."
}
prdfnt(){
if [ -f $ORIPRDXML ]; then
ln -s $SYSFONT/DroidSans.ttf $PRDFONT/Rubik-Regular.ttf
ln -s $SYSFONT/DroidSans-Bold.ttf $PRDFONT/Rubik-Italic.ttf
ln -s $SYSFONT/SourceSansPro-Bold.ttf $PRDFONT/Rubik-Bold.ttf
ln -s $SYSFONT/SourceSansPro-BoldItalic.ttf $PRDFONT/Rubik-BoldItalic.ttf
ln -s $SYSFONT/SourceSansPro-SemiBold.ttf $PRDFONT/Rubik-Medium.ttf
ln -s $SYSFONT/SourceSansPro-SemiBoldItalic.ttf $PRDFONT/Rubik-MediumItalic.ttf
ln -s $SYSFONT/CarroisGothicSC-Regular.ttf $PRDFONT/Lato-Regular.ttf
ln -s $SYSFONT/ComingSoon.ttf $PRDFONT/Lato-Italic.ttf
fi
if [ -f $PRDFONT/Rubik-Regular.ttf ]; then
gsans
prdscrp
fi
}
singlefont(){
if [ -f $FONTDIR/MFFM.ttf ]; then
set Black BlackItalic Bold BoldItalic Medium MediumItalic Regular Italic Light LightItalic Thin ThinItalic
for i do cp $FONTDIR/MFFM.ttf $FONTDIR/$i.ttf; done
fi
}
monospace(){
if [ -f $FONTDIR/Mono*.ttf ]; then
cp $FONTDIR/Mono*.ttf $SYSFONT/CutiveMono.ttf
cp $FONTDIR/Mono*.ttf $SYSFONT/DroidSansMono.ttf
sleep 0.5
ui_print " Installing MONOSPACE fonts."
else
sleep 0.5
ui_print " Skipping MONOSPACE font installation."
fi
}
srf(){
unzip -qq $FONTDIR/Serif*.zip -d $FONTDIR
if [ ! -f $FONTDIR/Serif-Regular.ttf ]; then
sleep 0.5
ui_print " Installing SANS-SERIF as SERIF fonts."
cp $FONTDIR/Regular.ttf $SYSFONT/NotoSerif-Regular.ttf
cp $FONTDIR/Italic.ttf $SYSFONT/NotoSerif-Italic.ttf
cp $FONTDIR/Bold.ttf $SYSFONT/NotoSerif-Bold.ttf
cp $FONTDIR/BoldItalic.ttf $SYSFONT/NotoSerif-BoldItalic.ttf
elif [ -f $FONTDIR/Serif-Regular.ttf ]; then
sleep 0.5
ui_print " Installing SERIF fonts."
cp $FONTDIR/Serif-Regular.ttf $SYSFONT/NotoSerif-Regular.ttf
cp $FONTDIR/Serif-Italic.ttf $SYSFONT/NotoSerif-Italic.ttf
cp $FONTDIR/Serif-Bold.ttf $SYSFONT/NotoSerif-Bold.ttf
cp $FONTDIR/Serif-BoldItalic.ttf $SYSFONT/NotoSerif-BoldItalic.ttf
else
sleep 0.5
ui_print " Skipping SERIF font installation."
fi
}
src(){
local sh="$(find $MFFM -maxdepth 1 -type f -name '*.sh' -exec basename {} \;)"
local i
for i in $sh; do
. $MFFM/$i
done
}
perm() {
sleep 0.5
ui_print "- Setting up permissions."
set_perm_recursive $MODPATH 0 0 0755 0644
set_perm $MODPATH/service.sh 0 0 0777 0777
set_perm $MODPATH/uninstall.sh 0 0 0777 0777
}
fallback() {
cp $FONTDIR/DroidSans.ttf $SYSFONT
sed -i -e '/<\/familyset>/ {r '"$FONTDIR"'/fallback.xml' -e 'd;}' $SYSXML
}
finish(){
sleep 0.5
ui_print ""
ui_print "- Cleaning leftovers."
rm -f $MODPATH/*.ttf
rm -f $MODPATH/*.xz
rm -f $MODPATH/*.xml
rm -f $MODPATH/f
rm -f $MODPATH/bin
rm -f $MODPATH/*.md
rm -f $MODPATH/*.zip
rm -f $MODPATH/LICENSE
rm -rf $MODPATH/Files
rm -rf $MODPATH/Spoof
}
mffmex
sfont
prdfnt
monospace
beng
srf
gfntdsbl
src
#fallback
[ -f "/system/etc/font_fallback.xml" ] && cp "$SYSXML" "$MODPATH/system/etc/font_fallback.xml"
finish
perm
sleep 0.5
ui_print "- Done. Reboot to see changes."
ui_print ""
sleep 0.5
ui_print "******************************************"
sleep 0.5
cat << "EOF"
__ __ ___ ___ __ __
| \/ | __| __| \/ |
| |\/| | _|| _|| |\/| | v11
|_| |_|_| |_| |_| |_| ©2024
EOF