forked from KaustubhPatange/Coolpad-Toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigdevice.bat
More file actions
10605 lines (10547 loc) · 357 KB
/
Copy pathConfigdevice.bat
File metadata and controls
10605 lines (10547 loc) · 357 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
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
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
:: Coolpad Toolkit v1.6 Source
:: Developed And Written by KP
:: CopyRight @2016 KP
:: Do not commit any unneccessary changes to it and Post it anywhere
:: Its Lisenced Under Apache and has my Original Signatures
@echo off
mode con:cols=85 lines=49
SETLOCAL EnableDelayedExpansion
if not exist tools\device.log goto notoolkiterror
for /F "tokens=1" %%i in (_device.log) do (set DEVICE=%%i)
for /f "tokens=*" %%m in (tools\device.log) do (SET basic=%%m)
if not %basic%==Script-is-running goto notoolkiterror
:ini1
set m=
cd "%~dp0"
if %DEVICE%==CPNMAX (
adb pull /system/bin/magisk
if exist magisk (
adb shell magisk su -c exit
del magisk /q
)
)
adb shell getprop ro.product.manufacturer >_temp1.log
if errorlevel 1 del _temp1.log
adb shell getprop ro.product.model >_temp.log
if errorlevel 1 del _temp.log
echo.
for /f "tokens=*" %%m in (_temp.log) do (SET productmodel=%%m)
for /f "tokens=1" %%m in (_temp1.log) do (SET productmanufacturer=%%m)
for /F "tokens=1" %%k in (tools\_toolkitcolor.cf) do (set /a m+=1 && set colour!m!=%%k)
cls
color %colour1%%colour2%
if errorlevel 1 goto resetcolors
title Coolpad Toolkit V%version%
cls
ping localhost -n 2 >nul
del _temp.log /Q && del _temp1.log /Q && del _temp2.log
cls
::if exist "%~dp0recovery\%DEVICE%\recovery-twrp-m.img" (goto fix3)
if %W2%==OK (
if %clashes%==failed goto encryptionstate12
)
:RESTART
cls
title Coolpad Toolkit V%version%
cd "%~dp0"
set infosectionon=Grabage
set cuspath=GARBAGE
set encryptionfinalstate=Grabage
set encryptionstate=Grabage
set bootmenucus=Garbage
SET clashes=NOne
set customrec=Garbage
set modssel=Grabage
set TEST=Garbahe
set menuselection=Grabe
set dumplcselection=Grabage
set recoverypartitionfirsttime=Grabage
set lbselection=Grabage
set recovery=Grabage
set recovery1=Grabage
set path1=Garbage
set cuspath=Grabage
set type=Grabage
set setroot=Grabage
set setrootmethodchoice=Grabage
set cuspath1=Grabage
echo ===================================================================================
echo Written by KP (%toolkitthread%) version : V%version%
rem echo Open Source : https://github.com/KaustubhPatange/Coolpad-Toolkit
rem echo Contact: DeveloperKP16@gmail.com
echo ===================================================================================
echo.
call tools\ctext.exe 0b " FASTBOOT MODE"
echo [If serial shows, drivers are installed]
echo List of devices attached TOOLKIT FOR : %MODEL%
rem echo TOOLKIT FOR : %MODEL%
if exist fastboot.exe (fastboot -i 0x1EBF devices)
rem echo
call tools\ctext.exe 0b " ADB MODE"
echo Last Updated : %lastcheck%
adb devices
echo -----------------------------------------------------------------------------------
echo.
echo MAIN MENU - %productmanufacturer% %productmodel%
echo.
echo 1. Install Device Drivers on your PC [IF DRIVERS ARE NOT PRESENT DO IT FIRST]
ECHO 2. Backup And Restore your Device [DO THIS SECOND]
rem echo.
echo 3. UnLock/Re-Lock your BootLoader [DO THIS THIRD]
echo 4. Root/UnRoot/Check Root Status [ADB Mode]
if %DEVICE%==CPNMAX (
echo 5. Flash Recovery [CWM, TWRP, Philz_Touch CWM, Stock] [DISABLED]
) else (
echo 5. Flash Recovery [CWM, TWRP, Philz_Touch CWM, Stock] [ADB Mode]
)
echo 6. Install BusyBox on Device [ADB Mode]
rem echo.
if %DEVICE%==Basic (
echo 7. ALLINONE - Unlock,Root,Busybox,Cust Recovery [DISABLED]
) else (
echo 7. ALLINONE - Unlock,Root,Busybox,Cust Recovery [SUPER PACK]
)
rem echo.
echo 8. Download/Flash Coolpad Factory Stock Image [Flash Part or Whole Rom]
echo 9. Download/Sideload Custom Rom via Stock/Custom Recovery [ADB MODE]
if %DEVICE%==Basic (
echo 10. Boot to Custom/Stock Recovery without Permanently Flashing it [DISABLED]
) else (
echo 10. Boot to Custom/Stock Recovery without Permanently Flashing it [ADB Mode]
)
echo 11. Boot or Flash .img Files to Device [ADB Mode]
echo 12. Install/Sideload a Zip File to Device via Stock/Custom Recovery [ADB Mode]
if exist root\xposed-uninstaller-20160829-arm64.zip (
if %DEVICE%==CPNMAX (
echo 13. Install Xposed Framework via Custom Recovery [DISABLED]
) else (
echo 13. Install Xposed Framework via Custom Recovery [ADB MODE]
)
) else (
echo 13. Install Xposed Framework via Custom Recovery [DOWNLOAD]
)
echo.
echo 14. Install apk files to Device [ADB Mode]
echo 15. Push Files to Device [ADB Mode]
echo 16. Pull Files or Folders from Device [ADB Mode]
rem echo.
echo 17. Set File Permissions on Device [ADB Mode]
echo 18. LogCat Functions [ADB Mode]
echo 19. ROM TOOLS (Extract/Rebuild your System.img FIRMWARE) [Device not Needed]
echo 20. App/Program/Device Fixes, Developer Tools [Could be Useful]
echo 21. Extras, Tips and Tricks [Device not Needed]
echo 22. Device specific Mods and Special Requests [ADB Mode]
rem echo.
echo 23. Device Information [Model,Version,Build+MORE] [ADB Mode]
echo 24. Device Reboot Options
echo 26. Open a Command Prompt for Manual Input
echo 27. Open a Android Terminal [ADB MODE]
echo 28. INFORMATION, HELP AND FAQ SECTION [Lots of Useful Information]
echo 29. Refresh Main Menu
echo 30. ToolKit Settings / ABOUT [CREDITERS]
echo.
echo x. Exit
echo ===================================================================================
echo.
SET /P menuselection=[*] Make your decision:-
if %menuselection%==x goto exit1
if %menuselection%==X goto exit1
if %menuselection%==1 goto insd
if %menuselection%==2 goto bak
if %menuselection%==3 goto blt
if %menuselection%==4 goto rtl
if %menuselection%==5 goto flashcus
if %menuselection%==6 goto insbusy
if %menuselection%==7 goto allinone
if %menuselection%==8 goto fct
if %menuselection%==9 goto cusq
if %menuselection%==10 goto bootcus
if %menuselection%==11 goto bootfl
if %menuselection%==12 goto sidez
if %menuselection%==13 goto xposedfe
if %menuselection%==14 goto installapk
if %menuselection%==15 goto pushfile
if %menuselection%==16 goto pullfile
if %menuselection%==17 goto permi
if %menuselection%==18 goto logcatfunctions
if %menuselection%==19 goto ers
if %menuselection%==20 goto developersection
if %menuselection%==21 goto extratips
if %menuselection%==22 goto devicemods
if %menuselection%==23 goto getmodelbuildprop
if %menuselection%==24 goto rebootoptions
if %menuselection%==26 goto launchcmd
if %menuselection%==27 goto launchadb
if %menuselection%==28 goto help
if %menuselection%==29 goto ini1
if %menuselection%==30 goto settings
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto RESTART
:settings
@echo off
for /f "tokens=1" %%s in (tools\_toolkitupdatec.cf) do (SET W1=%%s)
for /f "tokens=1" %%s in (tools\_toolkitsettings.cf) do (SET W2=%%s)
cls
set TEST=dedj
echo ===================================================================================
echo This screen contains various settings/changes you can make to the ToolKit.
echo ===================================================================================
echo.
echo OPTIONS
echo -------
echo.
echo 1. Select a different Device to work with [change working device]
echo.
echo 2. Change ToolKit Colours [change background and text colours]
echo.
echo 3. Display version numbers of Apps/Programs used by the Toolkit
echo.
echo 4. Credits
echo.
echo 5. Credits to Bugs Finder
echo.
echo 6. Contact Me
echo.
echo 7. Plugins
echo.
echo 8. Check for Updates at Startup [%W1%]
echo.
echo 9. Check for Encryption of Phone [%W2%]
echo.
echo 10. View my More Projects [WEB]
echo.
echo p. Requests your Device to add into this Toolkit
echo.
echo x. Return To MAINMENU
echo.
echo ===================================================================================
echo.
SET /P TEST=[*] Make A Choice:-
if %TEST%==1 goto settings1
if %TEST%==2 goto settings2
if %TEST%==3 goto settings3
if %TEST%==4 goto settings4
if %TEST%==5 goto settings6
if %TEST%==6 goto settings5
if %TEST%==7 goto downloadnow1
if %TEST%==8 goto disa2
if %TEST%==9 goto disa1
if %TEST%==10 start https://kpstvhub.com && goto settings
if %TEST%==p goto packdevice
if %TEST%==P goto packdevice
if %TEST%==x goto RESTART
if %TEST%==X goto RESTART
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto settings
:packdevice
cls
echo.
del temp\* /Q
echo Waiting for USB debugging to be detected
adb wait-for-device
ping -n 2 127.0.0.1 >nul
adb shell getprop ro.product.device >_temp.log
for /f %%m in (_temp.log) do (SET folder=%%m)
md temp\%folder%
echo.
echo Generating Device Information...
echo.
echo.> temp\%folder%\info.txt
echo ---------------------------------- >> temp\%folder%\info.txt
echo Auto Generated by Coolpad Toolkit >> temp\%folder%\info.txt
echo ---------------------------------- >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build Characteristics: >> temp\%folder%\info.txt
adb shell getprop ro.build.characteristics >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Bootloader Info: >> temp\%folder%\info.txt
adb shell getprop ro.bootloader >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build PDA: >> temp\%folder%\info.txt
adb shell getprop ro.build.PDA >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build Description: >> temp\%folder%\info.txt
adb shell getprop ro.build.description >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Encryption State: >> temp\%folder%\info.txt
adb shell getprop ro.crypto.state >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build ID: >> temp\%folder%\info.txt
adb shell getprop ro.build.id >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Ro Secure: >> temp\%folder%\info.txt
adb shell getprop ro.secure >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo ADB Secure: >> temp\%folder%\info.txt
adb shell getprop ro.adb.secure >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo SE Linux Enforcement: >> temp\%folder%\info.txt
adb shell getprop ro.build.selinux.enforce >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo SE Linux: >> temp\%folder%\info.txt
adb shell getprop ro.build.selinux >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build version Release: >> temp\%folder%\info.txt
adb shell getprop ro.build.version.release >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Platform Version: >> temp\%folder%\info.txt
adb shell getprop ro.board.platform >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Local Region: >> temp\%folder%\info.txt
adb shell getprop ro.product.locale.region >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Product Model: >> temp\%folder%\info.txt
adb shell getprop ro.product.model >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Device Serial: >> temp\%folder%\info.txt
adb shell getprop ro.serialno >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Model ID: >> temp\%folder%\info.txt
adb shell getprop ril.model_id >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Product Device: >> temp\%folder%\info.txt
adb shell getprop ro.product.device >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Hardware Info: >> temp\%folder%\info.txt
adb shell getprop ro.hardware >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Product Manufacturer: >> temp\%folder%\info.txt
adb shell getprop ro.product.manufacturer >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Build Date: >> temp\%folder%\info.txt
adb shell getprop ro.build.date >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo ------------------ >> temp\%folder%\info.txt
echo PARTITION Details >> temp\%folder%\info.txt
echo ------------------ >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Using DF: >> temp\%folder%\info.txt
adb shell df >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Using Parted: >> temp\%folder%\info.txt
adb shell su -c parted /dev/block/mmcblk0 print >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Using Default block /dev/block/platform/mtk-msdc.0/by-name: >> temp\%folder%\info.txt
adb shell su -c ls /dev/block/platform/mtk-msdc.0/by-name >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Using cat proc/mounts: >> temp\%folder%\info.txt
adb shell cat /proc/mounts >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Using cat /proc/partitions >> temp\%folder%\info.txt
adb shell cat /proc/partitions >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo.
echo.
echo Fill the Following Details as said. [Leave it blank ^& Press Enter if unable]
echo.
set TWRP=
set Stock=
set ROM=
set SCATTER=
set guide=
set Otherguide=
set /p TWRP=[*] Give your Device TWRP Link:
echo.
set /p Stock=[*] Give your Device Stock Recovery Link:
echo.
set /p ROM=[*] Give your Device Stock ROM Link:
echo.
set /p SCATTER=[*] Give your Device Scatter.txt Link:
echo.
set /p Guide=[*] Give your Device Guide INFO, ROOT GUIDE or Others Link:
echo.
set /p Otherguide=[*] Any Other guide Link [if you feel its useful]:
echo.
echo Applying...
echo ------------------- >> temp\%folder%\info.txt
echo Guides, Links, ETC >> temp\%folder%\info.txt
echo ------------------- >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo TWRP Link: %TWRP% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Stock Recovery Link: %Stosck% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Stock ROM Link: %ROM% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Scatter File: %SCATTER% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Guide 1: %Guide% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
echo Guide 2: %Otherguide% >> temp\%folder%\info.txt
echo.>> temp\%folder%\info.txt
cls
echo.
echo Information Saved at temp\%folder%\info.txt
echo.
echo You can modify your details of that info.txt file to help me more :)
echo.
echo Send me this information over my email.
echo You can find my contact ID from Toolkit Settings Option #30
echo.
pause
goto settings
:disa2
if not exist tools\_toolkitupdatec.cf (
echo OK > tools\_toolkitupdatec.cf
set W1=None
)
if %W1%==OK (echo NO > tools\_toolkitupdatec.cf)
if %W1%==NO (echo OK > tools\_toolkitupdatec.cf)
goto settings
:disa1
cls
ping localhost -n 2 >nul
set TEST=OOP
echo ===================================================================================
echo ARE YOU SURE ?
ECHO.
ECHO The Toolkit will then disable its safety feature of the Phone encryption which
echo might let the device brick too.
echo However you can then enable it by again selecting this option :)
echo.
echo ===================================================================================
echo.
SET /P TEST=[*] Enter Y for Yes and N for NO :-
if %TEST%==Y goto disa11
if %TEST%==y goto disa11
if %TEST%==n goto settings
if %TEST%==B goto settings
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto disa1
:disa11
if not exist tools\_toolkitsettings.cf (
echo OK > tools\_toolkitsettings.cf
set W2=None
)
if %W2%==OK (echo NO > tools\_toolkitsettings.cf)
if %W2%==NO (echo OK > tools\_toolkitsettings.cf)
goto settings
:downloadnow1
title Coolpad Toolkit V%version%
cls
set pluginmenu=Garbage
echo ===================================================================================
echo From here you can download plugins from your phone
echo.
echo MAKE SURE YOU HAVE A NET CONNECTION,ON YOUR PC SO THAT WE CAN DOWNLOAD PLUGIN
ECHO EASILY.
ECHO AN ALREADY DOWNLOADED PLUGIN WILL BE MARKED AS NOTHING. BUT AN NOT DOWNLOAD PLUGIN
ECHO WILL BE MARKED AS DOWNLOAD EMBEED IN SQUARE BRACKETS.
ECHO SO YOU CAN DISTINNGUISH BETWEEN THEM.
echo ===================================================================================
ECHO.
ECHO PLUGINS : :
echo -------
echo.
if exist Plugins\Rom-Porter\ROM-PORTER.bat (
echo 1. Rom Porting Tools -- By mnishamk [Registered in Rom Tools # 19]
) else (
echo 1. Rom Porting Tools -- By mnishamk [DOWNLOAD]
)
echo.
if exist "Plugins\Deodexer.exe" (
echo 2. Deodexer Tool -- By BDfreak [Registered in Development Tools # 20]
) else (
echo 2. Deodexer Tool -- By BDfreak [DOWNLOAD]
)
echo.
echo 3. All in One Unpack Utility [ONLINE]
echo.
if exist "Plugins\Build-Prop\Prop-Tweaker.exe" (
echo 4. Build Prop Tweaker -- By ME [Registered in Rom Tools # 19]
) else (
echo 4. Build Prop Tweaker -- By ME [DOWNLOAD]
)
echo.
echo x. Return To MAINMENU
echo.
echo ===================================================================================
ECHO.
SET /P pluginmenu=[*] Make A Decision:-
if %pluginmenu%==1 goto romport
if %pluginmenu%==2 goto deodextool
if %pluginmenu%==4 goto proptweak
if %pluginmenu%==3 start https://forum.xda-developers.com/android/general/roms-aio-unpack-utility-t3607569 && goto downloadnow1
if %pluginmenu%==x goto settings
if %pluginmenu%==X goto settings
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto downloadnow1
:proptweak
set ASK=Garbage
cls
ping localhost -n 2 >nul
echo -----------------------------------------------------------------------------------
echo XDA thread -- https://goo.gl/ubyjVj
echo.
if exist "Plugins\Build-Prop\Prop-Tweaker.exe" (
call tools\ctext.exe 0b "This Plugin is Installed"
)
echo.
echo.
echo Credits -- ME
echo.
echo Build Prop Tweaker is an Awesome Small Mini Tool used to Tweak Some Build Prop Mods
echo Very easily with quite nice interface and also some pre-installed mods in it. VERY
echo Handy and portable to use.
echo.
echo Features :
echo.
echo *Small in size (1.7mb)
echo *Gui Interface
echo *Automatically detects if your device is connected
echo *Automatically detects su i.e if your phone is rooted
echo *Pull your Phone's build prop as current project
echo *Export your build prop or copy it to /system
echo *Make a Recovery flashable build prop (no signing zip)
echo *Over 20 delicious tweaks (check that out)
echo *All others, check that out
echo.
echo -----------------------------------------------------------------------------------
echo.
if exist "Plugins\Build-Prop\Prop-Tweaker.exe" (
pause
goto downloadnow1
)
SET /P ASK=[*] Are you ready to Download [Y]es or [N]o:-
if %ASK%==Y goto plugin3
if %ASK%==y goto plugin3
if %ASK%==n goto downloadnow1
if %ASK%==N goto downloadnow1
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto download1
:plugin3
cls
ping localhost -n 3 >nul
echo.
echo Downloading Build Prop Tweaker Plugin..
echo.
ping localhost -n 3 >nul
if exist Prop-Tweaker.zip (goto plugin123)
tools\wget https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Prop-Tweaker.zip --no-check-certificate
if errorlevel 1 goto plugin1err1
:plugin123
cls
md Plugins\Build-Prop
ping localhost -n 3 >nul
echo.
echo Extracting..
"%~dp0tools\7za.exe" x -y -oPlugins\Build-Prop\ Prop-Tweaker.zip
echo.
ping localhost -n 3 >nul
cls
::del Prop-Tweaker.zip /Q
ping localhost -n 3 >nul
echo.
echo Build Prop Tweaker register you can use it now..
ping localhost -n 4 >nul
echo.
goto settings
:plugin1err1
echo.
echo We are not able to download required module.. because some connectivity issues..
ping localhost -n 3 >nul
echo You can also manually download it from the given below link..
ping localhost -n 3 >nul
echo.
echo link : https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Prop-Tweaker.zip
echo.
echo Once downloaded you can place this file into this directory and run this
echo option again..
ping localhost -n 3 >nul
echo.
pause
goto RESTART
:deodextool
set ASK=Garbage
if exist "Plugins\Deodexer.exe" (goto Pluginalreadyinstalled2)
cls
ping localhost -n 2 >nul
echo -----------------------------------------------------------------------------------
echo XDA thread -- http://forum.xda-developers.com/showthread.php?t=2735156
echo.
echo Credits -- BDfreak (Recognised Themer)
echo.
echo Ultimate Deodexer is a tool engineered for all XDA Members, which allows user to
echo deodex apk and jar files with just some few clicks.It is a automated GUI based tool
echo and very much user friendly.
echo.
echo Features :
echo.
echo *Works with all Windows Version
echo *User friendly Interface
echo *Can deodex apks and jars of all API level
echo *Solves problem in deodexing which was with 4.3/4.4
echo *Drag and drop files or folders to load odex files
echo *Framework and Output path can be selected
echo *Unlimited files can be deodexed in a Go
echo *Creates a log text file to track what's going on
echo.
echo -----------------------------------------------------------------------------------
echo.
SET /P ASK=[*] Are you ready to Download [Y]es or [N]o:-
if %ASK%==Y goto plugin2
if %ASK%==y goto plugin2
if %ASK%==n goto downloadnow1
if %ASK%==N goto downloadnow1
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto deodextool
:plugin2err
echo.
echo We are not able to download required module.. because some connectivity issues..
ping localhost -n 3 >nul
echo You can also manually download it from the given below link..
ping localhost -n 3 >nul
echo.
echo link : ^https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Deodexer.exe
echo.
echo Once downloaded you can place this file into this directory and run this
echo option again..
ping localhost -n 3 >nul
echo.
pause
goto RESTART
:plugin2
cls
ping localhost -n 3 >nul
echo.
echo Downloading Ultimate Deodexer Plugin..
echo.
ping localhost -n 3 >nul
if exist "Dexoder.exe" (goto plugin22)
tools\wget https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Deodexer.exe --no-check-certificate
if errorlevel 1 goto plugin2err
:plugin22
cls
ping localhost -n 3 >nul
echo.
echo Verifying..
cd "%~dp0"
move Dexoder.exe "Plugins"
rename Plugins\Dexoder.exe Deodexer.exe
echo.
ping localhost -n 3 >nul
cls
ping localhost -n 3 >nul
echo.
echo Ultimate Deodexer Tool register you can use it now..
ping localhost -n 4 >nul
echo.
goto settings
:Pluginalreadyinstalled2
cls
ping localhost -n 2 >nul
echo -----------------------------------------------------------------------------------
echo XDA thread -- http://forum.xda-developers.com/showthread.php?t=2735156
echo.
echo Credits -- BDfreak (Recognised Themer)
echo.
echo Ultimate Deodexer is a tool engineered for all XDA Members, which allows user to
echo deodex apk and jar files with just some few clicks. It is a automated GUI based tool
echo and very much user friendly.
echo.
echo Features :
echo.
echo *Works with all Windows Version
echo *User friendly Interface
echo *Can deodex apks and jars of all API level
echo *Solves problem in deodexing which was with 4.3/4.4
echo *Drag and drop files or folders to load odex files
echo *Framework and Output path can be selected
echo *Unlimited files can be deodexed in a Go
echo *Creates a log text file to track what's going on
echo.
echo -----------------------------------------------------------------------------------
echo.
pause
goto downloadnow1
:romport
set ASK=Garbage
if exist Plugins\Rom-Porter\ROM-PORTER.bat (goto Pluginalreadyinstalled1)
cls
ping localhost -n 2 >nul
echo -----------------------------------------------------------------------------------
echo XDA thread -- http://forum.xda-developers.com/showthread.php?t=2276871
echo.
echo Credits -- mnishamk (Senior Member)
echo.
echo With This tool you can actually port custom roms to any device, take an eg of miui
echo you can port it easily with our stock rom. Its easy to use and very basic procedure
echo else everything tool will automatically do it.
echo.
echo -----------------------------------------------------------------------------------
echo.
SET /P ASK=[*] Are you ready to Download [Y]es or [N]o:-
if %ASK%==Y goto plugin1
if %ASK%==y goto plugin1
if %ASK%==n goto downloadnow1
if %ASK%==N goto downloadnow1
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto romport
:plugin1err
echo.
echo We are not able to download required module.. because some connectivity issues..
ping localhost -n 3 >nul
echo You can also manually download it from the given below link..
ping localhost -n 3 >nul
echo.
echo link : https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Plugin1.7z
echo.
echo Once downloaded you can place this file into this directory and run this
echo option again..
ping localhost -n 3 >nul
echo.
pause
goto RESTART
:plugin1
cls
ping localhost -n 3 >nul
echo.
echo Downloading Rom Porter Plugin..
echo.
ping localhost -n 3 >nul
if exist Plugin1.7z (goto plugin12)
tools\wget https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/Plugins/Plugin1.7z --no-check-certificate
if errorlevel 1 goto plugin1err
:plugin12
cls
ping localhost -n 3 >nul
echo.
echo Extracting..
"%~dp0tools\7za.exe" x -y Plugin1.7z
echo.
ping localhost -n 3 >nul
cls
ping localhost -n 3 >nul
echo.
echo Rom porter Tool register you can use it now..
ping localhost -n 4 >nul
echo.
goto settings
:settings6
cls
echo.
echo ===================================================================================
echo This screen is to give credit to peoples who have reported bugs to me and made it
echo again a Better and increased in performance. RESPECT THEM
echo ===================================================================================
echo.
echo %toolkitthread%
echo.
echo WRITTEN BY :
echo ----------
echo.
echo Kaustubh Patange (KP)
echo.
echo Email : DeveloperKP16@gmail.com
echo.
echo BUG REPORTERS :
echo -------------
echo.
echo - MAJOR BUG about fastboot not being detected and used -- Pranay
echo.
echo - MAJOR BUG about adb not working in recovery -- Pranay
echo.
echo - Bugs in Installing Google usb drivers -- Pranay
echo.
echo - Bugs in Mods Section while installing Dolby atmos -- ME :)
echo.
echo - Bugs in Flashing Custom Recovery regarding some recovery**.p
echo reflashing stock recovery -- Tanmay
echo.
echo - Bugs in Xposed Module (Now no bootloop Will occur) -- ME :)
echo.
echo Thanks to all this people Who have contributed to report bugs, otherwise this
echo toolkit goes wrong.. :p
echo.
echo ===================================================================================
echo.
pause
goto settings
:settings5
cls
echo.
echo ===================================================================================
echo This will help you to Contact me
echo ===================================================================================
echo.
echo If you have Some reports,bugs,regarding this toolkit you can contact me from below
echo.
echo If you want to help me in adding some options contact me
echo.
echo If you have some new ideas contact me
echo.
echo Want to say thanks to me then you need to follow some procedures not lenghty but
echo short enough.
echo 1. Like the Toolkit thread
echo 2. Share this toolkit to as many people as you can
echo 3. Make youtube videos of it like helping out some options and stuff
echo 4. Thats it :)
echo.
echo CONTACT ME : :
echo ----------
echo.
echo Email Support : developerKP16@gmail.com
echo.
echo WhatsApp : +91 7208565164
echo.
echo ===================================================================================
echo.
pause
goto settings
:settings4
cls
echo.
echo ===================================================================================
echo This screen is to give credit to the people who have contributed to the Toolkit.
echo ===================================================================================
echo.
echo WRITTEN BY :
echo ----------
echo.
echo Kaustubh Patange (KP)
echo.
echo Email : DeveloperKP16@gmail.com
echo.
echo CONTRIBUTORS :
echo ------------
echo.
echo Koush and the Clockworkmod team for CWM custom recovery.
echo.
echo Teamwin for TWRP custom recovery.
echo.
echo Philz_Touch for his Advanced CWM recovery.
echo.
echo Chainfire for his SuperSU root.
echo.
echo Koush [again] for his Superuser root.
echo.
echo Stephen Erickson for the BusyBox installer app.
echo.
echo BurrowsApps for the Root Checker app.
echo.
echo Riteshu For His SMS Backup ^& Restore
echo.
echo Wanam for the EFS Backup app.
echo.
echo Coolpad Members (AMT, TEAM Zero, etc)
echo.
echo Thank you for those who Contributed there roms.
echo.
echo ASSISTED ME:
echo -----------
echo.
echo Shripal Bro.. :) Who helped me in clearing my doubts.
echo.
echo Google : For clearing my doubts.
echo.
echo Thank you to everyone else who has contributed and made the Toolkit what it is.
echo.
echo ===================================================================================
echo.
echo Press any key to return to the Main Menu..&pause >nul
echo.
goto settings
:settings3
cls
echo.
echo ===================================================================================
echo [Root] - SuperSU by Chainfire v2.78
echo [Root] - SuperSU Beta by Chainfire v2.78
echo [Root] - Superuser by ClockworkMod v1.0.3.0
echo.
echo.
echo [App] Busybox Installer by Stericson v4.4
echo [App] Root Checker by Burrows Apps v4.0.2
echo [App] SMS Backup ^& Restore unknown
echo [App] EFS Backup by Wannam v1.60
echo [App] ADBD insecure v2.0
echo [App] Xposed Installer v3.0 alpha
echo.
echo [Tool] Sp Flash Tool v5.1628.00
echo ===================================================================================
ping -n 3 127.0.0.1 >nul
echo.
echo Press any key to return to the Main Menu&pause >nul
echo.
goto settings
:settings2
cls
echo ===================================================================================
echo This screen contains various settings/changes you can make to the ToolKit.
echo ===================================================================================
echo.
echo This will allow you to change the background and text colours of the ToolKit to add
echo a bit of a personal touch to it. The colours you can select are as follows:
echo.
echo 0 = Black 8 = Grey
echo 1 = Blue 9 = Light Blue
echo 2 = Green A = Light Green
echo 3 = Aqua B = Light Aqua
echo 4 = Red C = Light Red
echo 5 = Purple D = Light Purple
echo 6 = Yellow E = Light Yellow
echo 7 = White F = Light White
echo.
echo The colour setting when installed is '0' [Black] for the Background and 'A'
echo [Light Green]for the text colour but you can change it to whatever you want and it
echo will be your new default colour.
echo.
echo ===================================================================================
echo.
SET /P CLD=[*] Select background color ( 0-F ) :-
echo.
SET /P GGT=[*] Select text color ( 0-F ) :-
echo.
ping localhost -n 2 >nul
if exist "tools\_toolkitcolor.cf" (del "tools\_toolkitcolor.cf" /Q)
echo.
echo I: Setting Toolkit Color..
echo %CLD% >> tools\_toolkitcolor.cf
echo %GGT% >> tools\_toolkitcolor.cf
ping localhost -n 2 >nul
set n=
for /F "tokens=1" %%i in (tools\_toolkitcolor.cf) do (
set /a n+=1
set colour!n!=%%i
)
ping localhost -n 2 >nul
echo.
echo I: RETURNING TO MAINMENU..
ping localhost -n 3 >nul
color %colour1%%colour2%
ping localhost -n 2 >nul
goto RESTART
:settings1
if exist Toolkit.bat (
call Toolkit.bat
goto RESTART
exit
) else (
call Toolkit.exe
goto RESTART
exit
)
goto RESTART
:help
cls
ping localhost -n 2 >nul
SET infosectionon=yes
cls
echo ===================================================================================
echo This Screen will give you lots of useful information about how to use the Toolkit
echo and how to fix any problems you may be facing. I will update this as frequently as
echo I can to keep all the information up to date.
echo ===================================================================================
echo.&echo.
echo INFORMATION OPTIONS [This section is under development]
echo -------------------
echo.
echo 1. So I installed the Toolkit, now what am I supposed to do? [Info]
echo.
echo 2. Selecting from the Main Menu [Info]
echo.
echo 3. Manual Instructions for Installing Drivers [Info]
echo.
echo 4. Toolkit and Device 'Frequently Asked Questions' [Info]
echo.
echo.
echo 5. Return to MAINMENU
echo.
echo ===================================================================================
echo.
SET /P infosectionon=[*] Make A Choice:-
if %infosectionon%==1 goto info1
if %infosectionon%==2 goto info2
if %infosectionon%==3 goto info3
if %infosectionon%==4 goto info4
if %infosectionon%==5 goto RESTART
echo.
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto help
:info4
cls
echo ===================================================================================
echo TOOLKIT AND DEVICE FREQUENTLY ASKED QUESTIONS PAGE 1
echo ===================================================================================
echo.
echo Q. What is ADB Shell?
echo.
echo Adb shell is a linux command line tool (because android is based on linux) used to
echo send commands to your android device. For S-ON devices, this is crucial for
echo modifying files in the /system partition (where the rom sits) as you cannot modify