/
start.bat
342 lines (316 loc) · 8.52 KB
/
start.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
@ECHO off
:MENU
ECHO Welcome To covxx's Android Toolkit
ECHO =======================================
ECHO Use this tool at your own risk
ECHO Please report any issues
ECHO =======================================
ECHO This is not in active development
ECHO Use at your own risk
ECHO Version 1.60 4/22/2016
ECHO =======================================
ECHO 1. ADB Commands
ECHO 2. Get HTC unlock code
ECHO 3. Set SE to permissive
ECHO 4. Sideload apps to firestick (not working)
<<<<<<< HEAD
ECHO 5. Galaxy S4 MDK root
ECHO 6. Sideload APK
ECHO 7. Change APP install location
ECHO 8. Nexus things
ECHO 9. HTC Flash Tool
=======
ECHO 5. Sideload APK
ECHO 6. Change APP install location
ECHO 7. OEM bootloader unlock
>>>>>>> 09625f8bd22b0c170dc8ecda3ebef94215871e5f
rem ECHO 20. Info
ECHO 30. EXIT
ECHO.
SET INPUT=
SET /P INPUT=SELECT NUMBER OF OPTION:
IF /I '%INPUT%'=='1' GOTO ADBC
IF /I '%INPUT%'=='2' GOTO UNLOCKHTC
IF /I '%INPUT%'=='3' GOTO SETOP
IF /I '%INPUT%'=='4' GOTO FIRESTICKSIDELOAD
IF /I '%INPUT%'=='6' GOTO APKSIDELOAD
IF /I '%INPUT%'=='7' GOTO APPINSTALLLOCO
<<<<<<< HEAD
IF /I '%INPUT%'=='8' GOTO nex
IF /I '%INPUT%'=='9' GOTO HTFT
IF /I '%INPUT%'=='20' GOTO info
IF /I '%INPUT%'=='30' GOTO EXIT
:HTFT
REM Just incase someone ever needs this again
CLS
print This is my old HTC Flash Tool
START htcflashtool.bat
PAUSE 15
exit
:nex
=======
IF /I '%INPUT%'=='8' GOTO oemunlock
IF /I '%INPUT%'=='20' GOTO info
IF /I '%INPUT%'=='30' GOTO EXIT
:oemunlock
>>>>>>> 09625f8bd22b0c170dc8ecda3ebef94215871e5f
cls
print quick write up for OEM unlock
print This will unlock the bootloader if your device's bootloader is not locked by carrier
print Put your device in fastboot mode and connect it to computer, we'll start once ready
fastboot wait-for-device
fastboot oem unlock
print use volumes key to hit yes
print waiting for stuff to finish (2 minutes)
pause 120
fastboot reboot
print Bootloader is now unlocked, search XDA for root
pause 120
:SETOP
REM Lets set se to permissive
REM yay
print "you need root for this (use towel root) and busybox installed"
print " make sure ADB debugging is on too"
print "k lets get it"
adb
adb shell
print "if there is any ever around here your device is recognized"
su
print "Check phone for super user pop up"
setenforce 0
print " k now go do your thing (you have 20 seconds)"
pause 20
GOTO MENU
:UNLOCKHTC
cls
@echo off
cd C:\Users\covxx_2\Desktop\adb_fastboot_drivers
print "now where the adb shit is"
print "make sure you're in fastboot mode"
pause 5
print "now getting unlock token"
fastboot oem get_identifier_token
ECHO I dont know if this works but copy and paste the thing above
REM I still don't know as of 1/15/2015
pause 10
GOTO MENU
:INFO
CLS
ECHO Info
ECHO -----------------------------------
ECHO I started this project
ECHO because I was tired of
ECHO having to use different toolkits
ECHO for each device, Thus this was born
ECHO This will be re-written in C one day
ECHO when I get bored like now.
ECHO -----------------------------------
ECHO I'll add more here someday
ECHO Version: Beta 4 REM (this is not outdated)
ECHO Press enter when ready to go back
PAUSE
GOTO MENU
:HELP
REM ECHO For help with
ECHO This isn't coded
ECHO Press enter when ready to go back
GOTO MENU
REM Will get around to it
:FIRESTICKSIDELOAD
CLS
ECHO ---------------------
EHCO The APK has to be in this folder
ECHO And named sideload.apk
ECHO (this is bash :( )
ECHO ------------------------
ECHO HIT a button when ready
pause
REM ADB connect IP ADDRESS ( need to figure out how to use variables here)
:GS4VZW
CLS
cd devices\GS4\rootmdk\
ECHO This will only work for Galaxy S4 on Verizon on VRUAMDK build
ECHO =============================================================
ECHO 1.Start root - after pre- release kernel is flashed-
ECHO 2.How to root
REM ECHO 3.
ECHO 4.Go back to main menu
ECHO.
SET INPUT=
SET /P INPUT=SELECT NUMBER OF OPTION:
IF /I '%INPUT%'=='1' GOTO S4ROOTVZW
IF /I '%INPUT%'=='2' GOTO ROOTS4VZW
REM IF /I '%INPUT%'=='3' GOTO
IF /I '%INPUT%'=='4' GOTO MENU
IF /I '%INPUT%'=='5' GOTO QUIT
:S4ROOTVZW
CLS REM I DIDN'T MAKE THIS credit to Dan Rosenberg
ECHO =====================================
ECHO = Thanks to Dan Rosenberg (@djrbliss) =
ECHO = This motochopper -made by @djrbliss =
ECHO = This can break your phone,if you do not my fault =
ECHO = Press enter to root your phone... =
ECHO ===================================
PAUSE
ECHO.
adb kill-server
ECHO Waiting for device...
adb wait-for-device
ECHO Device found.
ECHO Pushing exploit...
adb push pwn /data/local/tmp/
adb shell chmod 755 /data/local/tmp/pwn
ECHO Pushing root tools...
adb push su /data/local/tmp/
adb push busybox /data/local/tmp/
adb install Superuser.apk
ECHO Rooting phone...
ad shell /data/local/tmp/pwn
ECHO Cleaning up...
adb shell rm /data/local/tmp/pwn
adb shell rm /data/local/tmp/su
adb shell rm /data/local/tmp/busybox
ECHO Exploit complete. Press enter to reboot
PAUSE
adb reboot
adb kill-server
ECHO now flash the stock kernel
ECHO opening odin..
ECHO .
tools\odin\odin3.exe
GOTO MENU
:sideload
CLS
ECHO SIDELOAD
ECHO -------------------------------------------------------
ECHO Are you ready to side-load?
ECHO Remember to make sure the package name is 'update.zip'
ECHO and its in the root folder
ECHO When you're ready hit enter
ECHO.
PAUSE
adb side-load toolkit\update.zip
GOTO MENU
:4p
CLS
ECHO This will change your install location to
ECHO your phone's memory. This is for Android devices
ECHO on 4.0 and below.
ECHO --------------------------
ECHO Your device must have adb debugging enabled
ECHO press enter when ready
PAUSE
adb kill-server
ECHO Waiting for device...
adb wait-for-device
ECHO Device found.
ECHO Setting install to phone
adb shell pm setInstallLocation 0
ECHO Completed,
PAUSE
GOTO MENU
:4xp
CLS
ECHO This will change your install location to
ECHO your phone's memory. This is for Android devices
ECHO on 4.0 and below.
ECHO --------------------------
ECHO Your device must have adb debugging enabled
ECHO press enter when ready
PAUSE
adb kill-server
ECHO Waiting for device...
adb wait-for-device
ECHO Device found.
ECHO Setting install to phone
adb shell pm set-install-location 0
ECHO Completed,
PAUSE
GOTO MENU
:APPINSTALLLOCO
CLS
ECHO Change install location to SD
ECHO -------------------------------
ECHO If android 4.0 and below type 1
ECHO If android 4.x and above type 2
ECHO --------------------------------
ECHO.
SET INPUT=
SET /P INPUT=SELECT NUMBER OF OPTION:
IF /I '%INPUT%'=='1' GOTO 4p
IF /I '%INPUT%'=='2' GOTO 4xp
:ADBC
CLS
ECHO ADB Commands
ECHO --------------
ECHO 1.Side load
ECHO 2.Change install location to SD
ECHO 3.Change install location to Phone
ECHO --------------
ECHO more will be added never
SET INPUT=
SET /P INPUT=SELECT NUMBER OF OPTION:
IF /I '%INPUT%'=='1' GOTO sideload
IF /I '%INPUT%'=='2' GOTO installsd
IF /I '%INPUT%'=='3' GOTO installphone
:4
CLS
ECHO This will change your install location to
ECHO your SD card. This is for Android devices
ECHO on 4.0 and below.
ECHO --------------------------
ECHO Your device must have adb debugging enabled
ECHO press enter when ready
PAUSE
adb kill-server
ECHO Waiting for device...
adb wait-for-device
ECHO Device found.
ECHO Setting install to SD
adb shell pm setInstallLocation 2
ECHO Completed, you can now move all apps to your sd
PAUSE
GOTO MENU
:4x
CLS
ECHO This will change your install location to
ECHO your SD card. This is for Android devices
ECHO on 4.0 and below.
ECHO --------------------------
ECHO Your device must have adb debugging enabled
ECHO press enter when ready
PAUSE
adb kill-server
ECHO Waiting for device...
adb wait-for-device
ECHO Device found.
ECHO Setting install to SD
adb shell pm set-install-location 2
ECHO Completed, you can now move all apps to your sd
PAUSE
GOTO MENU
:installsd
CLS
ECHO Change install location to SD
ECHO -------------------------------
ECHO If android <4.0 type 1
ECHO If android 4.x> type 2
ECHO --------------------------------
ECHO
SET INPUT=
SET /P INPUT=SELECT NUMBER OF OPTION:
IF /I '%INPUT%'=='1' GOTO 4
IF /I '%INPUT%'=='2' GOTO 4.x
:rootvzws4
CLS
ECHO How to root your Verizon S4
ECHO --------------------------------------
ECHO Before proceeding with the tool you need to flash the pre-release kernel (devices\GS4\rootmdk\kernels)
ECHO Make sure your phone has ADB debugging on
ECHO If this still cannot find your device
ECHO Install clockwork mod's universal ADB drivers
ECHO after root make sure to open super SU and check for binary/app updates
ECHO Once you verified that super SU is working ,using Odin flash the kernel
ECHO When ready press enter
PAUSE
GOTO S4ROOTVZW