Changes between Initial Version and Version 1 of g2_root_new


Ignore:
Timestamp:
03/30/11 20:59:06 (13 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • g2_root_new

    v1 v1  
     1= G2 rooting (and DZ, HD after downgrade =
     2
     3== Necessary files ==
     4psneuter [http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/psneuter/psneuter.zip] (md5sum 89c2dec8d72d87b4c669f44dd31c8d17)
     5
     6gfree v0.5 [http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/gfree/gfree_05.zip] (md5sum ee63bff8a02232e733b5c9a57580ad9a)
     7
     8rooting files [http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/gfree/gfree_temp-root.zip] (md5sum d36df32bb08606f8368a73c65f148cbc)
     9=== engineering hboot ===
     10Download the '''appropriate HBOOT for your phone''':
     11
     12T-Mobile G2: [http://android.d3xt3r01.tk/cyanogen/vision/hboot/vision.hboot-0.76.2000.zip] (md5sum 7669AE12DC2FAA10AE555A164980EFD0)
     13
     14HTC Desire Z: [http://android.d3xt3r01.tk/cyanogen/vision/hboot/vision.hboot-0.84.2000.zip] (md5sum 2CE1BDD5E4C1119CCFCECB938710D742)
     15
     16HTC Desire HD: [http://android.d3xt3r01.tk/cyanogen/common/hboot/ace_glacier.hboot-0.85.2007.zip] (md5sum df4fd77f44993eb05a4732210d2eddc6)
     17
     18Note that the md5sums are for the actual hboot img contained within the zip file, not the for the zip file itself. Note also that the dz, g2, and dhd each use their own version of the engineering boot, as the phones are partitioned differently. (If you have previously installed the wrong HBOOT for your phone, you may need to reflash everything after partition 18)
     19
     20== Copy the file to the phone ==
     21Before you can adb as described below you need to enable debugging in the settings on the phone. In Settings go to "Applications -> Development" and check the "USB debugging" option.
     22
     23In the commands to run below, '''$ or # represent the prompt and should NOT be entered as part of the commands''' (in windows this will be something like C:\> instead).
     24
     25Unpack all the zip files to a directory on your PC.
     26Open a terminal or command window and change the current directory to where the files are on your computer and execute these commands:
     27{{{
     28$ adb push psneuter /data/local/tmp/
     29$ adb push gfree /data/local/tmp/
     30$ adb push busybox /data/local/tmp/
     31$ adb push hboot-eng.img /data/local/tmp/
     32$ adb push root /data/local/tmp/
     33$ adb push su /sdcard/
     34$ adb push Superuser.apk /sdcard/
     35$ adb shell chmod 755 /data/local/tmp/*
     36}}}
     37
     38== Temporary root ==
     39In the terminal (or command window) execute these commands:
     40{{{
     41$ adb shell /data/local/tmp/psneuter
     42$ adb shell
     43}}}
     44after the last command you should have a root shell in adb (this is indicated by a # prompt).
     45Leave this terminal (or command window) that contains the root shell open.
     46
     47== S-OFF, Super-CID, SIM-unlock, engineering hboot and root ==
     48From now on we recommend to install the engineering hboot as part of the gfree procedure.
     49
     50If you do not want to install the engineering hboot skip to the next section!
     51
     52In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
     53{{{
     54# cd /data/local/tmp
     55# ./gfree -f -b hboot-eng.img
     56# ./root
     57# sync
     58}}}
     59You may see an error message along the lines of "mkdir: /system/xbin already exists", but if so you can ignore that, the rest of the script should still run ok.
     60
     61Wait a few seconds for the changes to "take".
     62
     63=== Check the md5sums of the installed hboot ===
     64As it is very important that the hboot was installed correctly we recommend to check the md5sums of the partition.
     65In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
     66{{{
     67# cd /data/local/tmp
     68# ./busybox md5sum hboot-eng.img
     69# ./busybox md5sum /dev/block/mmcblk0p18
     70}}}
     71If the md5sums don't match then first of all - '''DON'T REBOOT''' and second run for help at the #G2ROOT IRC channel on freenode.
     72If the md5sums match -> reboot your phone.
     73
     74== S-OFF, Super-CID, SIM-unlock and root ==
     75If you do not want to install the engineering hboot follow this steps!
     76
     77If you ran the commands in the previous section the skipt this section
     78
     79In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
     80{{{
     81# cd /data/local/tmp
     82# ./gfree -f
     83# ./root
     84# sync
     85}}}
     86
     87You may see an error message along the lines of "mkdir: /system/xbin already exists", but if so you can ignore that, the rest of the script should still run ok.
     88
     89Wait a few seconds for the changes to "take".
     90
     91Reboot your phone.
     92
     93== Next steps ==
     94gfree_verify - TO BE DONE
     95
     96clockworkmod - TO BE DONE
     97
     98== Backup and cleanup ==
     99During the process gfree created backups of the partition that it changed to your sdcard in /sdcard/
     100
     101The files are called /sdcard/part7backup-<time>.bin and part18backup-<time>.bin (if you installed hboot). It is '''highly recommended''' that you '''copy these files to a save location on your PC and keep them!'''
     102
     103You can delete the files in /data/local/tmp they are not needed anymore.