forked from thanuj10/Nokia-Debloater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
batch-script
549 lines (445 loc) · 23.1 KB
/
batch-script
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
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
@ECHO OFF
cls
set NLM=^
set NL=^^^%NLM%%NLM%^%NLM%%NLM%
SET divider=****************
if not exist adb.exe (
echo %NL%%divider%
echo Unable to find adb. Please make sure you've installed ADB and this script is in adb platform-tools folder%NL%before running this script
echo %divider%
pause
EXIT /B 0
)
echo %NL%Checking connected device(s) . . .
adb.exe devices > devices.txt
if "%1"=="-v" (
type devices.txt
)
findstr /c:"device" devices.txt | find /c /v "" > temp.txt
set /p devicecount=<temp.txt
del temp.txt
del devices.txt
IF "%devicecount%"=="1" (
echo %divider%
ECHO No devices found. Please make sure your device is connected, USB debugging is enabled, and that they are authorised%NL%^(check screen for prompt^), then run the script again
echo %divider%
pause
EXIT /B 0
)
IF "%devicecount%" NEQ "2" (
echo %divider%
ECHO Multiple devices found, please disconnect all but the device you wish to use debloater script on, then run the script again
echo %divider%
pause
EXIT /B 0
)
for /F "delims=" %%a in ('adb.exe shell getprop ro.product.model') do set MODEL=%%a
for /F "delims=" %%a in ('adb.exe shell getprop ro.product.brand') do set BRAND=%%a
for /F "delims=" %%a in ('adb.exe shell getprop ro.product.device') do set DEVICE=%%a
for /F "delims=" %%a in ('adb.exe shell getprop ro.build.product') do set PRODUCT=%%a
for /F "delims=" %%a in ('adb.exe shell getprop ro.build.id') do set ID=%%a
echo %NL%Detected: %DEVICE% (%PRODUCT%)
echo Firmware: %ID%
echo %NL%Hello! This script can debloat your %MODEL% off all the unwanted bloatware when used properly
echo.
pause.
goto menu
----------------------------------------------------
:menu
cls
echo %NL%1.Debloat
echo 2.Rebloat
echo 3.Disable Duraspeed
echo 4.Perform App Optimization Job
echo 5.Reboot
echo.
set /p choice= Enter your option:
if '%choice%'=='1' goto Debloat
if '%choice%'=='2' goto Rebloat
if '%choice%'=='3' goto Disable Duraspeed
if '%choice%'=='4' goto Dexopt
if '%choice%'=='5' goto Reboot
goto menu
----------------------------------------------------
:Debloat
cls
echo %NL%Debloat
echo 1.Stock Nokia
echo 2.Custom
echo 0.Back
echo.
set /p choice= Enter your option:
if '%choice%'=='1' goto evenwell
if '%choice%'=='2' goto custom
if '%choice%'=='0' goto menu
goto Debloat
----------------------------------------------------
:evenwell
cls
if "%BRAND%" NEQ "Nokia" (
echo %NL%%divider%
ECHO You probably don't have Evenwell bloatware. Aborting...
echo %divider%
pause
goto Debloat
)
echo REMINDER: By using this script, You hereby agree you are responsible for any damages that occur to your %MODEL%%NL%I, the author will absolutely under no circumstances take responsibilty if you manage to brick your device
echo.
pause
echo %NL%Debloating (uninstalling quite a few packages, standby a minute or less)...
echo.
adb.exe shell pm uninstall --user 0 com.evenwell.DbgCfgTool
adb.exe shell pm uninstall --user 0 com.evenwell.DbgCfgTool.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.DbgCfgTool.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.partnerbrowsercustomizations
adb.exe shell pm uninstall --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.retaildemoapp
adb.exe shell pm uninstall --user 0 com.evenwell.retaildemoapp.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.retaildemoapp.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.PowerMonitor
adb.exe shell pm uninstall --user 0 com.evenwell.PowerMonitor.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.PowerMonitor.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.telecom.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.telecom.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.nps
adb.exe shell pm uninstall --user 0 com.evenwell.nps.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.nps.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.stbmonitor
adb.exe shell pm uninstall --user 0 com.evenwell.stbmonitor.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.stbmonitor.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.stbmonitor.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.dataagent
adb.exe shell pm uninstall --user 0 com.evenwell.dataagent.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.dataagent.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.custmanager
adb.exe shell pm uninstall --user 0 com.evenwell.custmanager.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.custmanager.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.CPClient
adb.exe shell pm uninstall --user 0 com.evenwell.CPClient.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.CPClient.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.AprUploadService
adb.exe shell pm uninstall --user 0 com.evenwell.AprUploadService.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.AprUploadService.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.managedprovisioning
adb.exe shell pm uninstall --user 0 com.evenwell.managedprovisioning.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.managedprovisioning.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.DeviceMonitorControl
adb.exe shell pm uninstall --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.PowerMonitor.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration.overlay.d.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration.overlay.d.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.nps.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.AprUploadService.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.telecom.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.custmanager.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.stbmonitor.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.retaildemoapp.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.CPClient.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.DbgCfgTool.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.dataagent.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.mappartner
adb.exe shell pm uninstall --user 0 com.evenwell.pushagent.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.managedprovisioning.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.autoregistration.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.pandorasbox.app
adb.exe shell pm uninstall --user 0 com.evenwell.pandorasbox
adb.exe shell pm uninstall --user 0 com.evenwell.UsageStatsLogReceiver.data.overlay.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.UsageStatsLogReceiver.data.overlay.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.UsageStatsLogReceiver
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect.overlay.d.base.s600e0
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3.overlay.d.base.s600e0
adb.exe shell pm uninstall --user 0 com.evenwell.whitebalance
adb.exe shell pm uninstall --user 0 com.evenwell.whitebalance.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.fqc
adb.exe shell pm uninstall --user 0 com.evenwell.SetupWizard
adb.exe shell pm uninstall --user 0 com.evenwell.SetupWizard.overlay.d.base.s600ww
adb.exe shell pm uninstall --user 0 com.evenwell.factorywizard
adb.exe shell pm uninstall --user 0 com.evenwell.factorywizard.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.foxlauncher.partner
adb.exe shell pm uninstall --user 0 com.hmdglobal.datago
adb.exe shell pm uninstall --user 0 com.hmdglobal.datago.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.phone.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.SetupWizard.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3.overlay.d.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.powersaving.g3.overlay.base
adb.exe shell pm uninstall --user 0 com.evenwell.batteryprotect.overlay.d.base.s600id
adb.exe shell pm uninstall --user 0 com.evenwell.nps.overlay.d.base.s600id
echo %NL%The debloating is now finished. If you want, set your phone to silent to prevent startup tone%NL%Press any key to reboot your phone . . .
pause>nul
echo %NL%Rebooting Phone . . .
echo.
adb.exe reboot
echo.
exit
----------------------------------------------------
:custom
cls
echo REMINDER: By using this script, You hereby agree you are responsible for any damages that occur to your %MODEL%%NL%I, the author will absolutely under no circumstances take responsibilty if you manage to brick your device
echo.
pause
set LISTFOLDER=custom
set TMPFOLDER=/data/local/tmp
echo %NL%Copying files...
adb.exe shell rm -f %TMPFOLDER%/debloat_list.sh > NUL 2> NUL
adb.exe push %LISTFOLDER%/debloat_list.sh %TMPFOLDER% > NUL 2> NUL
adb.exe shell chmod 0777 %TMPFOLDER%/debloat_list.sh
IF %ERRORLEVEL% NEQ 0 (
echo %divider%
ECHO Unable to copy files. Script not found. Please extract *custom* folder from zip to adb platform-tools folder, then re-run this script
echo %divider%
pause
EXIT /B 0
)
echo %NL%Debloating (uninstalling quite a few packages, standby a minute or less)...
echo.
adb.exe shell sh %TMPFOLDER%/debloat_list.sh
echo %NL%Cleaning . . .
adb.exe shell rm -f %TMPFOLDER%/debloat_list.sh > NUL 2> NUL
echo %NL%Finished!
echo.
pause
echo %NL%Rebooting (this may take a while)...
adb.exe reboot
echo.
exit
----------------------------------------------------
:Rebloat
cls
echo %NL%Rebloat
echo 1.Stock Nokia
echo 2.Custom
echo 0.Back
echo.
set /p choice= Enter your option:
if '%choice%'=='1' goto evenwell2
if '%choice%'=='2' goto custom2
if '%choice%'=='0' goto menu
goto Rebloat
----------------------------------------------------
:evenwell2
cls
if "%BRAND%" NEQ "Nokia" (
echo %divider%
ECHO You probably don't need Evenwell bloatware. Aborting...
echo %divider%
pause
goto Rebloat
)
echo %NL%Reinstalling the debloated evenwell creepy apps back to your %MODEL% . . .
echo.
adb.exe shell cmd package install-existing --user 0 com.evenwell.DbgCfgTool
adb.exe shell cmd package install-existing --user 0 com.evenwell.DbgCfgTool.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.DbgCfgTool.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.partnerbrowsercustomizations
adb.exe shell cmd package install-existing --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.retaildemoapp
adb.exe shell cmd package install-existing --user 0 com.evenwell.retaildemoapp.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.retaildemoapp.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.PowerMonitor
adb.exe shell cmd package install-existing --user 0 com.evenwell.PowerMonitor.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.PowerMonitor.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.telecom.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.telecom.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.nps
adb.exe shell cmd package install-existing --user 0 com.evenwell.nps.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.nps.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.stbmonitor
adb.exe shell cmd package install-existing --user 0 com.evenwell.stbmonitor.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.stbmonitor.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.stbmonitor.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.dataagent
adb.exe shell cmd package install-existing --user 0 com.evenwell.dataagent.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.dataagent.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.custmanager
adb.exe shell cmd package install-existing --user 0 com.evenwell.custmanager.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.custmanager.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.CPClient
adb.exe shell cmd package install-existing --user 0 com.evenwell.CPClient.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.CPClient.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.AprUploadService
adb.exe shell cmd package install-existing --user 0 com.evenwell.AprUploadService.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.AprUploadService.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.managedprovisioning
adb.exe shell cmd package install-existing --user 0 com.evenwell.managedprovisioning.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.managedprovisioning.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.DeviceMonitorControl
adb.exe shell cmd package install-existing --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.PowerMonitor.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration.overlay.d.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration.overlay.d.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.nps.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.AprUploadService.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.partnerbrowsercustomizations.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.telecom.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.custmanager.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.stbmonitor.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.retaildemoapp.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.CPClient.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.DeviceMonitorControl.data.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.DbgCfgTool.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.dataagent.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.mappartner
adb.exe shell cmd package install-existing --user 0 com.evenwell.pushagent.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.managedprovisioning.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.autoregistration.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.pandorasbox.app
adb.exe shell cmd package install-existing --user 0 com.evenwell.pandorasbox
adb.exe shell cmd package install-existing --user 0 com.evenwell.UsageStatsLogReceiver.data.overlay.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.UsageStatsLogReceiver.data.overlay.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.UsageStatsLogReceiver
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect.overlay.d.base.s600e0
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3.overlay.d.base.s600e0
adb.exe shell cmd package install-existing --user 0 com.evenwell.whitebalance
adb.exe shell cmd package install-existing --user 0 com.evenwell.whitebalance.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.fqc
adb.exe shell cmd package install-existing --user 0 com.evenwell.SetupWizard
adb.exe shell cmd package install-existing --user 0 com.evenwell.SetupWizard.overlay.d.base.s600ww
adb.exe shell cmd package install-existing --user 0 com.evenwell.factorywizard
adb.exe shell cmd package install-existing --user 0 com.evenwell.factorywizard.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.foxlauncher.partner
adb.exe shell cmd package install-existing --user 0 com.hmdglobal.datago
adb.exe shell cmd package install-existing --user 0 com.hmdglobal.datago.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.phone.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.SetupWizard.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3.overlay.d.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.powersaving.g3.overlay.base
adb.exe shell cmd package install-existing --user 0 com.evenwell.batteryprotect.overlay.d.base.s600id
adb.exe shell cmd package install-existing --user 0 com.evenwell.nps.overlay.d.base.s600id
echo %NL%The rebloating process is now finished. Press any key to reboot your phone . . .
pause>nul
echo %NL%Your phone is rebooting . . .
adb.exe shell reboot
echo.
exit
--------------------------------------------------------
:custom2
cls
set LISTFOLDER=custom
set TMPFOLDER=/data/local/tmp
echo %NL%Copying files . . .
adb.exe shell rm -f %TMPFOLDER%/rebloat_list.sh > NUL 2> NUL
adb.exe push %LISTFOLDER%/rebloat_list.sh %TMPFOLDER% > NUL 2> NUL
adb.exe shell chmod 0777 %TMPFOLDER%/rebloat_list.sh
IF %ERRORLEVEL% NEQ 0 (
echo %divider%
ECHO Unable to copy files. Script not found. Please extract *custom* folder from zip to adb platform-tools folder, then re-run this script
echo %divider%
pause
EXIT /B 0
)
echo %NL%Rebloating (reinstalling quite a few packages, standby a minute or less) . . .
echo.
adb.exe shell sh %TMPFOLDER%/rebloat_list.sh
echo %NL%Cleaning . . .
adb.exe shell rm -f %TMPFOLDER%/rebloat_list.sh > NUL 2> NUL
echo %NL%Finished!
echo.
pause
echo %NL%Rebooting (this may take a while) . . .
adb reboot
echo.
exit
--------------------------------------------------------
:Disable Duraspeed
cls
echo.
echo Duraspeed will now be disabled, Please don't restart your phone.
echo.
pause
adb.exe devices
adb.exe shell settings put global setting.duraspeed.enabled 0
echo.
echo Duraspeed is now disabled. Everytime you restart your phone, Please open the script back and run this command.
echo.
pause
cls
exit
--------------------------------------------------------
:Dexopt
cls
echo.
echo App optimization will now begin. Please do not plug out or disconnect your phone until you see the message 'Success' on your screen.
echo.
cls
echo The more apps you have the longer it will take to optimize. This process will take a few minutes...
pause
adb.exe devices
adb.exe shell cmd package bg-dexopt-job
pause
cls
exit
--------------------------------------------------------
:Reboot
cls
echo %NL%Reboot
echo 1.Normal System Reboot
echo 2.Reboot to Recovery
echo 3.Reboot to Bootloader
echo 0.Back
echo.
set /p choice= Enter your option:
if '%choice%'=='1' goto Normal System Reboot
if '%choice%'=='2' goto Reboot to recovery
if '%choice%'=='3' goto Reboot to bootloader
if '%choice%'=='0' goto menu
goto Reboot
---
:Normal System Reboot
cls
echo %NL%Rebooting system . . .
adb.exe shell reboot
echo.
exit
---
:Reboot to recovery
cls
echo %NL%Rebooting to recovery . . .
adb.exe shell reboot recovery
echo.
exit
---
:Reboot to bootloader
cls
echo %NL%Rebooting to bootloader . . .
adb.exe shell reboot bootloader
echo.
exit
--------------------------------------------------------