forked from KaustubhPatange/Coolpad-Toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToolkit.bat
More file actions
1559 lines (1538 loc) · 48.5 KB
/
Copy pathToolkit.bat
File metadata and controls
1559 lines (1538 loc) · 48.5 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 Signature
@echo off
SETLOCAL EnableDelayedExpansion
mode con:cols=85 lines=49
set internet=None
if exist sp_tool.7z goto letstart
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)
color 0a
echo.
if %W1%==OK (goto autocheck) else (goto inidata1)
:autocheck
echo Checking internet connection
ping localhost -n 2 >nul
Ping www.google.nl -n 1 -w 1000
if errorlevel 1 (set internet=1) else (set internet=0)
cls
if %internet%==0 (
set returntome11=goto inidata1
goto checkforupdates
)
:inidata1
SET state=None
color 0a
set returntome11=
echo Starting ADB..
adb start-server
ping localhost -n 3 >nul
cd "%~dp0"
if not exist _device.log (echo None >> _device.log)
if not exist tools\_toolkitcolor.cf (echo 0 >> tools\_toolkitcolor.cf && echo a >> tools\_toolkitcolor.cf)
set m=
set n=
set returntome11=
set MODEL=None
set menuselection=Gatg
adb shell getprop ro.product.model >_temp.log
adb shell getprop ro.product.manufacturer >_temp1.log
adb shell getprop ro.crypto.state >_temp2.log
if exist tools\device.log (del tools\device.log /Q && echo Script-is-running >> tools\device.log) else (echo Script-is-running >> tools\device.log)
for /f "tokens=1" %%s in (_device.log) do (SET devicework=%%s)
for /f "tokens=1" %%f in (_temp1.log) do (SET productmanufacturer=%%f)
for /f "tokens=*" %%k in (_temp.log) do (SET productmodel=%%k)
for /F "tokens=1" %%i in (tools\_toolkitcolor.cf) do (set /a m+=1 && set colour!m!=%%i)
for /f "tokens=1" %%m in (tools\_toolkitsite.cf) do (SET toolkitthread=%%m)
for /f "tokens=*" %%m in (tools\_toolkitlast.cf) do (SET lastcheck=%%m)
for /f "tokens=*" %%s in (tools\_toolkitedition.cf) do (SET toolkitedition=%%s)
for /f "tokens=1" %%r in (tools\_toolkitversion.cf) do (set /a n+=1 && set version=%%r)
for /f "tokens=1" %%m in (_temp2.log) do (SET state=%%m)
ping localhost -n 1 >nul
cls
color %colour1%%colour2%
title Coolpad Toolkit V%version%
if errorlevel 1 goto resetcolors
del _temp1.log /Q
del _temp.log /Q
if %devicework%==Basic (set MODEL=Basic)
if %devicework%==CPN3L (set MODEL=Coolpad Note 3 Lite)
if %devicework%==CPN3 (set MODEL=Coolpad Note 3)
if %devicework%==ELP8 (set MODEL=Elephone P8 3D)
if %devicework%==CPN3P (set MODEL=Coolpad Note 3 Plus)
if %state%==encrypted (set clashes=failed) else (set clashes=pass)
if errorlevel 1 goto mainmenu
:mainmenu
cd "%~dp0"
title Coolpad Toolkit V%version%
if exist _temp1.log (del _temp1.log /Q)
if exist _temp2.log (del _temp2.log /Q)
cls
set menuselection=Garbage
echo ===================================================================================
echo Welcome to the Coolpad Toolkit %toolkitedition% edition version: V%version%
echo ===================================================================================
echo.
echo OPTION 99 IS A BASIC TOOLKIT FOR ANY DEVICE. YOU CAN MAKE BACKUPS, INSTALL APK
echo FILES, MAKE A LOGCAT, VIEW DEVICE INFO, OPEN A COMMAND PROMPT AND OTHER TASKS.
echo.
echo NOTE: IF USB DEBUGGING IS ENABLED ON YOUR DEVICE AND ADB IS NOT RECOGNISED [WITH
echo DRIVERS INSTALLED] PULL DOWN THE NOTIFICATIONS [TOP LEFT] WITH YOUR DEVICE PLUGGED
echo IN VIA USB, CLICK 'CONNECTED AS' AND SWITCH FROM MTP TO PTP MODE. UNPLUG/REPLUG THE
echo USB CABLE ASWELL AND MAKE SURE YOUR PC IS AUTHENTICATED FROM YOUR DEVICE.
ECHO.
ECHO IF YOU HAVE PROBLEM WITH THE DRIVERS THAT YOUR PHONE IS NOT BEING DETECTED THEN
ECHO SIMPLY INSTALL COOLPAD DRIVERS FROM DRIVER INSTALLATION OR DOWNLOAD AND INSTALL
ECHO ANDROID SDK, I.E ANDROID STUDIO.
echo ===================================================================================
echo.
echo Detected Device [if plugged in]: %productmanufacturer% %productmodel%
echo.
echo COOLPAD DEVICE SUPPORTED OTHER DEVICES SUPPORTED
echo ------------------------ -----------------------
echo.
echo 01. Coolpad Note 3 [L/MM] 07. Elephone P8 3D
echo 02. Coolpad Note 3 Lite [L/MM]
echo 03. Coolpad Note 3 Plus [L]
echo 04. Coolpad Dazon 1
echo 05. Coolpad Note 5 [MM/N]
echo 06. Coolpad Max [In Development]
echo.
echo Key: NS - Not Supported Yet [will be added]
echo.
echo 99. Go straight to Main Menu with basic android toolkit [any device]
echo DR. Install drivers to work with android devices
:: echo I. Display connected Device Information [if plugged in and drivers installed]
:: echo
echo R. Refresh Screen CP. Open a Command Prompt DO. Donate Me :)
echo C. Contact Me :) CH. Check for Updates D. Visit Official Website
echo T. TroubleShoot S. Sync Toolkit [Update Modules ^& Tools]
echo A. Autmatically Detect your device ^& Download the modules..
echo.
echo X. EXIT
echo.
rem ECHO IF YOU FIND ANY BUG, WANT TO REPORT ME SOMETHING, HELP ME IN MAKING THESE MODULES,
rem ECHO WANT TO GIVE ANY SUGGESTIONS, CONTACT SUPPORT, ETC. YOU CAN CONTACT ME FROM ABOVE
rem ECHO OPTIONS "C" (WITHOUT QUOTES :0)
echo FOR ANY CONSUMER SUPPORT OR BUG REPORTING, OR ANY HELP ABOUT PARTICULAR DEVICE
ECHO CONTACT ME FROM OPTION 'C'
ECHO.
echo ===================================================================================
echo You last used the Toolkit with: %MODEL%
echo ===================================================================================
echo.
SET /P menuselection=[*] Make A Choice and [enter] :-
IF %menuselection%==99 goto Basicset
IF %menuselection%==01 goto CPN3set
IF %menuselection%==02 goto CPN3Lset
IF %menuselection%==03 goto CPN3Pset
IF %menuselection%==04 goto CPN3Dset
IF %menuselection%==05 goto CPN5set
IF %menuselection%==06 goto CPNMAX
IF %menuselection%==07 goto ELP8
if %menuselection%==NS goto nosupport
if %menuselection%==ns goto nosupport
IF %menuselection%==DR goto insd
IF %menuselection%==CP goto cmdlaunch
IF %menuselection%==cp goto cmdlaunch
IF %menuselection%==dr goto insd
IF %menuselection%==I goto getmodelbuildprop
IF %menuselection%==i goto getmodelbuildprop
IF %menuselection%==D goto toolkitsite
IF %menuselection%==DO goto Donate
IF %menuselection%==do goto Donate
IF %menuselection%==d goto toolkitsite
IF %menuselection%==T goto Trouble
IF %menuselection%==t goto Trouble
IF %menuselection%==R goto inidata1
IF %menuselection%==r goto inidata1
IF %menuselection%==x goto exit1
IF %menuselection%==X goto exit1
IF %menuselection%==s goto sync
IF %menuselection%==a goto sync4
IF %menuselection%==A goto sync4
IF %menuselection%==S goto sync
IF %menuselection%==s goto sync
IF %menuselection%==c goto contactme
IF %menuselection%==C goto contactme
IF %menuselection%==CH goto update
IF %menuselection%==ch goto update
echo.
echo You went crazy, Entering Option which is actually not present :0
pause
goto mainmenu
:Donate
cls
ping localhost -n 3 >nul
echo.
echo Thank you for Showing your Interest in Donating me :)
ping localhost -n 3 >nul
echo.
echo Taking you to Paypal Account..
start https://paypal.me/KaustubhPatange
ping localhost -n 5 >nul
echo.
goto mainmenu
:update
cls
echo Checking internet connection
ping localhost -n 2 >nul
Ping www.google.nl -n 1 -w 1000
if errorlevel 1 (set internet=1) else (set internet=0)
cls
if %internet%==0 (goto checkforupdates)
cls
ping localhost -n 2 >nul
echo.
echo You Do not have an Active internet Connection..
ping localhost -n 4 >nul
ping localhost -n 1 >nul
goto mainmenu
:sync
cls
ping localhost -n 2 >nul
echo.
echo Synchronising Toolkit.. (This may take time)
echo.
ping localhost -n 3 >nul
echo Checking web connectivity..
echo.
ping localhost -n 3 >nul
echo Downloading All required Modules..
echo.
ping localhost -n 3 >nul
echo Downloading Drivers Packages..
ping localhost -n 3 >nul
echo.
if exist "%~dp0drivers\UniversalAdbDriverSetup.msi" (echo Module is already present.. && goto sync1)
cd drivers
"%~dp0tools\wget" http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi --no-check-certificate
if errorlevel 1 goto error1
:sync1
if exist "%~dp0drivers\adb-setup-1.4.3.exe" (echo Module is already present.. && goto sync3)
if exist "%~dp0temp\adb-setup-1-4-31.key" (echo Module is already present but not verified.. && goto sync2)
cd temp
echo Downloading the Installer..
"%~dp0tools\wget" https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/drivers/adb-setup-1-4-31.key --no-check-certificate
:sync2
echo Verifying the Module..
rename "adb-setup-1-4-31.key" adb-setup-1.4.3.exe
cd "%~dp0"
move "%~dp0temp\adb-setup-1.4.3.exe" "%~dp0drivers"
:sync3
echo.
ping localhost -n 3 >nul
echo Downloading Xposed Modules..
echo.
cd "%~dp0root"
ping localhost -n 3 >nul
if not exist xposed-v86-sdk22-arm64.zip (
"%~dp0tools\wget.exe" http://dl-xda.xposed.info/framework/sdk22/arm64/xposed-v86-sdk22-arm64.zip --no-check-certificate
if errorlevel 1 goto error1
)
if not exist xposed-v86-sdk23-arm64.zip (
"%~dp0tools\wget.exe" http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v86-sdk23-arm64.zip --no-check-certificate
if errorlevel 1 goto error1
)
if not exist xposed-uninstaller-20160829-arm64.zip (
"%~dp0tools\wget.exe" http://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20160829-arm64.zip --no-check-certificate
if errorlevel 1 goto error1
)
echo.
ping localhost -n 3 >nul
echo Verified Xposed Modules..
echo.
ping localhost -n 3 >nul
cls
ping localhost -n 3 >nul
echo.
echo Toolkit Synchronised Fully..
ping localhost -n 3 >nul
goto mainmenu
:sync4
cls
ping localhost -n 3 >nul
echo.
echo Connect your device to pc and press Enter..
echo.
echo.
ping localhost -n 3 >nul
pause
echo.
ping localhost -n 3 >nul
:loopx
cd "%~dp0"
SET ASK1=dkjkj
cls
echo.
adb devices
echo.
echo You can recheck again by press enter..
echo.
SET /P ASK1=[*] Did you see your phone serial key (y/n):-
if %ASK1%==y goto sync5
if %ASK1%==Y goto sync5
if %ASK1%==n goto bet
if %ASK1%==N goto bet
cls
goto loopx
:bet
echo.
echo Basic Drivers are not Installed..
ping localhost -n 3 >nul
echo.
echo Installing Now..
if not exist "%~dp0drivers\Coolpad_Open-source.exe" (echo. && echo Some files are missing && pause && goto insd)
call "%~dp0drivers\Coolpad_Open-source.exe"
:sync5
echo.
cd "%~dp0"
ping localhost -n 3 >nul
echo Waiting for device..
adb wait-for-device
echo.
ping localhost -n 3 >nul
echo Checking Phone model.. and Downloading Modules according to it..
echo.
ping localhost -n 3 >nul
adb shell getprop ro.product.model >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET productmodel=%%m)
adb shell getprop ro.product.manufacturer >_temp.log
for /f "tokens=1" %%m in (_temp.log) do (SET productmanufacturer=%%m)
ping localhost -n 3 >nul
if %productmanufacturer%==Coolpad (goto sync7) else (goto syncerror)
:syncerror
echo.
echo You are not using Coolpad device..
echo.
ping localhost -n 3 >nul
goto error1
:sync7
if %productmodel%==CP8676_I02 (set DEVICE=CPN3 && goto cpn3bset)
if %productmodel%==CP8676_I03 (set DEVICE=CPN3P && goto cpn3pbset)
if %productmodel%==CP8298_I00 (set DEVICE=CPN3L && goto cpn3lbset)
echo.
echo Maybe you are using some other device..
echo.
ping localhost -n 3 >nul
echo This device is not currently yet supported by our toolkit..
echo.
ping localhost -n 3 >nul
echo You can still use Basic Version of the toolkit..
echo.
ping localhost -n 3 >nul
echo.
ping localhost -n 3 >nul
goto mainmenu
:cpn3pbset
echo.
echo The Detected device is Coolpad Note 3 Plus...
echo.
ping localhost -n 3 >nul
echo Downloading Modules According to it..
echo.
ping localhost -n 3 >nul
cls
ping localhost -n 2 >nul
if not exist backups\CPN3P (
md backups\CPN3P
md backups\CPN3P\CWM
md backups\CPN3P\SMS
md backups\CPN3P\STORAGE
md backups\CPN3P\TWRP
md recovery\CPN3P
)
echo.
if not exist recovery\CPN3P\recovery-twrp.img (goto cpn3pset1)
goto mainmenu
:cpn3pset1
ping localhost -n 3 >nul
echo.
echo The selected Device Modules Are Not Downloaded...
echo.
ping localhost -n 3 >nul
echo Downloading it right now..
echo.
if exist "cpn3pnote3.key" (
ping localhost -n 3 >nul
echo File is already downloaded..
goto cpn3pset3
)
ping localhost -n 3 >nul
echo Checking your web connectivity..
ping localhost -n 3 >nul
tools\wget https://coolpadtoolkit.files.wordpress.com/2016/10/cpn3pnote3.key --no-check-certificate
if errorlevel 1 goto cpn3perror
:cpn3pset3
echo.
ping localhost -n 3 >nul
echo Extracting and verifying..
tools\7za x -y cpn3pnote3.key
ping localhost -n 3 >nul
goto mainmenu
:cpn3bset
echo.
echo The Detected device is Coolpad Note 3...
echo.
ping localhost -n 3 >nul
echo Downloading Modules According to it..
echo.
ping localhost -n 3 >nul
cls
ping localhost -n 2 >nul
if not exist backups\CPN3 (
md backups\CPN3
md backups\CPN3\CWM
md backups\CPN3\SMS
md backups\CPN3\STORAGE
md backups\CPN3\TWRP
md recovery\CPN3
)
echo.
if not exist recovery\CPN3\recovery-twrp.img (goto cpn3set1)
goto mainmenu
:cpn3set1
ping localhost -n 3 >nul
echo.
echo The selected Device Modules Are Not Downloaded...
echo.
ping localhost -n 3 >nul
echo Downloading it right now..
echo.
if exist "cpn3note3.key" (
ping localhost -n 3 >nul
echo File is already downloaded..
goto cpn3set3
)
ping localhost -n 3 >nul
echo Checking your web connectivity..
ping localhost -n 3 >nul
tools\wget https://coolpadtoolkit.files.wordpress.com/2016/10/cpn3note3.key --no-check-certificate
if errorlevel 1 goto cpn3error
:cpn3set3
echo.
ping localhost -n 3 >nul
echo Extracting and verifying..
tools\7za x -y cpn3note3.key
ping localhost -n 3 >nul
goto mainmenu
:cpn3lbset
echo.
echo The Detected device is Coolpad Note 3 Lite...
echo.
ping localhost -n 3 >nul
echo Downloading Modules According to it..
echo.
ping localhost -n 3 >nul
goto CPN3Lset
ping localhost -n 3 >nul
goto mainmenu
:Trouble
cls
echo.
echo ===================================================================================
echo TRY TO FIND YOUR PROPER TROUBLE SHOOTING GUIDE
echo ----------------------------------------------
echo.
echo NOTE: All the guides will be updated only if you report me errors.Because I don't
echo ----- Have much time to sit to see the errors, I have more projects to attain. So
echo please report me errors and I will fix it in future updates.
echo.
echo ===================================================================================
echo.
echo OPTIONS : :
echo -------
echo.
echo 1. ADB is not working and detecting my Phone.
echo.
echo 2. ADB is not working in recovery mode.
echo.
echo 3. Fastboot is not detecting my device.
echo.
echo.
echo x. Return To MAINMENU
echo.
echo ===================================================================================
echo.
SET /P TEST=[*] Make A Choice:-
if %TEST%==1 goto Trouble1
if %TEST%==2 goto Trouble2
if %TEST%==3 goto Trouble1
if %TEST%==x goto mainmenu
if %TEST%==X goto mainmenu
echo.
echo You went crazy, Entering Option which is actually not present :0
pause
goto Trouble
:Trouble2
cls
ping localhost -n 2 >nul
echo ===================================================================================
echo Got your problem ---- :p
echo.
echo To fix it is very easy....
echo.
echo 1. Open up the drivers Installation Option from this toolkit which is "DR" or from
echo Option 1 from device toolkit.
echo.
echo 2. Now connect your phone to PC. SO that it must be detected by toolkit.
echo.
echo 3. Then select Option 2 to first of download google ADB drivers. Once downloaded
echo it will be automatically launch. Now install it. Its not a gui installation but
echo a batch installation will install proper drivers for your device.
echo.
echo 4. Now Check your device will properly recognised in recovery.
echo.
echo ===================================================================================
echo.
pause
goto Trouble
:Trouble1
cls
ping localhost -n 2 >nul
echo ===================================================================================
echo Got your problem ---- :p
echo.
echo To fix it is very easy....
echo.
echo 1. Open up the drivers Installation Option from this toolkit which is "DR" or from
echo Option 1 from device toolkit.
echo.
echo 2. Then Select Option 7 to Install Coolpad Official Drivers (hardly takes 2 min).
echo.
echo Thats it. You can Reboot now ... Once installed... Now check your adb is working.
echo.
echo ===================================================================================
echo.
pause
goto Trouble
:contactme
cls
echo.
echo ===================================================================================
echo You Can Contact me from here : %toolkitthread%
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 mainmenu
:nosupport
cls
echo.
echo NS means the device is not currently supported by the Coolpad Toolkit.
echo.
echo It is listed because support will be added soon.
echo.
echo Please keep checking at %toolkitthread% as information
echo will be posted when support for new devices is added to the Toolkit.
echo. &echo.
echo Press any key to return to the Device Selection screen..&pause >nul
echo.
goto mainmenu
:cmdlaunch
cls
ping localhost -n 2 >nul
echo Starting Command Prompt in New Window..
ping localhost -n 2 >nul
start cmd
ping localhost -n 2 >nul
goto mainmenu
:toolkitsite
start %toolkitthread%
ping localhost -n 4 >nul
goto mainmenu
:getmodelbuildprop
cls
echo.
echo Waiting for USB debugging to be detected
adb wait-for-device
ping -n 2 127.0.0.1 >nul
echo.
adb shell getprop ro.build.characteristics >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET buildcharacteristics=%%m)
adb shell getprop ro.bootloader >_temp.log
for /f %%m in (_temp.log) do (SET productbootloader=%%m)
adb shell getprop ro.build.PDA >_temp.log
for /f %%m in (_temp.log) do (SET buildpda=%%m)
adb shell getprop ro.build.description >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET builddescription=%%m)
adb shell getprop ro.crypto.state >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET cryptostate=%%m)
adb shell getprop ro.build.id >_temp.log
for /f %%m in (_temp.log) do (SET productbuildid=%%m)
adb shell getprop ro.secure >_temp.log
for /f %%m in (_temp.log) do (SET rosecure=%%m)
adb shell getprop ro.adb.secure >_temp.log
for /f %%m in (_temp.log) do (SET roadbsecure=%%m)
adb shell getprop ro.build.selinux.enforce >_temp.log
for /f %%m in (_temp.log) do (SET selinuxenforce=%%m)
adb shell getprop ro.build.selinux >_temp.log
for /f %%m in (_temp.log) do (SET selinux=%%m)
adb shell getprop ro.build.version.release >_temp.log
for /f %%m in (_temp.log) do (SET buildversionrelease=%%m)
adb shell getprop ro.config.alarm_alert >_temp.log
for /f %%m in (_temp.log) do (SET configalarmalert=%%m)
adb shell getprop ro.config.notification_sound >_temp.log
for /f %%m in (_temp.log) do (SET confignotificationsound=%%m)
adb shell getprop ro.config.ringtone >_temp.log
for /f %%m in (_temp.log) do (SET configringtone=%%m)
adb shell getprop ro.csc.sales_code >_temp.log
for /f %%m in (_temp.log) do (SET cscsalescode=%%m)
adb shell getprop ro.board.platform >_temp.log
for /f %%m in (_temp.log) do (SET productboard=%%m)
adb shell getprop ro.product.locale.region >_temp.log
for /f %%m in (_temp.log) do (SET productlocalregion=%%m)
adb shell getprop ro.product.model >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET productmodel=%%m)
adb shell getprop ro.serialno >_temp.log
for /f %%m in (_temp.log) do (SET productserialnumber=%%m)
adb shell getprop ril.model_id >_temp.log
for /f %%m in (_temp.log) do (SET modelid=%%m)
adb shell getprop ro.product.device >_temp.log
for /f %%m in (_temp.log) do (SET producttype=%%m)
adb shell getprop ro.hardware >_temp.log
for /f "tokens=1" %%m in (_temp.log) do (SET hardwaremanufacturer=%%m)
adb shell getprop ro.product.manufacturer >_temp.log
for /f "tokens=1" %%m in (_temp.log) do (SET productmanufacturer=%%m)
adb shell getprop ro.build.date >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET builddate=%%m)
adb shell getprop sys.usb.config >_temp.log
for /f "tokens=*" %%m in (_temp.log) do (SET connectionstate=%%m)
adb shell getprop ro.secure >_temp.log
for /f "tokens=1" %%m in (_temp.log) do (SET productsecure1=%%m)
ping -n 3 127.0.0.1 >nul
IF %productsecure1%==0 (
SET productadbstatus=INSECURE
) ELSE (SET productadbstatus=SECURE)
IF EXIST _temp.log (del _temp.log /F /Q)
cls
ping -n 3 127.0.0.1 >nul
echo.
echo DEVICE INFORMATION - WORKING ENVIRONMENT ADB MODE
echo ==============================================
echo.
echo Product Manufacturer: %productmanufacturer%
echo Product Model: %productmodel%
echo Model ID: %modelid%
echo Device Type: %producttype%
echo Device Characteristics: %buildcharacteristics%
echo Product Serial Number: %productserialnumber%
echo.
echo Build Description: %builddescription%
echo Build Date: %builddate%
echo Hardware: %hardwaremanufacturer%
echo Board Platform: %productboard%
echo Build Version Release: %buildversionrelease%
echo Build ID: %productbuildid%
echo.
echo USB Connection Type: %connectionstate%
echo.
echo Bootloader: %productbootloader%
echo Build PDA: %buildpda%
echo CSC Sales Code: %cscsalescode%
echo Region Code: %productlocalregion%
echo Encryption State: %cryptostate%
echo Ro.secure Level: %rosecure%
echo Ro.adb.secure Level: %roadbsecure%
echo Selinux.enforce Level: %selinuxenforce%
echo Selinux Level: %selinux%
echo Alarm Alert: %configalarmalert%
echo Notification Sound: %confignotificationsound%
echo Ringtone: %configringtone%
echo.
echo -----------------------------------------------------------------------------------
echo Boot Image Status is: %productadbstatus% [based on ro.secure value]
echo Note: This is only an indictation if the boot image files have been modified
echo -----------------------------------------------------------------------------------
echo.&echo.
pause
goto mainmenu
:insd
cd "%~dp0"
set LOOP=garbage
title Coolpad Toolkit V%version%
if exist "drivers\UniversalAdbDriverSetup.msi" (SET info1=OK) else (SET info1=None)
if exist "drivers\adb-setup-1.4.3.exe" (SET info2=OK) else (SET info2=None)
cls
echo ===================================================================================
echo TO INSTALL UNIVERSAL USB DRIVERS (OPTIONAL)
echo -------------------------------------------
echo 1. This will install the latest Universal USB/ADB drivers on to your pc. By doing
echo this the existing one will be overwritted.
echo 2. To proceed, select option 1 from below (Make sure you have an active internet
echo connection) to download the latest Universal Drivers Package.
echo 3. Once its downloaded, toolkit will automatically launch setup.
echo 4. Follow the setup, once its completed, reboot the system once and you have your
echo latest USB/ADB Drivers.
ECHO.
echo TO INSTALL GOOGLE USB\ADB\FASTBOOT DRIVERS (ONE OF THE BEST)
ECHO ------------------------------------------------------------
ECHO 1. This will install the latest Google USB\ADB\FASTBOOT drivers onto your pc, this
echo installer will work on almost every coolui system, even mine :p.
echo 2. To proceed, go ahead and choose option 2 from below, a package will be launch.
echo 3. This package is provided by Snoop05 and recognised xda member.
echo 4. Follow the onscreen instruction by Entering "y" all the times (Make sure to read
echo the stuff whats going on :p).
echo 5. Once its done, you have your adb drivers installed.
echo.
echo TO INSTALL\FIX THE DRIVERS PROBLEMS OF COOLPAD (MOST EFFECTIVE)
ECHO ---------------------------------------------------------------
ECHO 1. To Fix it, choose option 3 from below. This will launch an installer.
echo 2. Connect your phone to pc with usb debugging mode on (hope so you know it, if not
echo go to help section from mainmenu.
echo 3. Now Select install the drivers, if some error causes there. There is an option
echo for how to fix it, Follow the instructions carefully.
echo 4. For some reasons they might tell you to disable driver signature enforcement. Now
echo what is this? You can google it, but to do it in Win8,10 boot into advanced
echo recovery ^> Troubleshoot ^> Advanced Options ^> Startup settings ^> Restart Now
echo and then press F7 key.
echo.
echo ===================================================================================
echo OPTIONS
echo -------
if %info1%==OK (
echo 1. Install Universal USB/ADB drivers to your pc
) else (
echo 1. Install Universal USB/ADB drivers to your pc [DOWNLOAD]
)
if %info2%==OK (
echo 2. Install Google USB ^& ADB drivers including fastboot
) else (
echo 2. Install Google USB ^& ADB drivers including fastboot [DOWNLOAD]
)
echo 3. Install\Fix Device Drivers (disabling DSVM)
echo 4. Install SP Flash Tool Drivers (Mainly use for flashing)
echo 5. SMARTLY Install ADB ^& FASTBOOT drivers [ADVANCED]
echo 6. Help Screen (for Installing SP Drivers)
echo 7. Install Coolpad USB\ADB\FASTBOOT Drivers [MUST INSTALL]
echo.
echo x. Back to Mainmenu
echo ------------------------------------------------------------------------------------
echo.
set /P LOOP=[*] Make your decision:-
if %LOOP%==1 goto dua
if %LOOP%==2 goto adx
if %LOOP%==3 goto insp
if %LOOP%==4 goto fixa
if %LOOP%==5 goto Lw
if %LOOP%==6 goto chaf
if %LOOP%==7 goto Installcp
if %LOOP%==x goto mainmenu
if %LOOP%==X goto mainmenu
echo You went crazy, Entering Option which is actually not present :0
echo.
pause
goto insd
:Installcp
echo.
echo This will Install Perfect USB\ADB\FASTBOOT drivers for All Universal coolpad phones.
echo.
pause
ping localhost -n 2 >nul
echo I: Checking the installer..
ping localhost -n 2 >nul
if not exist "%~dp0drivers\Coolpad_Open-source.exe" (echo. && echo Some files are missing && pause && goto insd)
echo I: Launching package..
call "%~dp0drivers\Coolpad_Open-source.exe"
echo I: Done..
echo.
ping localhost -n 2 >nul
echo Restart your pc now..
pause
goto insd
:chaf
set loop=garbage
title Coolpad Toolkit
cls
echo ===================================================================================
echo HOW TO INSTALL SP TOOL DRIVERS PROPERLY
ECHO ---------------------------------------
ECHO.
ECHO 1. First of all from The Drivers Installer Screen choose 4, to launch the package.
echo 2. Continue with the installation.
echo 3. Once its done it will ask you to reboot your system. Do that and then you have
echo your SP Flash drivers install on pc.
echo NOTE THAT WITHOUT SP FLASH DRIVERS YOU WONT BE ABLE TO FLASH ANY KIND OF RECOVERY
ECHO ---- IMAGE ON YOUR COOLPAD, AS THIS DRIVERS ARE NEED TO RECOGNISE YOUR PHONE IN
ECHO SHUTDOWN MODE.
ECHO.
PAUSE
GOTO INSD
:Lw
cd "%~dp0"
echo.
echo I: Checking Adb drivers are installed or not..
cd..
:loop1
set ASK1=Garbage
adb devices
echo.
SET /P ASK1=[*] Did you see your phone serial key (y/n):-
if %ASK1%==y goto beta2
if %ASK1%==Y goto beta2
if %ASK1%==n goto beta1
if %ASK1%==N goto beta1
echo.
cls
goto loop1
:beta1
echo.
echo Basic Drivers are not Installed..
ping localhost -n 3 >nul
echo.
echo Installing Now..
if not exist "%~dp0drivers\Coolpad_Open-source.exe" (echo. && echo Some files are missing && pause && goto insd)
call "%~dp0drivers\Coolpad_Open-source.exe"
:beta2
echo.
echo Test Occurred.. (1/3)
echo.
ping localhost -n 3 >nul
echo Reboot to recovery..
echo.
adb reboot recovery
ping localhost -n 7 >nul
echo.
echo Once you are in recovery press enter..
pause
echo.
:loop2
cls
set option1=djdh
ping localhost -n 2 >nul
echo.
adb devices
echo.
SET /P option1=[*] Did you see your phone serial key (y/n):-
if %option1%==y goto beta3
if %option1%==Y goto beta3
if %option1%==n goto beta4
if %option1%==N goto beta4
echo.
goto loop2
:beta4
echo.
set recovery1=none
echo Recovery Drivers are installed...
ping localhost -n 3 >nul
echo.
echo Will be installed when you will be boot up to android..
ping localhost -n 3 >nul
echo.
echo Saving..
ping localhost -n 3 >nul
echo You need to manually boot into boot loader..
echo.
echo Use your recovery to boot into bootloader.. Once done..Press enter..
echo.
pause
:beta3
echo.
ping localhost -n 3 >nul
echo Test occured (2/3)
echo.
ping localhost -n 3 >nul
echo Checking Fastboot Drivers..
echo.
:loop3
echo.
fastboot -i 0x1EBF devices
echo.
SET /P option2=[*] Did you see your phone serial key (y/n):-
if %option2%==y goto beta5
if %option2%==Y goto beta5
if %option2%==n goto beta6
if %option2%==N goto beta6
echo.
set option2=Garbage
goto loop3
:beta6
set fastboot1=none
echo.
echo Fastboot drivers are not installed..
echo.
ping localhost -n 3 >nul
echo Will be installed when you will be boot up to android..
ping localhost -n 3 >nul
echo.
echo Saving..
ping localhost -n 3 >nul
echo You need to manually boot into android..
echo.
echo Press your power key for 15 secs...Once done..Press Enter..
echo.
pause
:beta5
echo.
ping localhost -n 3 >nul
echo Test Occurred (3/3)
ping localhost -n 3 >nul
echo.
echo Waiting for device..
adb wait-for-device
echo.
ping localhost -n 3 >nul
echo Analyisng The result..
if %fastboot1%==none (set b1=ERROR) else (SET b1=PRESENT)
if %recovery1%==none (set b2=ERROR) else (SET b2=PRESENT)
ping localhost -n 3 >nul
echo.
echo Basic ADB drivers -- PRESENT
ping localhost -n 3 >nul
echo.
echo Recovery drivers -- %b2%
echo.
ping localhost -n 3 >nul
echo Fastboot drivers -- %b1%
ping localhost -n 3 >nul
echo.
ping localhost -n 3 >nul
ping localhost -n 3 >nul
echo.
echo I: Installing Drivers According to it..
if %fastboot%==none (
goto adx
)
if %recovery%==none (
goto adx
)
echo.
echo All drivers are perfectly Installed..
echo.
call tools\ctext.exe 0b "Device verified Successfully"
echo.
echo.
ping localhost -n 3 >nul
echo.
echo I: RETURNING TO MAINMENU..
ping localhost -n 3 >nul
goto inidata1
:insp
echo.
echo Please connect your phone to pc via cable and usb debugging mode should be enabled.
echo.
pause
echo I: Checking the installer..
ping localhost -n 2 >nul
if not exist "%~dp0drivers\ADBDriverInstaller.exe" (echo. && echo Some Files Are Missing.. && pause && goto insd)
echo I: Launching the package..
echo.
echo Install the correct drivers from the toolkit
call "%~dp0drivers\ADBDriverInstaller.exe"
echo I: Done..
echo.
pause
goto insd
:fixa
echo.
echo I: Checking the installer..
ping localhost -n 2 >nul
if not exist "%~dp0drivers\SP-Drivers.exe" (echo. && echo Some files are missing && pause && goto insd)
echo I: Launching package..
call "%~dp0drivers\SP-Drivers.exe"
echo I: Done..
echo.
echo Restart your pc now..
pause
goto insd
:adx
echo.
echo I: Checking Installer..
ping localhost -n 2 >nul
if exist "%~dp0drivers\adb-setup-1.4.3.exe" (echo Installer is present.. && goto laus1)
if exist "%~dp0temp\adb-setup-1-4-31.key" (echo Installer is present.. && goto test1)
cd temp
echo I: Downloading the Installer..
"%~dp0tools\wget" https://github.com/KaustubhPatange/Coolpad-Toolkit/raw/master/drivers/adb-setup-1-4-31.key --no-check-certificate
:test1
echo I: Verifying the installer..
rename "%~dp0temp\adb-setup-1-4-31.key" adb-setup-1.4.3.exe
cd "%~dp0"
move "%~dp0temp\adb-setup-1.4.3.exe" drivers
if not exist "%~dp0drivers\adb-setup-1.4.3.exe" (echo I: Error while downloading.. && pause && goto insd)
:laus1
cd "%~dp0"
echo I: Launching Installer..
call drivers\adb-setup-1.4.3.exe
pause
echo I: Done..
goto insd
:dua
echo.
echo I: Checking the Installer..
ping localhost -n 2 >nul
if exist "%~dp0drivers\UniversalAdbDriverSetup.msi" (echo Installer is present.. && goto laus)
cd temp
echo I: Downloading the Installer..
"%~dp0tools\wget" http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi --no-check-certificate
echo I: Verifying the installer..
if not exist "%~dp0temp\UniversalAdbDriverSetup.msi" (echo I: Error while downloading.. && pause && goto insd)
copy "%~dp0temp\UniversalAdbDriverSetup.msi" "%~dp0drivers"
:laus
cd "%~dp0"
echo I: Launching Installer..
call drivers\UniversalAdbDriverSetup.msi