-
Notifications
You must be signed in to change notification settings - Fork 2
/
Tool.bat
1024 lines (905 loc) · 19.8 KB
/
Tool.bat
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
@echo off
title ANDROID TOOLBOX
mode con:cols=80 lines=40
:enter
cls
echo How do you want to connect to your phone?
echo.
echo 1] Through cable
echo.
echo 2] Through IP connection.
echo.
echo 3] Continue without connection
echo.
echo X] EXIT
echo.
set /p ipconnect=Enter your choice:
if /i '%ipconnect%' == '1' goto first
if /i '%ipconnect%' == '2' goto second
if /i '%ipconnect%' == '3' goto start
if /i '%ipconnect%' == 'X' goto end
cls
echo Error occured, please enter a valid choice
pause>nul
goto enter
:second
files\adb start-server>nul
cls
echo Enter IP please...
echo.
set /p ip=Enter your IP address:
files\adb connect %ip%
pause>nul
goto start
:first
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
color 0E
echo Connecting with device through USB
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo If this is taking longer than usual then please check if your handset is
echo connected properly and USB DEBUGGING is on
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo ------------------------------------------------
echo -- --
echo -- TOOL MADE BY MZO --
echo -- --
echo ------------------------------------------------
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo TIME: %TIME%
echo DATE: %DATE%
echo.
files\adb wait-for-device>nul
color 07
cls
echo Device found...
echo.
echo.
echo BY PRESSING ENTER YOU AGREE WITH REGULAR TERMS AND CONDITIONS
pause>nul
goto start
:extras
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo [T] Themes
echo.
echo [C] CREDITS
echo.
echo [X] END program
echo.
echo [N] NOTES
echo.
echo [B] Go back
echo.
set /p choice=Enter your choice:
if /i '%choice%' == 'N' goto notes
if /i '%choice%' == 'C' goto credits
if /i '%choice%' == 'X' goto end
if /i '%choice%' == 'T' goto color
if /i '%choice%' == 'B' goto start
cls
goto extras
:notes
cls
echo.
echo.
echo 6) Would only work on phones that have insecure bootloader and support FASTBOOT commands
echo.
echo.
echo.
echo 9) Make sure the files you're trying to flash are in
echo "%CD%\files directory"
echo system.img files are factory images. System.img can only be
echo flashed if you're trying to flash a factory IMAGE
echo.
echo.
echo.
echo 10) This will not overwrite your previous boot/recovery...
echo It will only boot from it,
echo if you get errors or get in bootloop/soft brick, simply restart the phone!
echo IT SHOULD WORK
echo.
echo.
echo.
echo 14) You must place a file named "bootanimation.zip" in %CD%\
echo.
echo.
echo.
echo 16) This will wipe your internal memory as well, make sure you have an external SDCard for zip
echo.
echo.
echo.
echo 19) This will wipe your internal memory as well!
echo.
echo.
echo.
echo If you see any Superuser prompts please accept them
echo.
pause>nul
cls
color 07
cls
echo --------------------------------------------------------------------------------------------------
echo YOU CAN USE THIS TOOL ANYWHERE BUT PLEASE MENTION ME OR MY POSTS IF YOU DO SO!
pause>nul
goto start
:credits
cls
echo ------------------------------------------------
echo -- --
echo -- TOOL MADE BY MZO --
echo -- --
echo ------------------------------------------------
echo.
echo.
echo TIME: %TIME%
echo DATE: %DATE%
echo.
start www.facebook.com/MZ112000
start http://forum.xda-developers.com/member.php?u=6304619
start http://forum.xda-developers.com/android/software/tool-android-ultimate-toolbox-t3061525/post59618784
color f0
pause>nul
echo HIT THANKS IF YOU LIKED THIS TOOL
pause>nul
goto start
:end
adb kill-server
cls
color f4
Echo Goodbye %USERNAME%
pause>nul
exit
:color
cls
echo 0 = Black
echo 1 = Blue
echo 2 = Green
echo 3 = Aqua
echo 4 = Red
echo 5 = Purple
echo 6 = Yellow
echo 7 = White
echo 8 = Gray
echo 9 = Light Blue
echo A = Light Green
echo B = Light Aqua
echo C = Light Red
echo D = Light Purple
echo E = Light Yellow
echo F = Bright White
echo.
set /p forg= Enter your color for text?
set /p backg=Which color do you want as background?
goto Col
:Col
if %backg%==%forg% goto color
cls
color %backg%%forg%
echo Color set!
echo Your choice: %backg%%forg%
pause>nul
goto start
:start
cls
echo. [P]revious PAGE: 1 [N]ext
echo.
echo.
echo.
echo.
echo Choices:
echo.
echo.
echo.
echo.
echo [E] Extras
echo.
echo [1] Check your device's connection
echo.
echo [2] Reboot
echo.
echo [3] Make a full BACKUP in .ab format
echo.
echo [4] Pull a nandroid (CWM/TWRP)
echo.
echo [5] Get system logcats
echo.
echo [6] Unlock/relock bootloader (SEE NOTES)
echo.
echo [7] Sideload an update.zip file
echo.
echo [8] Check your device in fastboot list
echo.
echo [9] Flash recovery/boot from fastboot (SEE NOTES)
echo.
echo [10] Boot from a recovery/boot through fastboot (SEE NOTES)
echo.
echo.
echo.
set /p choice=Enter your choice:
cls
if /i '%choice%' == 'E' goto extras
if /i '%choice%' == '1' goto devicecheck
if /i '%choice%' == '2' goto reboot
if /i '%choice%' == '3' goto abackup
if /i '%choice%' == '4' goto pullnandroid
if /i '%choice%' == '5' goto logs
if /i '%choice%' == '6' goto bootloader
if /i '%choice%' == '7' goto sideload
if /i '%choice%' == '8' goto fastcheck
if /i '%choice%' == '9' goto fastflash
if /i '%choice%' == '10' goto fastboot
if /i '%choice%' == 'N' goto page2
cls
echo Error occured
pause>nul
goto start
---------------------------------------------------
:devicecheck
files\adb devices -l
echo.
@echo If you see random numbers and letters and got "device" on right side, it means that you're OK to proceed
pause>nul
goto start
---------------------------------------------------
:reboot
cls
echo 1) Simple reboot
echo.
echo 2) Reboot into recovery
echo.
echo 3) Reboot into bootloader mode
echo.
echo 4) Reboot into download mode (SEE NOTES)
echo.
echo 5) Go back
set /p reb=Enter your choice:
if /i '%reb%'=='1' goto reb
if /i '%reb%'=='2' goto rebr
if /i '%reb%'=='3' goto rebf
if /i '%reb%'=='4' goto rebd
if /i '%reb%'=='5' goto start
echo Incorrect choice
pause>nul
cls
goto reboot
:reb
files\adb reboot
goto start
:rebr
files\adb reboot recovery
goto start
:rebf
files\adb reboot bootloader
goto start
:rebd
files\adb reboot download
goto start
---------------------------------------------------
:abackup
cls
echo MAKING A BACKUP
mkdir BACKUPS
files\adb backup –all -apk -shared –f
move backup.ab BACKUPS
goto start
---------------------------------------------------
:pullnandroid
cls
echo Please enter a choice from below
echo.
echo 1)TWRP backup
echo.
echo 2)ClockWorkMod NANDROID
echo.
echo 3)Go back
set /p nand=CHOICE:
if '%nand%'=='1' goto twrpn
if '%nand%'=='2' goto cwmn
if '%nand%'=='3' goto start
echo Error occured, please enter correct value
pause>nul
goto pullnandroid
:twrpn
mkdir TWRP
files\adb pull /sdcard/TWRP/ TWRP
goto start
:cwmn
mkdir CWM
files\adb pull /sdcard/ClockWorkMod/ CWM
echo PULLED
pause>nul
goto start
---------------------------------------------------
:logs
cls
files\adb shell logcat > logs.log
echo LOGS copied
pause>nul
goto start
---------------------------------------------------
:bootloader
echo Please enter a choice
echo.
echo 1) Unlock bootloader
echo.
echo 2) Lock bootloader
echo.
echo 3) Check bootloader's state
echo.
echo 4) Back to main menu
echo.
set /p bl=Chose a number:
if /i '%bl%'=='1' goto ul
if /i '%bl%'=='2' goto bll
if /i '%bl%'=='4' goto start
if /i '%bl%'=='3' goto blcheck
cls
echo Please enter a right choice.
pause>nul
cls
goto bootloader
:blcheck
cls
echo DEVICE INFO:
echo.
echo.
fastboot oem device-info
pause>nul
goto bootloader
:ul
cls
echo Please see notes
files\adb reboot bootloader
files\fastboot oem unlock>nul
>nul
echo DONE
pause>nul
goto booloader
:bll
cls
set /p sure=ARE YOU SURE? (YES/NO):
if /i '%sure%'=='YES' goto blln
if /i '%sure%'=='NO' goto bootloader
echo Invalid choice
pause>nul
cls
goto bootloader
:blln
cls
echo ---------------------------------------------------------------
files\adb reboot fastboot
files\fastboot oem lock>nul
echo DONE!
pause>nul
goto bootloader
---------------------------------------------------
:sideload
cls
@echo Place update.zip in the "files" subdir
echo Rebooting into recovery
files\adb reboot recovery
echo Please enter sideload mode then continue
pause>nul
files\adb sideload update.zip
@echo SIDELOADED!
files\adb reboot
goto start
---------------------------------------------------
:fastcheck
cls
@echo If you see random numbers/letters on left and FASTBOOT on right, means you're good to go
echo.
echo.
files\fastboot devices
pause>nul
goto start
---------------------------------------------------
:fastflash
cls
echo PLEASE SEE NOTES
pause>nul
cls
echo Please put the .img file in \files subdir
pause>nul
files\adb reboot bootloader
echo WHAT TO FLASH
echo.
echo 1) Recovery
echo.
echo 2) Boot
echo.
echo 3) System
echo.
echo 4) DO NOT FLASH
set /p fl=ENTER A CHOICE:
if /i '%fl%'=='1' goto flrecovery
if /i '%fl%'=='2' goto flboot
if /i '%fl%'=='3' goto flsystem
if /i '%fl%'=='4' goto start
cls
goto fastflash
:flrecovery
cls
echo Put the recovery file in \files\recovery.img
pause>nul
echo Continuing
files\fastboot flash recovery recovery.img
goto fastflash
:flboot
cls
echo Put the Boot/KERNEL file in \files\boot.img
pause>nul
files\fastboot flash boot boot.img
goto fastflash
:flsystem
cls
echo Put the system file in \files\system.img
pause>nul
echo Flashing now..
files\fastboot flash system system.img
goto fastflash
---------------------------------------------------
:fastboot
cls
echo PLEASE SEE NOTES
pause>nul
cls
echo Boot from?
echo.
echo 1) Recovery
echo.
echo 2) Boot.img\KERNEL
echo.
echo 3) Do not (go back)
echo.
set /p bootfrom=Enter a choice:
if /i '%bootfrom%'=='1' goto bootrecovery
if /i '%bootfrom%'=='2' goto bootboot
if /i '%bootfrom%'=='3' goto start
echo Error occured, please retry...
pause>nul
cls
goto fastboot
:bootrecovery
cls
echo Booting from recovery... (Looking for recovery in \files\recovery.img)
files\adb reboot bootloader
files\fastboot boot recovery.img
goto fastboot
:bootboot
cls Will boot into custom kernel, looking in \files\boot.img for kernel
files\adb reboot bootloader
files\fastboot boot boot.img
goto fastboot
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
:page2
cls
echo. [P]revious PAGE: 2 [N]ext
echo.
echo.
echo.
echo.
echo Choices:
echo.
echo.
echo.
echo.
echo [E] Extras
echo.
echo [11] Install bulk APKs
echo.
echo [12] Remount system
echo.
echo [13] UNROOT
echo.
echo [14] Write your own command with syntax
echo.
echo [15] Insecure lockscreen
echo.
echo [16] Wipe to flash a new ROM (SEE NOTES)
echo.
echo [17] Apply update from /SDCARD/
echo.
echo [18] Flash boot animation (SEE NOTES)
echo.
echo [19] Wipe Data / Factory Reset (SEE NOTES)
echo.
echo [20] Restore ADB backup
echo.
echo.
echo.
set /p choice=Enter your choice:
cls
if /i '%choice%' == 'P' goto start
if /i '%choice%' == 'N' goto page3
if /i '%choice%' == 'E' goto extras
if /i '%choice%' == '11' goto bulkapk
if /i '%choice%' == '12' goto remount
if /i '%choice%' == '13' goto unroot
if /i '%choice%' == '14' goto owncmd
if /i '%choice%' == '15' goto lockscreen
if /i '%choice%' == '16' goto wipe2flash
if /i '%choice%' == '17' goto applysdupdate
if /i '%choice%' == '18' goto bootanim
if /i '%choice%' == '19' goto wdfr
if /i '%choice%' == '20' goto rest
cls
echo Error occured
pause>nul
cls
goto page2
---------------------------------------------------
:bulkapk
cls
echo Installing APKs
mkdir apks
echo Put the apks in \apks directory
pause>nul
move apks\*.apk .\
FOR %%n in (*.apk) DO files\adb install %%n
echo.
move *.apk apks
echo Done
cd..
cd..
goto start
---------------------------------------------------
:remount
cls
echo Mount system:
echo.
echo 1) Read-Write
echo.
echo 2) Read-Only
echo.
echo 3) Go back
set /p mnt=Enter mount type in numbers:
if /i '%mnt%'=='1' goto rw
if /i '%mnt%'=='2' goto ro
if /i '%mnt%'=='3' goto start
cls
goto remount
:ro
echo Mounting system in read-only mode (ACCPET ANY SUPERUSER PROMPTS)
pause>nul
files\adb shell "su -c 'mount -o remount,ro /system'"
echo DONE
pause>nul
goto start
:rw
echo Mounting system in read-write mode (ACCPET ANY SUPERUSER PROMPTS)
pause>nul
files\adb shell "su -c 'mount -o remount,rw /system'"
echo DONE
pause>nul
goto start
---------------------------------------------------
:unroot
cls
color f4
echo BY PRESSING ENTER YOU KNOW HOW CAN THIS END.
echo ...
echo.
echo.
pause>nul
echo Proceeding now...
timeout /t 01>nul /NoBreak
color 0E
echo.
echo UNROOTING now!
files\adb shell "su -c 'rm /system/app/Superuser.apk'">nul
files\adb shell "su -c 'rm /system/priv-app/Superuser.apk'">nul
files\adb shell "su -c 'rm /system/xbin/busybox'">nul
files\adb shell "su -c 'rm /system/bin/busybox'">nul
files\adb shell "su -c 'rm /system/xbix/su'">nul
files\adb shell "su -c 'rm /system/bin/su'">nul
echo.
echo Rebooting now...
files\adb reboot
echo.
echo Waiting for device to show up...
files\adb wait-for-device
echo.
echo Done!
pause>nul
color 07
goto start
---------------------------------------------------
:owncmd
cls
echo Please enter your own ADB/Fastboot command!
echo.
echo [1] FASTBOOT command
echo.
echo [2] ADB command
echo.
echo [3] Go back
set /p owncommand=Enter your choice:
if /i '%owncommand%' == '1' goto fbcmd
if /i '%owncommand%' == '2' goto adbcmd
if /i '%owncommand%' == '3' goto start
echo Error occured, please retry
goto owncmd
:fbcmd
set /p commandhere=Enter command:
files\fastboot %commandhere%
pause>nul
goto owncmd
:adbcmd
set /p commandhere=Enter command:
files\adb %commandhere%
pause>nul
goto owncmd
---------------------------------------------------
:lockscreen
cls
echo Deleting lockscreens now!
echo ...
timeout /t 02 >nul /NoBreak
files\adb shell "su -c 'rm /data/system/*.key'">nul
timeout /t 02 >nul /NoBreak
echo Done!
echo.
echo Press any key to reboot
pause>nul
cls
echo Rebooting now...
files\adb reboot
echo.
echo Reboot done!
echo.
echo Waiting for device to show up again....
echo.
files\adb wait-for-device
cls
echo Done!
pause>nul
goto start
---------------------------------------------------
:wipe2flash
cls
echo Status:
echo Rebooting into fastboot mode to wipe
files\adb reboot bootloader
timeout /t 01 >nul /NoBreak
cls
echo Status:
echo DONE.
timeout /t 01 >nul /NoBreak
cls
echo Status:
echo Wiping cache userdata and internal SD
files\fastboot -w
timeout /t 01 >nul /NoBreak
cls
echo Status:
echo DONE
timeout /t 01 >nul /NoBreak
cls
echo Status:
echo Wiping system
files\fastboot erase system
timeout /t 04 >nul /NoBreak
cls
echo Status:
echo DONE
timeout /t 01 >nul /NoBreak
cls
echo ALL DONE! Please boot into recovery and flash the packages from SD
---------------------------------------------------
:applysdupdate
cls
set /p toflash=Enter zip's location in /SDCARD/:
echo.
echo Applying update from SDCARD
echo ...
timeout /t 01 >nul /NoBreak
echo.
echo Rewriting commandline
echo.
files\adb shell su -c "busybox chmod 0777 '/cache/recovery/command'"
files\adb shell su -c "echo 'boot-recovery' > /cache/recovery/command"
files\adb shell su -c "echo '--update_package=/sdcard/%toflash%' > /cache/recovery/command"
echo Rebooting recovery to apply update!
files\adb reboot recovery
pause>nul
goto start
---------------------------------------------------
:bootanim
cls
echo Status:
echo Starting flash
timeout /t 02>nul /NoBreak
cls
echo Status:
echo Backing up old boot animation
files\adb pull /system/media/bootanimation.zip bootanimation-backup.zip>nul
timeout /t 01>nul /NoBreak
cls
echo Status:
echo Done
timeout /t 01>nul /NoBreak
cls
echo Status:
echo Flashing new boot animation...
files\adb shell "su -c 'busybox rm /sdcard/ba.zip'"
files\adb push bootanimation.zip /sdcard/ba.zip
files\adb shell "su -c 'busybox rm /system/media/bootanimation.zip'"
files\adb shell "su -c 'busybox cp /sdcard/ba.zip /system/media/bootanimation.zip'"
files\adb shell "su -c 'busybox chmod 0644 /system/media/bootanimation.zip'"
files\adb shell "su -c 'busybox rm /sdcard/ba.zip'"
timeout /t 02>nul /NoBreak
cls
echo Status:
echo Done
timeout /t 01>nul /NoBreak
goto start
---------------------------------------------------
:wdfr
cls
color 4f
echo This will factory reset your phone, it will delete all your personal data
echo.
echo Press any key to wipe DATA, CACHE and Internal SD partition
pause>nul
cls
echo 1) PROCEED
echo.
echo 2) GO BACK
set /p wdfr=Enter a choice:
if /i '%wdfr%'=='1' goto frnw
if /i '%wdfr%'=='2' goto start
cls
goto wdfr
:frnw
cls
files\adb reboot bootloader
cls
files\fastboot -w >nul
cls
echo Factory reset done!
echo.
pause>nul
goto start
---------------------------------------------------
:rest
cls
echo Restoring ADB backup.
move backups\backup.ab .
files\adb restore backup.ab
echo.
echo Done!
pause>nul
cls
goto start
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
:page3
cls
echo. [P]revious PAGE: 3 [N]ext
echo.
echo.
echo.
echo.
echo Choices:
echo.
echo.
echo.
echo.
echo [E] Extras
echo.
echo [21] Get bug report file
echo.
echo [22] Device controller [Volume/Power button simulator]
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
set /p choice=Enter your choice:
if /i '%choice%' == 'P' goto page2
if /i '%choice%' == 'E' goto extras
if /i '%choice%' == '21' goto bugreport
if /i '%choice%' == '22' goto devicesimu
cls
echo Error occured
pause>nul
goto page3
---------------------------------------------------
:bugreport
files\adb bugreport > bugs.log
cls
echo BUG REPORT SAVED
echo.
pause>nul
goto start
---------------------------------------------------
:devicesimu
cls
echo.
echo.
echo [1] Wake / Sleep device
echo.
echo [2] Increase volume
echo.
echo [3] Decrease volume
echo.
echo [4] Go back
echo.
echo.