| 1 | = Back to Stock = |
| 2 | |
| 3 | == Prerequisites: == |
| 4 | You need to have radio S-OFF to follow this steps |
| 5 | Please make sure that gfree_verify returns secu_flag = 0 before following this steps. |
| 6 | |
| 7 | == Install the stock image == |
| 8 | In case of the original T-Mobile G2 the stock rom is called PC10IMG_Vision_TMOUS_1.19.531.1_Radio_12.21.60.09b_26.02.01.15_M2_release_149459_signed.zip |
| 9 | {{{ |
| 10 | adb push /PC10IMG_Vision_TMOUS_1.19.531.1_Radio_12.21.60.09b_26.02.01.15_M2_release_149459_signed.zip /sdcard/PC10IMG.zip |
| 11 | }}} |
| 12 | Disconnect the phone from USB and shutdown the phone. |
| 13 | |
| 14 | Boot into hboot by holding <Vol-Down> while powering on. |
| 15 | |
| 16 | hboot should load the PC10IMG.zip automatically and the ask you if you want to update. Press <Vol Up> to start the update. |
| 17 | |
| 18 | After updating the radio hboot will start again (screen will get dark for some seconds) |
| 19 | |
| 20 | If you had the fake S-OFF engineering hboot installed it will be replaced by this process |
| 21 | |
| 22 | == radio S-ON and original CID == |
| 23 | There are 2 ways to get radio S-ON and the original CID. |
| 24 | |
| 25 | You can either restore the backup of your partition 7 or you can use gfree to set secu_flag = 1 and CID = T-MOB010 (or your corresponding original CID). |
| 26 | |
| 27 | Restoring the backup will also bring back the SIM-lock data, while using gfree will keep the phone SIM-unlocked. |
| 28 | |
| 29 | In both cases you need to first use rage to gain temporary root. |
| 30 | === temporary root === |
| 31 | Before 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. |
| 32 | |
| 33 | You will need the Android Terminal Emulator, get it from the market! |
| 34 | |
| 35 | In the commands to run below, $ or # represent the prompt and should NOT be entered as part of the commands. |
| 36 | |
| 37 | Get the gfree_temp-root.zip that is attached to this page and unzip the gfree_temp-root.zip files to a folder. From a cmd window or terminal, navigate to that folder and execute these commands: |
| 38 | {{{ |
| 39 | $ adb push su /sdcard/su |
| 40 | $ adb push Superuser.apk /sdcard/Superuser.apk |
| 41 | $ adb push rage /data/local/tmp/rage |
| 42 | $ adb push busybox /data/local/tmp/busybox |
| 43 | $ adb push root /data/local/tmp/root |
| 44 | $ adb shell chmod 0755 /data/local/tmp/* |
| 45 | }}} |
| 46 | |
| 47 | ON YOUR PHONE: |
| 48 | 1. Launch Terminal Emulator |
| 49 | |
| 50 | 2. $ /data/local/tmp/rage |
| 51 | |
| 52 | 3. Wait for the message: "Forked #### childs." |
| 53 | |
| 54 | 4. Menu > Reset Term - Terminal Emulator will exit. |
| 55 | |
| 56 | 5. Launch Terminal Emulator, it Force Closes. Launch a second time, and you'll have a root shell |
| 57 | |
| 58 | === using gfree to get radio S-ON and the original CID === |
| 59 | |
| 60 | ON YOUR PC: |
| 61 | |
| 62 | Get gfree_03.zip that is attached to this page [http://www.thinkthinkdo.com/trac/project1/wiki/gfree]. |
| 63 | |
| 64 | Unzip gfree_03.zip to a place on your computer. Navigate to where the files are on your computer, and type: |
| 65 | {{{ |
| 66 | $ adb push gfree /data/local/tmp/ |
| 67 | }}} |
| 68 | Gfree should now be in your phone at /data/local/tmp |
| 69 | |
| 70 | ON YOUR PHONE: |
| 71 | |
| 72 | You should still have terminal emulator up, at a root prompt from earlier. |
| 73 | |
| 74 | Now run: |
| 75 | {{{ |
| 76 | # cd /data/local/tmp |
| 77 | # ./gfree -s on -c T-MOB010 |
| 78 | # sync |
| 79 | }}} |
| 80 | Disconnect your phone from USB and power it down. |
| 81 | |
| 82 | Boot into hboot by holding <Vol-Down> while powering on. |
| 83 | |
| 84 | === restoring the backup of partition 7 === |
| 85 | |
| 86 | |