Advertisement
Guest User

Untitled

a guest
Mar 26th, 2011
4,921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. @echo off
  2. echo This process was developed by TeamAndIRC and this script was
  3. echo created by Captainkrtek of TeamAndIRC
  4. echo.
  5. echo TeamAndIRC and Captainkrtek are NOT responsible for any damages
  6. echo or bricks caused by this process
  7. echo.
  8. echo Prerequisites: drivers installed, SDK setup, exploits.zip extracted
  9. echo You can download all files needed at http://rom.galaxysense.com/thunderbolt
  10. echo Download the SDK from http://dl.google.com/android/android-sdk_r10-windows.zip
  11. echo.
  12. set /p start=Do you wish to start? y or n
  13. if %start%==n goto :QUIT
  14. :RESTART
  15. set /p dir=please enter the path where android-sdk-windows\platform-tools is:
  16. if exist %dir% goto :PASS
  17. echo please make sure you entered the right path, for example
  18. echo C:\android-sdk-windows\platform-tools
  19. pause
  20. goto :RESTART
  21. :PASS
  22. echo.
  23. echo SDK Directory found
  24. cd %dir%
  25. echo Checking build.prop ro.product.version
  26. adb shell getprop ro.product.version
  27. echo If the above number ends in 605.6 or 605.9 then you can root,
  28. echo IF NOT THEN YOU CANNOT ROOT USING THIS METHOD!!!
  29. set /p yn1=Do you wish to begin? (this process will wipe your phone), y or n?
  30. if %yn1%==y goto :START
  31. :QUIT:
  32. pause
  33. exit
  34. :START
  35. echo.
  36. echo Pushing files via ADB...
  37. echo This process may take some time, if it takes longer than 30 seconds
  38. echo Make sure the drivers are install and USB debugging is on.
  39. adb wait-for-devices
  40. adb push psneuter /data/local
  41. adb push busybox /data/local
  42. adb push misc.img /data/local
  43. adb shell chmod 777 /data/local/psneuter
  44. adb shell chmod 777 /data/local/busybox
  45. echo.
  46. set /p yn2=This next part will flash misc.img. do you wish to continue? y or n?
  47. if %yn2%==n goto :QUIT
  48. adb shell /data/local/psneuter
  49. echo.
  50. echo The MD5 Sum below should equal c88dd947eb3b36eec90503a3525ae0de if not
  51. echo redownload misc.img
  52. adb kill-server
  53. adb shell /data/local/busybox md5sum /data/local/misc.img
  54. pause
  55. adb shell dd if=/data/local/misc.img of=/dev/block/mmcblk0p17
  56. adb shell exit
  57. echo.
  58. echo Misc.img flashed, now rename the Downgrade RUU (the one with the long name)
  59. echo to PG05IMG.zip and place it on the root of your SD card (If you don't see it
  60. echo change Charge Only to Mount SD Card)
  61. echo.
  62. echo Once it is there hit enter and we will go to the bootloader, choose the bootloader
  63. echo option by hitting the power button on your phone. Once it is done reboot and delete
  64. echo PG05IMG.zip from your SD card.
  65. pause
  66. adb reboot bootloader
  67. echo Your phone should now be rebooted into bootloader mode, follow the above instructions
  68. echo and hit enter when the phone is rebooted and at your home screen.ENABLE USB DEBUGGING!
  69. pause
  70. echo We will now gain root and unlock MMC, if this takes longer than 30 seconds then
  71. echo you probably forgot to enable USB debugging on your thunderbolt! Just enable it
  72. echo and the script will notice when it is enabled.
  73. adb wait-for-devices
  74. adb push psneuter /data/local
  75. adb push busybox /data/local
  76. adb push wpthis /data/local
  77. adb shell chmod 777 /data/local/psneuter
  78. adb shell chmod 777 /data/local/busybox
  79. adb shell chmod 777 /data/local/wpthis
  80. adb shell /data/local/psneuter
  81. adb kill-server
  82. adb shell /data/local/wpthis
  83. adb shell exit
  84. echo Pushing hboot ENG
  85. adb push hbooteng.nb0 /data/local
  86. echo make sure that the MD5 below matches 6991368ee2deaf182048a3ed9d3c0fcb , if not
  87. echo then redownload hbooteng.nb0 !!!
  88. adb shell /data/local/busybox md5sum /data/local/hbooteng.nb0
  89. echo If it does match then go ahead and hit enter, it will flash the new bootloader
  90. echo when you hit enter!!!
  91. pause
  92. adb shell dd if=/data/local/hbooteng.nb0 of=/dev/block/mmcblk0p18
  93. echo we will check to see if it wrote properly, make sure the MD5 equals 6991368ee2deaf182048a3ed9d3c0fcb
  94. echo if not, DO NOT REBOOT and go to chat.andirc.net #Thunderbolt for help, pressing
  95. echo enter will reboot your phone
  96. pause
  97. echo.
  98. echo Rebooting phone...
  99. adb reboot
  100. adb wait-for-devices
  101. echo Okay, we are almost done :) Now copy the file named PG05IMG.zip to the SD card, DO NOT COPY OVER the downgrade
  102. echo RUU that we renamed to PG05IMG.zip
  103. pause
  104. adb reboot bootloader
  105. echo.
  106. echo Your phone will now be in bootloader mode, hit bootloader using the power key and let it flash, if it asks you
  107. echo if you want to upgrade say yes, once done reboot your phone. DONT FORGET TO ENABLE USB DEBUGGING!
  108. pause
  109. echo This process may take some time
  110. adb wait-for-devices
  111. echo Starting final root process
  112. adb push psneuter /data/local
  113. adb push busybox /data/local
  114. adb push su /data/local
  115. adb shell chmod 777 /data/local/psneuter
  116. adb shell chmod 777 /data/local/busybox
  117. adb shell /data/local/psneuter
  118. adb kill-server
  119. adb shell mount -o remount,rw -t ext3 /dev/block/mmcblk0p25 /system
  120. adb shell /data/local/busybox cp /data/local/su /system/xbin/su
  121. adb shell chown 0:0 /system/xbin/su
  122. adb shell chmod 6755 /system/xbin/su
  123. echo.
  124. echo We are now rooted! Go to the Android Market in install Superuser by ChainsDD
  125. echo Once installed REBOOT your phone, then go to the market and install ROM Manager;
  126. echo With ROM Manager installed flash ClockworkMod Recovery from with the app.
  127. echo.
  128. echo The End! Enjoy your rooted phone. TeamAndIRC does not accept donations, if you wish to donate send money to
  129. echo your favorite charity.
  130. pause
  131. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement