Changes between Initial Version and Version 1 of back_to_stock


Ignore:
Timestamp:
12/25/10 14:13:25 (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • back_to_stock

    v1 v1  
     1= Back to Stock =
     2
     3== Prerequisites: ==
     4You need to have radio S-OFF to follow this steps
     5Please make sure that gfree_verify returns secu_flag = 0 before following this steps.
     6
     7== Install the stock image ==
     8In 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{{{
     10adb 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}}}
     12Disconnect the phone from USB and shutdown the phone.
     13
     14Boot into hboot by holding <Vol-Down> while powering on.
     15
     16hboot should load the PC10IMG.zip automatically and the ask you if you want to update. Press <Vol Up> to start the update.
     17
     18After updating the radio hboot will start again (screen will get dark for some seconds)
     19
     20If you had the fake S-OFF engineering hboot installed it will be replaced by this process
     21
     22== radio S-ON and original CID ==
     23There are 2 ways to get radio S-ON and the original CID.
     24
     25You 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
     27Restoring the backup will also bring back the SIM-lock data, while using gfree will keep the phone SIM-unlocked.
     28
     29In both cases you need to first use rage to gain temporary root.
     30=== temporary root ===
     31Before 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
     33You will need the Android Terminal Emulator, get it from the market!
     34
     35In the commands to run below, $ or # represent the prompt and should NOT be entered as part of the commands.
     36
     37Get 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
     47ON 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
     60ON YOUR PC:
     61
     62Get gfree_03.zip that is attached to this page [http://www.thinkthinkdo.com/trac/project1/wiki/gfree].
     63
     64Unzip 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}}}
     68Gfree should now be in your phone at /data/local/tmp
     69
     70ON YOUR PHONE:
     71
     72You should still have terminal emulator up, at a root prompt from earlier.
     73
     74Now run:
     75{{{
     76# cd /data/local/tmp
     77# ./gfree -s on -c T-MOB010
     78# sync
     79}}}
     80Disconnect your phone from USB and power it down.
     81
     82Boot into hboot by holding <Vol-Down> while powering on.
     83
     84=== restoring the backup of partition 7 ===
     85
     86