-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathoffline_setup.sh
508 lines (427 loc) · 19.7 KB
/
offline_setup.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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
#!/sbin/sh
###########################
# MMT Reborn Logic
###########################
############
# Config Vars
############
# Set this to true if you want to skip mount for your module
SKIPMOUNT="false"
# Set this to true if you want to clean old files in module before injecting new module
CLEANSERVICE="false"
# Set this to true if you want to load vskel after module info print. If you want to manually load it, consider using load_vksel function
AUTOVKSEL="true"
# Set this to true if you want store debug logs of installation
DEBUG="false"
############
# Permissions
############
# Set permissions
set_permissions() {
set_perm_recursive "$MODPATH" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/app/PixelThemesStub2022_and_newer" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/app/ThemesStub" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/etc/default-permissions" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/etc/permissions" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/etc/sysconfig" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/overlay" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/overlay/PixelLauncherModsOverlay" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/overlay/PixelRecentsProvider" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/overlay/ThemedIconsOverlay" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/ExtendedSettings" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/IconShapeChanger" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/NexusLauncherRelease" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/PixelLauncherDT2S" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/PixelLauncherMods" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/product/priv-app/PixelLauncherMods/lib/arm64" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/system_ext/etc/permissions" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/system_ext/priv-app/QuickAccessWallet" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease" 0 0 0777 0755
}
############
# Info Print
############
# Set what you want to be displayed on header of installation process
info_print() {
ui_print ""
ui_print "**********************************************"
ui_print "• Pixel Launcher Extended"
ui_print "• By TeamFiles"
ui_print "**********************************************"
ui_print ""
sleep 2
}
############
# Replace List
############
# List all directories you want to directly replace in the system
# Construct your list in the following example format
REPLACE_EXAMPLE="
/system/app/Youtube
/system/priv-app/SystemUI
/system/priv-app/Settings
/system/framework
"
# Construct your own list here
REPLACE="
/system/priv-app/AsusLauncherDev
/system/priv-app/Lawnchair
/system/priv-app/NexusLauncherPrebuilt
/system/product/priv-app/ParanoidQuickStep
/system/product/priv-app/ShadyQuickStep
/system/product/priv-app/TrebuchetQuickStep
/system/product/priv-app/NexusLauncherRelease
/system/product/overlay/PixelLauncherIconsOverlay
/system/product/overlay/CustomPixelLauncherOverlay
/system/system_ext/priv-app/NexusLauncherRelease
/system/system_ext/priv-app/TrebuchetQuickStep
/system/system_ext/priv-app/Lawnchair
/system/system_ext/priv-app/PixelLauncherRelease
/system/system_ext/priv-app/Launcher3QuickStep
/system/system_ext/priv-app/Launcher3QuickStepGoogle
/system/system_ext/priv-app/Launcher3QuickStepMock
/system/system_ext/priv-app/ArrowLauncher
/system/system_ext/priv-app/WallpaperPickerGoogleRelease
/system/product/overlay/ThemedIconsOverlay.apk
/system/product/overlay/PixelLauncherIconsOverlay.apk
/system/product/overlay/CustomPixelLauncherOverlay.apk
/system/product/overlay/MiuiCameraOverlay/MiuiCameraOverlay.apk
/system/product/overlay/MiuiGalleryOverlay/MiuiGalleryOverlay.apk
"
############
# Main
############
# Change the logic to whatever you want
init_main() {
# Get the Android SDK version
sdk_version=$(getprop ro.build.version.sdk)
# Check if the SDK version is 32 or below
if [[ $sdk_version -le 32 ]]; then
# Fail the script immediately
echo "Error: Unsupported SDK version ($sdk_version)"
exit 1
fi
# Get the security patch date from build.prop
PATCH_DATE=$(getprop ro.build.version.security_patch)
# Convert it to YYYYMM format
PATCH_YEAR=${PATCH_DATE:0:4}
PATCH_MONTH=${PATCH_DATE:5:2}
PATCH_LEVEL=$PATCH_YEAR$PATCH_MONTH
if [ $PATCH_LEVEL -le 202211 ]; then
ui_print "Android 13 detected!"
ui_print "Security Patch - $PATCH_DATE"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease01.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease11.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease21.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease02.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease03.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ $PATCH_LEVEL -le 202302 ]; then
ui_print "Android 13 QPR detected!"
ui_print "Security Patch - $PATCH_DATE"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease00.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease02.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease03.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ $PATCH_LEVEL -le 202305 ]; then
ui_print "Android 13 QPR2 detected!"
ui_print "Security Patch - $PATCH_DATE"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease00.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease01.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease11.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease21.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease03.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
elif [ $PATCH_LEVEL -ge 202306 ]; then
ui_print "Android 13 QPR3 detected!"
ui_print "Security Patch - $PATCH_DATE"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease00.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease01.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease11.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease21.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease02.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
fi
ui_print ""
ui_print "[*] If the information displayed above is accurate?"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Yes"
ui_print "--------------------------------"
ui_print "[2] No"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM=1
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM=1
done
case "$SM" in
"1") FCTEXTAD1="Yes" ;;
"2") FCTEXTAD1="No" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Yes" ]]; then
ui_print "The installation process of Pixel Launcher Extended has been started!!"
elif [[ "$FCTEXTAD1" == "No" ]]; then
ui_print "Tell your rom maintainer to fix"
ui_print "'getprop ro.build.version.security_patch - $PATCH_DATE' value"
ui_print "or make Customize Installer from GitHub"
exit 1
fi
ui_print ""
ui_print "[*] Do you wanna add 'Material You Greetings In At A Glance'"
ui_print "& install Extended Settings app?"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Yes"
ui_print "--------------------------------"
ui_print "[2] No"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM=1
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM=1
done
case "$SM" in
"1") FCTEXTAD1="Yes" ;;
"2") FCTEXTAD1="No" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Yes" ]]; then
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease00.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease01.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease02.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease03.apk"
ui_print "[*] Do you want to install Glance Greetings Style 1 or Glance Greetings Style 2?"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Glance Greetings Style 1"
ui_print "Example Of Style 1-"
ui_print "Line 1 - Material You Greetings,"
ui_print "Line 2 - Day & Date"
ui_print "Line 3 - Weather Information"
ui_print "--------------------------------"
ui_print "[2] Glance Greetings Style 2"
ui_print "Example Of Style 2-"
ui_print "Line 1 - Material You Greetings, Day & Date"
ui_print "Line 2 - Weather Information"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM="1"
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM="1"
done
case "$SM" in
"1") FCTEXTAD1="Glance Greetings Style 1" ;;
"2") FCTEXTAD1="Glance Greetings Style 2" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Glance Greetings Style 1" ]]; then
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease21.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
elif [[ "$FCTEXTAD1" == "Glance Greetings Style 2" ]]; then
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease11.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
fi
elif [[ "$FCTEXTAD1" == "No" ]]; then
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease11.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease21.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Dark.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Dark2.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Empty.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Empty2.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Light.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Light2.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Light_Accent.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_Pill_Light_Accent2.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_UserChip.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_UserCL.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_UserLockscreen.apk"
rm -rf "$MODPATH/system/product/priv-app/ExtendedSettings"
rm -rf "$MODPATH/system/product/etc/permissions/privapp-permissions-com.domain.liranazuz5.extendedsettings.xml"
fi
ui_print ""
ui_print "[*] Do you want to enable DT2S in Launcher?"
ui_print "[*] DT2S Means - Double Tap To Sleep Feature"
ui_print "[*] Make sure you have LSPosed Installed in your rom"
ui_print "[*] Without LSPosed it won't work"
ui_print "[*] Read Documentation on GitHub"
ui_print "to know more about activating it"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Yes"
ui_print "--------------------------------"
ui_print "[2] No"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM=1
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM=1
done
case "$SM" in
"1") FCTEXTAD1="Yes" ;;
"2") FCTEXTAD1="No" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Yes" ]]; then
:
elif [[ "$FCTEXTAD1" == "No" ]]; then
rm -rf "$MODPATH/system/product/priv-app/PixelLauncherDT2S"
rm -rf "$MODPATH/system/product/etc/permissions/privapp-permissions-com.uragiristereo.pldt2s.xml"
fi
ui_print ""
ui_print "[*] Do you wanna install Pixel Launcher Mods app?"
ui_print "[*] It's by Developer KieronQuinn"
ui_print "[*] You will be able to apply Icon Packs using it"
ui_print "[*] It will also enable some more functionality to pixel launcher"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Yes"
ui_print "--------------------------------"
ui_print "[2] No"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM=1
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM=1
done
case "$SM" in
"1") FCTEXTAD1="Yes" ;;
"2") FCTEXTAD1="No" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Yes" ]]; then
:
elif [[ "$FCTEXTAD1" == "No" ]]; then
rm -rf "$MODPATH/system/product/priv-app/PixelLauncherMods"
rm -rf "$MODPATH/system/product/etc/permissions/privapp-permissions-com.kieronquinn.app.pixellaunchermods.xml"
rm -rf "$MODPATH/system/product/overlay/PixelLauncherModsOverlay"
fi
ui_print ""
ui_print "[*] Do you want to install Icon Shape Changer app?"
ui_print "[*] Press volume up to switch to another choice"
ui_print "[*] Press volume down to continue with that choice"
ui_print ""
sleep 0.5
ui_print "--------------------------------"
ui_print "[1] Yes"
ui_print "--------------------------------"
ui_print "[2] No"
ui_print "--------------------------------"
ui_print ""
ui_print "[*] Select your desired option:"
SM=1
while true; do
ui_print " $SM"
"$VKSEL" && SM="$((SM + 1))" || break
[[ "$SM" -gt "2" ]] && SM=1
done
case "$SM" in
"1") FCTEXTAD1="Yes" ;;
"2") FCTEXTAD1="No" ;;
esac
ui_print "[*] Selected: $FCTEXTAD1"
ui_print ""
if [[ "$FCTEXTAD1" == "Yes" ]]; then
:
elif [[ "$FCTEXTAD1" == "No" ]]; then
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Cloudy.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Cylinder.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Flower.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Hexagon.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Leaf.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Mallow.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Pebble.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_RoundedHexagon.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_RoundedRectangle.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Square.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Squircle.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Stretched.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_TaperedRectangular.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Teardrops.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Vessel.apk"
rm -rf "$MODPATH/system/product/overlay/TeamFiles_we_Samsung.apk"
rm -rf "$MODPATH/system/product/priv-app/IconShapeChanger"
rm -rf "$MODPATH/system/product/etc/permissions/privapp-permissions-com.saitama.iconshape.xml"
fi
ui_print "[*] Clearing system cache to make it work properly..."
ui_print ""
rm -rf "/data/system/package_cache"
sleep 0.5
ui_print "[*] Done!"
ui_print ""
sleep 0.5
ui_print " --- Notes --- "
ui_print ""
ui_print "[*] Reboot is required"
ui_print ""
ui_print "[*] Make sure to read Documentation Properly on Github"
ui_print "if you wanna enable Double Tap To Sleep Feature"
ui_print ""
ui_print "[*] Report issues to @fileschat on Telegram"
sleep 2
touch "$MODPATH/first"
}