Changes between Version 5 and Version 6 of back_to_stock
- Timestamp:
- 02/03/11 00:40:39 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
back_to_stock
v5 v6 31 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 32 33 You will need the Android Terminal Emulator, get it from the market! 33 In 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). 34 34 35 In the commands to run below, $ or # represent the prompt and should NOT be entered as part of the commands. 35 Get the psneuter.zip from here [http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/psneuter/psneuter.zip] and unzip the psneuter.zip files to a folder. From a cmd window or terminal, navigate to that folder and execute these commands: 36 {{{ 37 $ adb push psneuter /data/local/tmp/psneuter 38 $ adb shell chmod 777 /data/local/tmp/psneuter 39 $ adb shell /data/local/tmp/psneuter 40 $ adb shell 41 }}} 42 after the last command you should have a root shell in adb (this is indicated by a # prompt). 43 Leave this terminal (or command window) that contains the root shell open. 36 44 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 }}} 45 === restoring the backup of partition 7 === 46 Setting S-ON and CID and restoring the simlock can be done using gfree to restore the backup of you partition 7. 46 47 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 === 48 You can use gfree to remove the write protection from the emmc and the kernel and restore the backup. To do so you can use the "-r" option of gfree. 59 49 60 50 ON YOUR PC: … … 62 52 Get gfree_04.zip that is attached to this page [http://www.thinkthinkdo.com/trac/project1/wiki/gfree]. 63 53 64 Unzip gfree_04.zip to a place on your computer. Navigate to where the files are on your computer, and type:54 Unzip gfree_04.zip to a place on your computer. Open a terminal or command window, navigate to where the files are on your computer, and type: 65 55 {{{ 66 $ adb push gfree /data/local/tmp/ 56 $ adb push gfree /data/local/tmp/gfree 57 $ adb shell chmod 777 /data/local/tmp/gfree 67 58 }}} 68 Gfree should now be in your phone at /data/local/tmp59 gfree should now be in your phone at /data/local/tmp 69 60 70 ON YOUR PHONE:61 IN THE ROOT SHELL (in the first terminal/command) : 71 62 72 You should still have terminal emulator up, at a root prompt from earlier.63 We assume that the backup of your partition 7 in in /sdcard and is called part7backup-<time>.bin (replace <time> with the time string of your backup). 73 64 74 65 Now run: 75 66 {{{ 76 # cd /data/local/tmp 77 # ./gfree -s on -c T-MOB010 67 # /data/local/tmp/gfree -r /sdcard/part7backup-<time>.bin 78 68 # sync 79 69 }}} 80 Remove the PC10IMG.zip from the sdcard:70 Remove the PC10IMG.zip and the tools from the phome: 81 71 {{{ 82 72 # rm /sdcard/PC10IMG.zip 73 # rm /data/local/tmp/psneuter 74 # rm /data/local/tmp/gfree 83 75 }}} 84 76 … … 89 81 The heading should now read: "VISION PVT SHIP S-ON" 90 82 91 === restoring the backup of partition 7 === 92 Alternatively to setting the S-ON and CID by using gfree you can also install the backup of you partition 7. 93 94 You can use gfree to remove the write protection from the emmc and the kernel and restore the backup. To do so you can use the "-r" option of gfree. 83 === using gfree to get radio S-ON and the original CID === 84 If you lost your partition 7 backup or you do not want to restore the simlock data you can use the -c and -s options of gfree to set the CID and the S-ON flag. 95 85 96 86 ON YOUR PC: … … 98 88 Get gfree_04.zip that is attached to this page [http://www.thinkthinkdo.com/trac/project1/wiki/gfree]. 99 89 100 Unzip gfree_04.zip to a place on your computer. Navigate to where the files are on your computer, and type:90 Unzip gfree_04.zip to a place on your computer. Open a terminal or command window, navigate to where the files are on your computer, and type: 101 91 {{{ 102 $ adb push gfree /data/local/tmp/ 92 $ adb push gfree /data/local/tmp/gfree 93 $ adb shell chmod 777 /data/local/tmp/gfree 103 94 }}} 104 Gfree should now be in your phone at /data/local/tmp95 gfree should now be in your phone at /data/local/tmp 105 96 106 ON YOUR PHONE: 107 108 You should still have terminal emulator up, at a root prompt from earlier. 109 We assume that the backup of your partition 7 in in /sdcard and is called part7backup-<time>.bin (replace <time> with the time string of your backup). 110 97 IN THE ROOT SHELL (in the first terminal/command) : 111 98 Now run: 112 99 {{{ 113 # cd /data/local/tmp 114 # gfree -r /sdcard/part7backup-<time>.bin 100 # /data/local/tmp/gfree -s on -c T-MOB010 115 101 # sync 116 102 }}} 117 Remove the PC10IMG.zip from the sdcard:103 Remove the PC10IMG.zip and the tools from the phome: 118 104 {{{ 119 105 # rm /sdcard/PC10IMG.zip 106 # rm /data/local/tmp/psneuter 107 # rm /data/local/tmp/gfree 120 108 }}} 121 109