forked from tommytomatoe/Android-Utility
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathandutil
executable file
·456 lines (442 loc) · 7.15 KB
/
andutil
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
#! /bin/bash
# Android Utility
# Author: Tommy Nguyen [tommytomatoe]
# Version: 1.0.2
# Date: August 22, 2011
# Contact: [email protected]
#introduction
intro ()
{
clear
echo "Welcome back" $USER,
echo
}
##functions
#enter
enter()
{ echo
echo "Please press [enter] to continue";
read -s -n 1 key
if [[ $key = "" ]]; then
echo
clear
fi
}
#credits
credits ()
{ clear
echo " ### Thanks and Credits ###"
echo
sleep .5
echo "Brut.all - apktool.jar and sound advice"
sleep .5
echo "JesusFreke - baksmali.jar and smali.jar"
sleep .5
echo "Stericson/JF - testsign.jar"
sleep .5
echo "Pendo - sound advice/answering questions/awesome sauce"
sleep .5
echo "Google - AOSP"
sleep .5
echo "aamikam - sound advice"
sleep .5
echo "themikmik.com - Awesome sauce"
sleep .1
echo "xda developers - Roots"
sleep .5
echo "JsChiSurf - sound advice"
sleep .5
echo "dsixda - sound advice"
sleep .5
echo "Amon_RA - sound advice"
sleep .5
echo "Igor Pavlov - 7zip"
sleep .5
echo "Ardfry Imaging, LLC. - pngout"
sleep .5
echo "Glenn Randers-Pehrson - pngcrush"
sleep .5
echo "Andrea Mazzoleni - advpng"
sleep .5
echo "Cosmin Truta - optipng"
sleep .5
echo "[email protected] - dex2jar"
sleep .5
echo "Emmanuel Dupuy - JD-GUI"
sleep .5
echo "Xclusive Rydah, Chingy, misfit - testing and ideas"
sleep .5
echo
echo -n T
sleep .1
echo -n o
sleep .1
echo -n m
sleep .1
echo -n m
sleep .1
echo -n y
sleep .1
echo -n " "
sleep .1
echo -n N
sleep .1
echo -n g
sleep .1
echo -n u
sleep .1
echo -n y
sleep .1
echo -n e
sleep .1
echo -n n
sleep .1
echo -n " "
sleep .1
echo -n -
sleep .1
echo -n " "
sleep .1
for l in A n d r o i d ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .2
for l in U t i l i t y ; do
echo -n $l
sleep .1
done
echo
echo
for l in T h a n k ; do
echo -n $l
sleep .1
done
sleep .1
sleep .1
echo -n " "
for l in y o u ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in f o r ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in u s i n g ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in A n d r o i d ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .2
for l in U t i l i t y ; do
echo -n $l
sleep .1
done
echo "."
echo
sleep .5
echo -n "The"
sleep .1
echo -n " "
sleep .1
echo -n goal
sleep .1
echo -n " "
sleep .1
echo -n of
sleep .1
echo -n " "
sleep .1
echo -n this
sleep .1
echo -n " "
sleep .1
echo -n project
sleep .1
echo -n " "
sleep .1
echo -n is
sleep .1
echo -n " "
sleep .1
echo -n to
sleep .1
echo -n " "
sleep .1
echo -n assist
sleep .1
echo -n " "
sleep .1
echo -n you,
sleep .1
echo -n " "
sleep .1
echo -n $USER,
sleep .1
echo -n " "
sleep .1
echo -n in
sleep .1
echo -n " "
sleep .1
echo -n android
sleep .1
echo -n " "
sleep .1
echo development.
echo
sleep .5
echo -n I
sleep .1
sleep .1
echo -n " "
for l in h o p e ; do
echo -n $l
sleep .1
done
echo -n
sleep .1
echo -n " "
sleep .1
for l in t h i s ; do
echo -n $l
sleep .1
done
echo -n
sleep .1
echo -n " "
sleep .1
for l in g o a l ; do
echo -n $l
sleep .1
done
echo -n
sleep .1
echo -n " "
sleep .1
for l in w a s ; do
echo -n $l
sleep .1
done
echo -n
sleep .1
echo -n " "
sleep .1
for l in m e t ; do
echo -n $l
sleep .1
done
echo "."
echo
sleep .5
echo "ALERT: You will only see this message once."
enter
}
#quit
quit()
{ if ! [[ -a $z/resources/.2 ]] ; then
touch $z/resources/.2
credits
else
echo
echo "Thank you for choosing Android Utility"
echo "brought to you by tommytomatoe :-)"
echo
echo "Please Don't Drink and Drive"
echo
fi
exit
}
#future features
ff ()
{ clear
echo "Feature coming in a future release. Stay tuned."
enter
}
#Welcome
welcome ()
{ clear
echo
for l in W e l c o m e ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in t o ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .2
for l in A n d r o i d ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .2
for l in U t i l i t y ; do
echo -n $l
sleep .1
done
sleep .1
echo ","
sleep .2
echo
sleep .1
for l in b r o u g h t ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .2
for l in t o ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in y o u ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in b y ; do
echo -n $l
sleep .1
done
sleep .1
echo ":"
sleep .1
echo
for l in t o m m y t o m a t o e ; do
echo -n $l
sleep .1
done
echo
echo
for l in e n j o y ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in t h e ; do
echo -n $l
sleep .1
done
echo -n " "
sleep .1
for l in p o s s i b i l i t i e s ; do
echo -n $l
sleep .1
done
echo "."
echo
sleep .25
}
#load
load_dot ()
{ for DOT in . . . . . . . ; do
echo -n "$DOT"
sleep .15
done
echo "."
}
#System Check
check_s ()
{
w=$HOME/android-utility/
if ! [[ -s $w ]] ; then
echo "Please place android-utility in the directory $HOME before preceding. Thank you very much"
enter
check_s
else
echo "Preparing to run the Installation Guide."
echo -n "Please wait."
load_dot
echo
echo "ALERT: You will only see this screen once."
sleep .25
enter
$w/installau -f
fi
}
odex_script ()
{ clear
echo "Please be aware that this option has only"
echo "been tested on the HTC EVO 3D Shooter"
echo
echo "Might be compatible with other Sense 3.0 Gingerbread Roms and Devices"
echo "Please use with caution..."
enter
3vodex
}
android ()
{
echo " Android Utility by tommytomatoe"
echo " ---------------------- "
echo " Version 1.0.2"
echo "|-------------------------------||-------------------------------|"
echo "|-------------------------------||-------------------------------|"
echo "| BASIC TOOLS || ADVANCE TOOLS |"
echo "|-------------------------------||-------------------------------|"
echo "| 1. adb tools || 6. apk Re-Engineering |"
echo "| 2. keystore manager || 7. apk Optimization |"
echo "| 3. sign apk and update.zip || 8. dex code utility |"
echo "| 4. zipalign || 9. draw9patch utilities |"
echo "| 5. change-log creator ||10. AU ROM Utility |"
echo "| ||11. 3vodex |"
echo "|----------------------------------------------------------------|"
echo "| SETUP TOOLS |"
echo "|----------------------------------------------------------------|"
echo "| x. Run Installation Guide || e. Extras |"
echo "| i. Install Android SDK || q. Quit |"
echo "|-------------------------------||-------------------------------|"
echo "|-------------------------------||-------------------------------|"
printf %s " Select an Option: "
read num
case $num in
1) clear; ttadb;;
2) keys_sig;;
3) zasign;;
4) zipped_up;;
5) change_log;;
6) apk_tool;;
7) apk_opt;;
8) smali_tool;;
9) 9patch;;
10) romutil;;
11) odex_script;;
e|E) extras;;
i|I) ff;;
x) installau;;
q) quit;;
*) echo; echo "$num is not a valid option"; enter;
esac
}
z=$HOME/android-utility/
if ! [[ -a $z/resources/.1 ]] ; then
touch $z/resources/.1
welcome
check_s
else
intro
fi
while :
do
android
done