-
Notifications
You must be signed in to change notification settings - Fork 38
/
manual_setup.sh
431 lines (404 loc) · 26.3 KB
/
manual_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
#!/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() {
# 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
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/Launcher3QuickStepGoogle
/system/system_ext/priv-app/Launcher3QuickStepMock
/system/system_ext/priv-app/Lawnchair
/system/system_ext/priv-app/PixelLauncherRelease
/system/system_ext/priv-app/Launcher3QuickStep
/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() {
ui_print ""
ui_print "[*] Installing..."
ui_print ""
# Loop over each line in config.txt
while read -r line; do
# Extract the variable name and value
var_name=$(echo "$line" | cut -d '=' -f 1)
var_value=$(echo "$line" | cut -d '=' -f 2)
# Check the variable name and execute different commands based on the value
case $var_name in
LAUNCHER)
if [ "$var_value" == "00" ]; then
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"
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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.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"
elif [ "$var_value" == "01" ]; then
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease00.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease02.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease03.apk"
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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.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"
elif [ "$var_value" == "02" ]; 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/NexusLauncherRelease03.apk"
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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.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"
elif [ "$var_value" == "03" ]; 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/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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.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"
elif [ "$var_value" == "10" ]; 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"
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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ "$var_value" == "11" ]; 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"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease10.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease12.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease13.apk"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ "$var_value" == "12" ]; 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"
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/NexusLauncherRelease13.apk"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
elif [ "$var_value" == "13" ]; 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"
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/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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
elif [ "$var_value" == "20" ]; 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"
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"
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"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ "$var_value" == "21" ]; 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"
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"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease20.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease22.apk"
rm -rf "$MODPATH/system/product/priv-app/NexusLauncherRelease/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk"
elif [ "$var_value" == "22" ]; 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"
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"
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/NexusLauncherRelease23.apk"
rm -rf "$MODPATH/system/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
elif [ "$var_value" == "23" ]; 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"
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"
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/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleReleaseOld.apk"
else
echo "Invalid value of LAUNCHER in config.txt"
exit 1
fi
;;
DT2S)
if [ "$var_value" == "0" ]; then
rm -rf "$MODPATH/system/product/priv-app/PixelLauncherDT2S"
rm -rf "$MODPATH/system/product/etc/permissions/privapp-permissions-com.uragiristereo.pldt2s.xml"
elif [ "$var_value" == "1" ]; then
:
else
echo "Invalid value of DT2S in config.txt"
exit 1
fi
;;
Pixel_Launcher_Mods_App)
if [ "$var_value" == "0" ]; 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"
elif [ "$var_value" == "1" ]; then
:
else
echo "Invalid value of Pixel_Launcher_Mods_App in config.txt"
exit 1
fi
;;
Icon_Shape_Changer_App)
if [ "$var_value" == "0" ]; 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"
elif [ "$var_value" == "1" ]; then
:
else
echo "Invalid value of Icon_Shape_Changer_App in config.txt"
exit 1
fi
;;
*)
echo "Unknown variable name in config.txt"
exit 1
;;
esac
done <"$MODPATH/config.txt"
sleep 0.5
ui_print ""
ui_print "Finished Installing Pixel Launcher Extended"
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"
}