[GUIDE] Remove permanent root - G2 and Desire Z Android Development

** I AM NOT LIABLE IF YOU BRICK YOUR PHONE OR ANY DAMAGE CAUSED BY YOUR STUPIDITY**
This guide will follow the steps needed to remove permanent root and bring your device back to 100% stock
Here are the following files we will need to download please grab the files needed below and place them on the root of your sdcard
1-a) Stock PRE-OTA Rom rooted:
Stock PRE-OTA Rom
or
1-b) Download the attached HexEditor on the thread
2.) Stock Factory Bootloader / Recovery / ROM / Kernel:
Stock Factory Bootloader / Recovery / ROM / Kernel
(rename this to PC10IMG.ZIP)
3.) T-Mobile OTA Update - Build # 1.22.531.8:
T-Mobile OTA Update
(rename this to update.zip)
Procedure:
Step 1.) Flash Stock Rooted PRE-OTA Rom via ClockWorkMod
Open up RomManger via the Android Launcher and select "Install ROM from SD Card" and select the "stock_root.zip" on the root of the sdcard and select the option to "Wipe Data and Cache" and hit ok. Once rom is flashed it will reboot automatically and bring you back to the os.
**IMPORTANT**
If the flash has failed you must reboot back into the OS and use HexEditor which i have attached to the thread. DO NOT PROCEED UNTIL YOU HAVE DONE THIS!!
Open up an ADB Shell and run the following command:
dd if=/dev/block/mmcblk0p17 of=/sdcard/misc.img
this will then export the misc.img file we need to edit to the root of the sdcard.
Mount your sdcard and save the misc.img file to your PC and Open the file with HexEditor.
You should now see the version number on the right hand side of the application and it should read "1.22.531.8" YOU MUST CHANGE THIS TO "1.19.531.1" you can now save the file as miscnew.img and place it on the root of your sdcard and then unmount the sdcard from windows.
Now go back to your ADB Shell and run the following command
dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p17
you can now make sure you have copied the PC10IMG.zip file to the root of your SDCARD and power off your phone and proceed to step 2.
*All Credit goes to Apache14 for this method which is in this thread:
http://forum.xda-developers.com/showthread.php?t=831398
Step 2.) Restore factory BOOTLOADER, RECOVERY, KERNEL, ROM (THIS RE-ENABLES S-ON)
Place the factory firmware you downloaded in step 2 above on the root of your sdcard and rename it to PC10IMG.zip one you have done this power off the device and power back on by holding volume down and power. Once in the bootloader it will then scan your sdcard and find the file needed, be patient this can take quite a few minutes. After it finishes scanning you will then have to hit the Volume up key on the side of the phone to restore the software. This will take approximately 5-10 minutes. The phone will reboot in the middle of the update to restore S-ON once rebooted it will then scan sdcard again and resume flashing. Once completed you will have to hit Power to reboot and boot back into the factory restored android os.
Step 3.) -OPTIONAL- Apply OTA Update from T-Mobile
Boot back into android and mount your sdcard once again. You will now delete the PC10IMG.zip file we copied previously. Once you have deleted the file copy the file we downloaded in step 3 above to the root of the sdcard and rename it to “update.zip”. You can now power down your device and power back on holding volume down and power. Once in the bootloader wait 5-10 for it to finish scanning your sdcard and hit volume down and power to select RECOVERY. Once in recovery mode you must now hold volume up and power on your G2. You will now hit volume down and power to select "apply sdcard:update.zip" It will then scan your sdcard verify the update.zip file we placed on the root of the sdcard and proceed to install. You will then have to hit power once more to reboot when indicated on the device. This will now take approximately another 5 minutes and the phone will reboot 2 times automatically do not touch until you are booted automatically back into android.
You are now 100% Back to stock with S-ON, Factory ROM, and Factory Recovery.

Thank you for posting this.

PLS STICKY! and wiki
ten big letters

Finally, an undo method for permaroot.
Just one question: will this wipe my apps and content? I suspect it will; I just want to confirm it.

Yes. It will wipe. Make a back up of your data and restore it after. This can be done via titanium backup
[G2/HTC Vision]

I ran Visionary and everything seem to be working ok until I rebooted my G2. Now When I ran Visionary it says that the phone is already rooted, but when I use terminal emulator or adb to root is says suermission denied. When I try to Flash Stock Rooted PRE-OTA Rom via ClockWorkMod I get this error "An error occurred while attempting to run privileged commands". Also when I try to Restore factory BOOTLOADER, RECOVERY, KERNEL, ROM I do exactly as you said and I'm getting a no image found. I would appreciate any help you could provide.

If all you need is root go to rom manager and click on download rom and under extras download superuser e/f then install the zip this flash the superuser.apk you are missing
Sent from my PC36100 using XDA App

Did as instructed but still getting "error occurred while attempting to run privilege commands".
Superuser.apk is already installed
Sent from my T-Mobile G2 using XDA App

What rom are you currently on stock ota?
Sent from my T-Mobile G2 using XDA App

1.22.531.8 CL277427 release-keys Just recently installed the new OTA that T-mobile sent out a few days ago. Thanks for all your help.

Very useful, thank you.

When I try to restore the bootloader I get a Main Version is Older!
Update Fail!
Press Power to reboot

Crackaf3tt said:
When I try to restore the bootloader I get a Main Version is Older!
Update Fail!
Press Power to reboot
Click to expand...
Click to collapse
I'm getting the same thing... any idea what is going on?

Did you two flash the original rom linked in step 1?
Either way follow the steps here for the fix..
forum.xda-developers.com/showthread.php?t=831398

Yep... flashed the original linked ROM.
I'm following the other directions right now...

Ok that should deffintleyw ork it is failing due the fact it is still reading the stock OTA build number opposed to the original stock build. let me know if you need help.

Yep... worked great.
That forum topic might want to be step A prior to doing anything... the error caused me to have a panic attack...

Code:
Writing BOOT:...
E:Can't find BOOT:
E:Failure at line 344:
write_raw_image PACKAGE:boot.img BOOT:
Installation aborted.
??? What gives?

where are you getting that error? I recommened give you the link i just posted 2 posts above and then flashing PC10IMG.zip and you should be all set.

this was after i tried installing the stock_root.zip
eveything is wiped, so could i just flash the PC10IMG.zip and be done?
im just getting a replacement phone from t-mobile cause of the hinge

Related

A rooting attempt gone astray

So I was trying to root my evo so I could try the fresh rom (please note that this was my first ever root attempt and my phone had the OTA update). I followed the instructions from this guide:
Latest OTA rooted! - Page 2 - Android Central Forums
This is where my problem is:
11. Once back at the Home screen type:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
When I enter the "cat /sdcard/flash_image > /data/flash_image" code I get:
"cannot create /data/flash_image: permission denied"
After some googling I found other people typed "su" prior to typing in the "cat /sdcard/flash_image > /data/flash_image" command. That didn't work for me. I received "su: permission denied" after entering su.
Would going back and starting this tutorial all over cause serious damage? I'm wondering if maybe I messed up earlier.
I'm very worried I really screwed something up. Can anybody please offer up some advice for a newbie?
Weigh the stakes
Man, just try the "SimpleRoot 1.47 OTA update" app for Windows. You save time, money and a lot of feces on your tract by the worries that everything is ok.
Now, I want to remind the stakes. If you haven't looked at my post here at Q&A, I pretty much effed up my phone while being rooted. I don't know if it was too much exposure to heat caused by WiFi Tether, or of mysterious powers regarding the RSA 256 bit encryption update process screwed my phone up. So before trying to crack your phone, please, review the stakes and stay stock.
BTW, you haven't completed the root process, so a simple Factory Reset should do the trick to go back into Stock without any trace of root procedure. That is, if you want to play it safe.
Okay, first things first. Just so I'm clear.
1. Which guide(exactly) did you follow?
2. What software version do you have now?
Yeah i was having problems with my administrator password so I switched from simple root to this method. Maybe I was using the wrong version or something, could you post a link to simple root for ota?
churchwin88 said:
Okay, first things first. Just so I'm clear.
1. Which guide(exactly) did you follow?
2. What software version do you have now?
Click to expand...
Click to collapse
1. http: // forum.androidcentral. com/htc-evo-4g-roms-hacks/ 21043-latest-ota-rooted-2. htm
2. My software number is 1.47.651.1
Thanks for the help
StrummingLevi said:
Yeah i was having problems with my administrator password so I switched from simple root to this method. Maybe I was using the wrong version or something, could you post a link to simple root for ota?
1. http: // forum.androidcentral. com/htc-evo-4g-roms-hacks/ 21043-latest-ota-rooted-2. htm
2. My software number is 1.47.651.1
Thanks for the help
Click to expand...
Click to collapse
For the 1.47 you need to use this version of simple root(if you haven't already) - http://forum.xda-developers.com/showthread.php?t=720565
I'm not sure why it would have problems with the password. Only thing I can think of would be something along the lines of not having administrator privileges.
EDIT: Make sure to have all the requirements and if you successfully run that let me know so we can proceed to the next step(it is really simple).
I did the simple root for 1.47 and it was a success! Although I did not understand what the flash recovery did. I tried the clockwork recovery and it took me to a screen with a bunch of options, but I didn't know what to do so I just rebooted. What's next? I want to try the newest version of the fresh rom.
TO try fresh first download it and place the zip file on your computer, boot into recovery, (power phone off then hold down volume and power untill you get to the white screen) select flash zip fron sd card then select the fresh rom and flas, presto fresh should flash, the recovery is a seperate area which is used to flash a rom, as you cant flash a rom from within a rom.
So do I use the clockwork recovery to flash the fresh rom? I was looking at the guide to flash the new fresh rom and it says that I need to have nand unlocked. How do I do that?
if you did simpleroot nand should be unlocked, and yes clockwork recovery is used to flash the fresh rom. clockwork recovery is what you are in when you boot with the down volume and power button held down. If it doesnt work you may want to try amon ra recovery, find the toast root method and do the last step:
- on your PC open a shell again and do:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
- you should now be in recovery mode
- do a wipe of data and dalvik cache
- navigate to nandroid restore and restore the previous rom setup
- come here to the forum, get and flash the latest radio
- enjoy... you can now reboot into recovery, write to system and other partitions while in Android. Also you now have a Engineering SPL so you can fastboot and much more.
It also wont hurt to do the whole part two of toasts guide if you dont think your nand is unlocked. FYI Nand unlocking allows both a read write option in the recovery which is needed to write the custom roms.
StrummingLevi said:
So do I use the clockwork recovery to flash the fresh rom? I was looking at the guide to flash the new fresh rom and it says that I need to have nand unlocked. How do I do that?
Click to expand...
Click to collapse
Your nand is unlocked. Just download Fresh, boot into recovery, wipe caches, and apply Fresh via zip file.
ifly4vamerica said:
if you did simpleroot nand should be unlocked, and yes clockwork recovery is used to flash the fresh rom. clockwork recovery is what you are in when you boot with the down volume and power button held down. If it doesnt work you may want to try amon ra recovery, find the toast root method and do the last step:
- on your PC open a shell again and do:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
- you should now be in recovery mode
- do a wipe of data and dalvik cache
- navigate to nandroid restore and restore the previous rom setup
- come here to the forum, get and flash the latest radio
- enjoy... you can now reboot into recovery, write to system and other partitions while in Android. Also you now have a Engineering SPL so you can fastboot and much more.
It also wont hurt to do the whole part two of toasts guide if you dont think your nand is unlocked. FYI Nand unlocking allows both a read write option in the recovery which is needed to write the custom roms.
Click to expand...
Click to collapse
Ignore this post, unless you want to flash Fresh with Amon Ra Recovery instead of Clockwork Recovery (what you have now)
Agreed, I was only posting that "if" he had problems using clockwork sorry for the confusion.
jerryparid said:
Your nand is unlocked. Just download Fresh, boot into recovery, wipe caches, and apply Fresh via zip file.
Ignore this post, unless you want to flash Fresh with Amon Ra Recovery instead of Clockwork Recovery (what you have now)
Click to expand...
Click to collapse
So I decided I was going to use Amon Ra's recovery because flipz recommended it. That was going well until "- navigate to nandroid restore and restore the previous rom setup". I selected nandroid restore and it said something like /sdcard/nandroid not found. Aster that I just rebooted , which took a while and had me pretty nervous. It eventually booted up though. This stuff is a lot more confusing than windows mobile was haha. I'm wondering if nandroid was indeed unlocked with simple root. I'm still willing to press forward if the help is still available. By the way, what and how can I make a nandroid backup?
Turn phone off, turn phone on holding down volume and power, when you get to white screen select recovery then scroll through your options, i believe it it backup/restore then creat nandroid backup, FYI you cant restore a nandroid backup if you haven't created one, IE the not found error you got before.
Ok so how exactly would I go about flashing(if that's even the right word) fresh rom from what I already have?
I'm not sure what you actually have, can you get to recovery, then the option to 'flash zip from sd card? if you have that option just place the fresh rom on the root of your sd card (put the zip file there and don't open the zip) then reboot to recovery, ie vilume down and power button when you get to white screen volume down to recovery, then flash zip from sd then select the fresh rom zip, then hit power button to select, hit power button again to confirm and away you go.
Ok that sounds simple enough. I can't thank you guys enough for all your help. What does a nandroid backup do?
it makes a copy of your rom basically, so say you put on fresh do a nandroid backup then flas CM6, you decide you dont like CM6, so you nandroid restore of your fresh and presto right back to where you were before you flashed CM6, also useful if you have screwed something up ... you can go back ... make sense?

cannot start evo after root

Can someone please help...
i rooted my evo and then reinstalled a backup, now i cannot start the evo, it just keeps rebooting. i have tried to restore nand backup, installing the new pc36img.zip file and reformatting the sd card. when i start with the pc36img.zip file on the root of the sd card, i get no image or wrong image. it also has the newest ota. any help would be greatly appreciated.
Thank you,
D_
Corrupted pc136 file?
Sent from my PC36100 using XDA App
you have to use OTA simple root, you can't use the regular simpleroot and most likely you nand wasn't unlocked that's why you have the bootloop.
youngdhillon said:
you have to use OTA simple root, you can't use the regular simpleroot and most likely you nand wasn't unlocked that's why you have the bootloop.
Click to expand...
Click to collapse
Also, after you do the newest ota simple root. Be sure to wipe all before you flash a new Rom.
vbyt said:
Corrupted pc136 file?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I have tried multiple PC136img.zip files.
Thank you
I used the ota simple root... when it was done, i tried to restore a backup of all my apps and data using my backup, that's when the loop started. I can boot into boot loader, nand, restore, etc... but nothing seems to get me out.
Thank you
What HBOOT version do you have? When you statr phone with volume down and power, white screen you come to at the top should be the version.
The HBoot is 0.79.0000
erase all the new files from your sd csrd....like pc36 and the flast image and image1-3...then start over using simpleroot 1.47
Thanks but I cannot boot the phone at all. I was able to format the card to fat32, boot the phone to recovery, start the ota simple root, on pc run Windows-recovery, start a adb shell and push the pc36img from simple root to it... but when I reboot from there, I get the "no image or wrong image". Then it will say loading... pc36img.zip for about 30 seconds, then says checking pc36img.zip for another 30 and go to the menu with "fastboot, recovery, clear storage etc..."
I can select "recovery" and see any Rom or zip file and load it; but it will still boot to a loop.
Thanks again.
Have you tried toasts part 2 in its entirity? You dont have the engineering hboot. Look for whiteslacks starting over it will tell you to do toasts part 2 first then run the whiteslack method you are going to have to get engineering hboot to do much of anything.
Sent from my PC36100 using XDA App
I will try it out and let you know. Thank you very much.
i tried the toast 2, but can't seem to get past the mtd-eng.img part.'
here's what i get. First i Hold down the vol button and press power. once the phone starts, i scroll down to recovery and press power. in recovery it says "ClockworkMod Recovery v2.5.0.1" at the top and bottom of the screen. Now i open a command prompt on my computer and type in, "recovery-windows" the phone then goes into the android system recovery, and at the bottom says "Build : not set". From here i can open shell on the computer by typing "adb shell", but when i type in the first line "cat /sdcard/flash_image > /data/flash_image" it returns "cat: can't open '/sdcard/flash_image': No such file or directory" but i can ls while in a shell and see the file in the data directory and i can cd to any directory. the flash_image file is in the data director, and i can change the permissions with 755, but cannot get past that part.
OK... I don't really know how, but i was able to finally get it to see the PC36img.zip files. i pushed the flash_image to the /data directory, wiped everything and rebooted with the new PC36IMG file on the root. it asked if i wanted to update, and the rest is history...
Thank you for all your help.
I never used simple root and i dont recommend by other suggestionfor many issue during the process. Always i use this way and work perfectly easy and useful step by step , then last step flash custom rom
http://forum.ppcgeeks.com/showthread.php?t=123714
132.651.1/6 Top Instructions
147.651.1 Bottom Intructions

[Q] lost root after last update

If you have Unrevoked 3 installed:
1. Download stock Evo Recovery image (Can't find it anywhere... EVO Stock Recovery? - xda-developers)
2. Place the file in root of SD card and reboot into HBOOT (volume down/power button)
3. Do the update that HBOOT asks (vol. up for YES)
4. Reboot
5. Once rebooted, download OTA and install (should work now)
6. Once install finishes successfully you can reinstall a custom recovery using the same method (a list of them are here: public:forever [RootWiki])
7. Once you have a custom recovery back, you will need to reinstall Superuser as an update.zip through recovery ([APP] Superuser 2.3.6.1 - Now on the Market [2010-09-05] - xda-developers)
8. Reboot and enjoy!
Well I followed the instructions and the update went through... HOWEVER I have now lost root.... Help please.
EDIT: S-OFF does appear when I boot into the bootloader...
If you have S-Off, than you have not lost root.
YOu probably just lost your recovery, and you need to reflash it.
This tutorial from tws101 worked for me (I can't post a link as a new user):
"This guide will allow you to install the new OTA 3.29.651.5 when you have clockwork installed and will guide you into re-rooting the phone afterwards. (This does NOT wipe your data)
I am sorry if someone already posted this.
Requirements
1. Froyo 2.2 version 3.26.651.6 (Stock)
2. Clockwork
3. S-OFF
Files to Download (If you have a file manager on your phone you can just direct download them with the EVOs browser)
1. OTA_Supersonic_3.29.651.5 This is the new OTA update
2. ClockworkMod recovery for EVO 4G Clockwork (I know you already have it. This is to reinstall it)
3. su-2.3.6.1-ef-signed.zip Superuser (This is also to reinstall)
Step one
Place OTA_Supersonic_3.29.651.5 on your SD cards root folder. Power off and reboot holding Volume down. Once the bootloader is up goto recovery so clockwork loads up. Choose apply zip from sd card. Choose select zip on sd card. You will see the OTA file on the list flash it. Just wait for it to install it will reboot the phone show a progress bar reboot again they show a percentage etc it takes a few minutes.
Now you have the update installed, but the update removed clockwork and root.
Step two
Place ClockworkMod recovery for EVO 4G on your sd card root folder. Power off and reboot holding Volume down. The bootloader will scan the new will and ask you to press Volume up to install. Install it.
Now you have clockwork installed again. Please remove the clockwork file from the root of your SD card before going to step 3.
Step Three
Place su-2.3.6.1-ef-signed.zip on the SD cards root folder. Power off and reboot holding Volume down. Once the bootloader is up goto recovery so clockwork loads up. Choose apply zip from sd card. Choose select zip on sd card. You will see the SU file on the list flash it.
Now you are updated and rerooted. (I have been told it is possible to just rerun unrevoked instead of doing step 2 and 3. I did not test that method. I am simply showing a different method.)
Update
I am now getting 53 FPS with FPS 2D"
Thanks tws101
acron1 said:
This tutorial from tws101 worked for me (I can't post a link as a new user):
"This guide will allow you to install the new OTA 3.29.651.5 when you have clockwork installed and will guide you into re-rooting the phone afterwards. (This does NOT wipe your data)
I am sorry if someone already posted this.
Requirements
1. Froyo 2.2 version 3.26.651.6 (Stock)
2. Clockwork
3. S-OFF
Files to Download (If you have a file manager on your phone you can just direct download them with the EVOs browser)
1. OTA_Supersonic_3.29.651.5 This is the new OTA update
2. ClockworkMod recovery for EVO 4G Clockwork (I know you already have it. This is to reinstall it)
3. su-2.3.6.1-ef-signed.zip Superuser (This is also to reinstall)
Step one
Place OTA_Supersonic_3.29.651.5 on your SD cards root folder. Power off and reboot holding Volume down. Once the bootloader is up goto recovery so clockwork loads up. Choose apply zip from sd card. Choose select zip on sd card. You will see the OTA file on the list flash it. Just wait for it to install it will reboot the phone show a progress bar reboot again they show a percentage etc it takes a few minutes.
Now you have the update installed, but the update removed clockwork and root.
Step two
Place ClockworkMod recovery for EVO 4G on your sd card root folder. Power off and reboot holding Volume down. The bootloader will scan the new will and ask you to press Volume up to install. Install it.
Now you have clockwork installed again. Please remove the clockwork file from the root of your SD card before going to step 3.
Step Three
Place su-2.3.6.1-ef-signed.zip on the SD cards root folder. Power off and reboot holding Volume down. Once the bootloader is up goto recovery so clockwork loads up. Choose apply zip from sd card. Choose select zip on sd card. You will see the SU file on the list flash it.
Now you are updated and rerooted. (I have been told it is possible to just rerun unrevoked instead of doing step 2 and 3. I did not test that method. I am simply showing a different method.)
Update
I am now getting 53 FPS with FPS 2D"
Thanks tws101
Click to expand...
Click to collapse
couldnt u just use the new enrevoked 3.3 and just run through the process because i manually got the fps update after i got my root and i lost my root acess tell me if im wrong please
allenivers0n3 said:
couldnt u just use the new enrevoked 3.3 and just run through the process because i manually got the fps update after i got my root and i lost my root acess tell me if im wrong please
Click to expand...
Click to collapse
Dude the thread is older than your subscription!
Sent from my PC36100 using Tapatalk
allenivers0n3 said:
couldnt u just use the new enrevoked 3.3 and just run through the process because i manually got the fps update after i got my root and i lost my root acess tell me if im wrong please
Click to expand...
Click to collapse
You dont take updates once you are rooted, just flash a rooted ROM
First of all - Once you have rooted your phone - NEVER NEVER NEVER NEVER NEVER do an OTA update from sprint............
Not sure what your software version is or your hBoot, but if you have 2.02 hboot and 3.30 software, then you can do it the way I did...
having said that - You have not lost root, S-Off = Root, you just lost your recovery... all you need to do is flash a new custom recovery. I use Amon_Ra, but clockwork will work as well... what ever your preferance is...
I cant find the amon_ra that I used, so here is the new CW (attachment 1) - download it - rename it to just (all CAPS except extention!!) "PC36IMG.zip" - Then save it to the root of your SD card. Also save attachment 2 to the root of your SD card.
Boot into hBoot, it will scan the SD card for the PC36IMG.zip - when it asks to do update - click yes... After update completes it will ask to reboot - click NO, then scroll down to flash the superuser app (2nd attachment), I forget what exactly it says but its some thing like "flash from SDcard" or some thing like that...
after you flash the SU.apk, then reboot and if all is good - download ROM manger and flash the Amon_Ra recovery (3rd attachment) and make a NAND backup with Amon_Ra first - cause I'll be honest - I used the CWmod first and I had a bunch of Force Close issues after I did a NAND backup with CW...
Good luck!

[RADIO] Update to OTA radio 26.03.02.26_M

!!! ANY RADIO UPDATE COULD BRICK YOUR PHONE !!!
You have been warned​
Info:
If you haven't updated to OTA (or can't because you deleted the faulty Google Googles) but still want the updated radio, you can apply the firmware.zip found in the latest OTA.
Setup:
Download and open the OTA (e4aaacea73af.OTA_Vision_TMUS_1.22.531.8-1.1.19.531.1_release_signed.zip)
Extract the 'firmware.zip' file out (to your desktop or some folder)
Rename the 'firmware.zip' file you extracted to 'PC10IMG.zip'
Copy (or move) PC10IMG.zip to the root of your G2 microSD card
Charge your G2 to FULL battery
Flash:
Power off your G2
Plug your G2 into AC power
Boot into the G2 bootloader by holding VOL_DOWN and press POWER, continuing to hold VOL_DOWN until the bootloader screen appears
Wait while it checks the PC10IMG.zip file
Press VOL_UP to flash
WAIT
Press POWER to reboot (it actually turned my G2 off, and I had to turn it back on)
Result:
You will have the OTA radio without updating to OTA. Since the OTA didn't update the bootloader (SPL/HBOOT), you will still have S-OFF if you applied it before. You will need to re-flash a custom recovery if you had one before, as well as reapply Cyanogen's bacon-bits if you had applied this before.
Notes:
I lost WiFi when rebooting into Android. I used RomManager to reflash ClockworkMod recovery, then rebooted into recovery to reflash Cyanogen's bacon-bits. This restored my WiFi.
Reference:
OTA - T-Mobile nationwide OTA UPDATE
S-OFF - [GUIDE] Perma-root and S-OFF!!
ClockworkMod recovery - [RECOVERY] ClockworkMod Recovery for G2
Bacon Bits - [ADDON] Vision BaconBits
Oh, the irony! I couldn't update the OTA because of Google Goggles being uninstalled. Prior to that, I backed up my phone through Clockworks Recovery, so I applied that (which had Goggles installed), did the OTA update, and then went through re-rooting my phone.
I wish this was posted sooner but oh well. I've got OTA installed after a pre-OTA root and re-rooted it.
Thank you for this!
Sent from my T-Mobile G2 using XDA App
I did everything as instructed, but still couldn't get the ota to work. I have pre ota root and clockworkmod recovery... could the recovery be interfering with it? Been trying to get stock recovery with no luck. I still have the old radio. Pc10img.zip is recognized, but after it says parsing it, just returns to the menu of the hboot... what am I doing wrong?
scribbin said:
I did everything as instructed, but still couldn't get the ota to work. I have pre ota root and clockworkmod recovery... could the recovery be interfering with it? Been trying to get stock recovery with no luck. I still have the old radio. Pc10img.zip is recognized, but after it says parsing it, just returns to the menu of the hboot... what am I doing wrong?
Click to expand...
Click to collapse
This doesn't actually apply the WHOLE OTA, just the boot, radio, and recovery. The radio is the only thing I wanted, but I am unable to make a successful update.zip for just the radio. If anyone has experience with this, please PM me.
A few things to try:
- check the filesize; your PC10IMG.zip (originally firmware.zip) file should be exactly 19,364,782 bytes (windows might report size-on-disk larger)
- use a different microsd card
- format the card fat32
- put PC10IMG.zip as the only file on the card
I flashed this from the S-OFF HBOOT-0.76.2000 SPL. I also retraced my steps and successfully reflashed it over the 26.03.02.08_M radio I already have now.
It worked! I found out what I was doing wrong. I didn't unzip the ota. (Thought you were calling it firmware.zip as a shortcut, my bad) Telling me the file size helped me determine what I was doin wrong. Thank you so much!
reukiodo said:
!!! ANY RADIO UPDATE COULD BRICK YOUR PHONE !!!
You have been warned​
Info:
If you haven't updated to OTA (or can't because you deleted the faulty Google Googles) but still want the updated radio, you can apply the firmware.zip found in the latest OTA.
Setup:
Download and open the OTA (e4aaacea73af.OTA_Vision_TMUS_1.22.531.8-1.1.19.531.1_release_signed.zip)
Extract the 'firmware.zip' file out (to your desktop or some folder)
Rename the 'firmware.zip' file you extracted to 'PC10IMG.zip'
Copy (or move) PC10IMG.zip to the root of your G2 microSD card
Charge your G2 to FULL battery
Flash:
Power off your G2
Plug your G2 into AC power
Boot into the G2 bootloader by holding VOL_DOWN and press POWER, continuing to hold VOL_DOWN until the bootloader screen appears
Wait while it checks the PC10IMG.zip file
Press VOL_UP to flash
WAIT
Press POWER to reboot (it actually turned my G2 off, and I had to turn it back on)
Result:
You will have the OTA radio without updating to OTA. Since the OTA didn't update the bootloader (SPL/HBOOT), you will still have S-OFF if you applied it before. You will need to re-flash a custom recovery if you had one before, as well as reapply Cyanogen's bacon-bits if you had applied this before.
Click to expand...
Click to collapse
hello OP,
erm flash radio through fastboot! you have that option now. why risk a brick?
in my opinion, better instructions would be.
1)download OTA
2)using zip extra the OTA and find the radio.img file
3)Enter phone into fastboot mode (how you checked you had s-off and then using volume down navigate to fastboot)there may be a better way i own a desire hd
4)depending on how you have set up your SDK folder, i.e. if you have added path variables you can adb and fastboot from anywhere. so if that is the case(which is the correct way to set up sdk as mentioned on development site) you can fastboot the radio. all you do is CD to the directory in cmd/terminal i.e.
cd /home/user/Desktop/OTAEXTRACT [then press enter]
fastboot flash radio radio.img [enter]-without the space after the img ofcourse
and it will flash
but you as an OP should show the md5 checksum for the radio.img or even the zip once the user puts it on the SD CARD it should be checked they are not flashing a corrupt file.
you tried and it worked so post the md5sum up of the files
El_Nino9 said:
hello OP,
erm flash radio through fastboot! you have that option now. why risk a brick?
in my opinion, better instructions would be.
1)download OTA
2)using zip extra the OTA and find the radio.img file
3)Enter phone into fastboot mode (how you checked you had s-off and then using volume down navigate to fastboot)there may be a better way i own a desire hd
4)depending on how you have set up your SDK folder, i.e. if you have added path variables you can adb and fastboot from anywhere. so if that is the case(which is the correct way to set up sdk as mentioned on development site) you can fastboot the radio. all you do is CD to the directory in cmd/terminal i.e.
cd /home/user/Desktop/OTAEXTRACT [then press enter]
fastboot flash radio radio.img [enter]-without the space after the img ofcourse
and it will flash
but you as an OP should show the md5 checksum for the radio.img or even the zip once the user puts it on the SD CARD it should be checked they are not flashing a corrupt file.
you tried and it worked so post the md5sum up of the files
Click to expand...
Click to collapse
to anybody who downgraded to get rid of the vibrating, this radio brings it back
Edit: Downgrading radio to stock fixes it.. just extract radio.img from stock rom and with your g2 in fastboot run:
fastboot flash radio radio.img and reboot and the vibrating should be gone
So this reflashes the OTA kernel?
I'm not sure I understand the order of radio releases. This update flashes your radio to 26.03.02.08_M. However, in the photos you have attached, the radio is listed 26.03.02.26_M. 26 is greater then 08, so would not the 26 radio be the later release?
I am sure you completely understand what you are flashing, but if someone could point it out to obtuse, old me, I would surely appreciate it.
I still had the pre-OTA radio on my device, i rooted and flashed cm 6.1.1 as soon as i got the phone. I think this might fix my problems i am having when i enter a roaming area, and maybe even the occasional crash where the power button doesnt work and i gotta pull the battery.
I'm rooted and running CM6.1.1.
After applying this, all my apps force close nonstop. I can't even see my home screens, app drawer or anything.
I can't even nandroid because I got a stock recovery. Anyone know how to beat this?
apollostees said:
I'm rooted and running CM6.1.1.
After applying this, all my apps force close nonstop. I can't even see my home screens, app drawer or anything.
I can't even nandroid because I got a stock recovery. Anyone know how to beat this?
Click to expand...
Click to collapse
If you're rooted, you can clear the dalvik-cache (and then reboot) which might help.
Code:
rm -r /data/dalvik-cache
rm -r /cache/dalvik-cache
If you aren't rooted, you might have to do a full wipe.

[GUIDE] Rooting AND Unrooting NS4G using a Mac

I’ve compiled this information, found elsewhere, in order to make it easier for Mac users with the Nexus S 4g. I’ve simply combined BuglessPete’s Instructions for Rooting/Unrooting on the NS4g, with kenvan19’s Guide to Root on a Mac. All credit goes to them and the sources they cited in their original threads. Any errors here are my own. This method worked for me. The only change I’ve made is to link to the most recent version of Clockwork Recovery.
[NOTE: If Pete prefers, this information can be incorporated into his original thread, and a Mod can delete this]
Warning: If you break your phone trying this, I am not responsible. I do not guarantee that the following is safe or that the steps are correct. Rooting your phone voids the warranty. I have no responsibility for anything that occurs as a result of your following these directions! I cannot provide any support nor guide you in undoing this process and restoring the phone to factory condition.
This process will wipe your phone. Ie, you will lose all your apps/data on your phone and have to reinstall them. It will also wipe your external storage, so back that up prior to proceeding if you want to keep anything.
1) Download this file and unzip it to your desktop (Inside you'll find all the files you need to proceed including "adb", "fastboot", "recovery-clockwork-3.0.0.5-crespo.img", and "su-2.3.6.1-ef-signed.zip"). Immediately delete "recovery-clockwork-3.0.0.5-crespo.img." You’ll replace it with the new version.
2) Download Clockwork 4.0.0.2 (****MAKE SURE YOU SELECT ONE OF THE NS4G VERSIONS*****) in the color of your choosing. Move the file into the adb-fastboot folder you created in Step 1.
3) On your phone, go to Menu>Settings>Applications. Select "Development" and check the box next to "USB debugging"
4) Connect the phone to your Mac via the USB cable
5) Open a Terminal window on your Mac (Applications>Utilities>Terminal), and copy/paste the following into the Terminal:
Code:
~/Desktop/adb-fastboot/adb reboot bootloader
Hit "Return" and wait for your phone to reboot into Bootloader/Fastboot mode
5) If your Bootloader screen says "LOCK STATE - UNLOCKED" then skip to Step 6. If it says "LOCK STATE - LOCKED" then copy/paste the following into the Terminal:
Code:
~/Desktop/adb-fastboot/fastboot oem unlock
Hit "Return" and on your phone will prompt you to confirm and warn you that you are going to lose everything. Confirm. At this point you will have an unlocked bootloader.
6) Copy/paste the following into the Terminal window (***Change the file name to the appropriate color***):
Code:
~/Desktop/adb-fastboot/fastboot flash recovery ~/Desktop/adb-fastboot/ns4g-4002-COLOR.img
Hit "Return" again and wait for recovery to boot.
For the following steps while in Recovery, use "Volume Down" to highlight a selection and "Power" to choose that selection:
8) Choose "mounts and storage"
9) Choose "mount USB storage". Your phone should now be mounted on the Mac as a Device called "NO NAME"
10) Move the zip file "su-2.3.6.1-ef-signed.zip" from the "adb-fastboot" folder to the "NO NAME" Device on you computer.
11) Eject/unmount your phone in the Finder on your Mac.
12) On your phone, choose "Unmount"
13) Choose "mount /system"
14) Choose "+++++Go Back+++++"
15) Choose "install zip from sdcard"
16) Choose "choose zip from sdcard"
17) Choose "su-2.3.6.1-ef-signed.zip"
Some people with new Nexus S' are finding that the file discussed in the following steps does not exist. If you cannot find it but can still reboot into Clock Work Recovery Mod then don't worry, you're still rooted and fine!
At this point you have root, but your phone will continue to replace ClockworkMod Recovery on reboot. To prevent this, do the following:
1) Reboot your phone, and download the app "Root Explorer" from the Market
2) Open Root Explorer and navigate to the "etc" directory.
3) Tap on the gray box that says "Mount R/W"
4) Tap and hold on the file "install-recovery.sh" and rename this file to "install-recovery.sh.old"
5) Download the app "ROM Manager"
6) Open ROM Manager and choose "Flash ClockworkMod Recovery". At this point you are all set.
To Unroot and Return to Stock:
1) Download Stock GRJ22 Software Images.
2) Unzip the files, and place the images into the adb-fastboot folder you created on your desktop above.
3) Open a terminal and use the following commands:
Code:
~/Desktop/adb-fastboot/adb reboot bootloader
4) Wait for bootloader to reboot on phone.
5) Then, in terminal use the following commands:
Code:
~/Desktop/adb-fastboot/fastboot flash boot ~/Desktop/adb-fastboot/boot.img
~/Desktop/adb-fastboot/fastboot flash system ~/Desktop/adb-fastboot/system.img
~/Desktop/adb-fastboot/fastboot flash recovery ~/Desktop/adb-fastboot/recovery.img
~/Desktop/adb-fastboot/fastboot flash userdata ~/Desktop/adb-fastboot/userdata.img
~/Desktop/adb-fastboot/fastboot erase cache
~/Desktop/adb-fastboot/fastboot oem lock
6) Reboot to System, and you should be returned to Stock, Unrooted GRJ22.
hey i just rooted the phone. I can't see the install file in root explorer and I can't boot into the recovery anymore. what do i do?
nevermind i got it
Root explorer will not let me make /etc R/W. I press the gray button that says "Remount as R/W" but nothing happens
hmpm9 said:
Root explorer will not let me make /etc R/W. I press the gray button that says "Remount as R/W" but nothing happens
Click to expand...
Click to collapse
I'm not sure if you're reading the instructions correctly. You don't create /etc R/W.
In root explorer go to /etc directory and click on "Mount R/W" then rename the install file.
If there is a remount option, you probably already mounted.
Awesome thanks.
This is great, thanks. Is anyone having success? I have to wait until after work to do this.
hmpm9 said:
Root explorer will not let me make /etc R/W. I press the gray button that says "Remount as R/W" but nothing happens
Click to expand...
Click to collapse
Some root apps require BusyBox in order to work properly.
Edit: I think nandroid backup and BusyBox install should be part of every proper root guide.
FYI: The second steps 1-6 are ONLY necessary if clockwork recovery doesn't stick.
I didn't have to use these steps myself.
To see if it stuck, turn phone off. Then hold Volume UP + Power to enter bootloader. Then enter recovery, if it enters Clockwork Recovery. You're fine, and you don't need to do the second steps 1-6.
-Nick
Thanks man, just unrooted my phone to return it for the e3d. Worked absolutely flawlessly. Great write up.
Worked to unroot. Had to give it a couple tries but got it to work. Thanks for the great tutorial!
Thank you, It took me 5 mins and I now have root on my NS4G!!!
2) Download Clockwork 4.0.0.2 (****MAKE SURE YOU SELECT ONE OF THE NS4G VERSIONS*****) in the color of your choosing. Move the file into the adb-fastboot folder you created in Step 1.
Im not able to download this file... I tried all three... and it keeps saying Mounting Failed.
What am I doing wrong?
PLEASE HELP!!!! Im new to rooting... Im tired of paying people to do the rooting for me I want to learn on my own...
Thank you.
Lokario90 said:
2) Download Clockwork 4.0.0.2 (****MAKE SURE YOU SELECT ONE OF THE NS4G VERSIONS*****) in the color of your choosing. Move the file into the adb-fastboot folder you created in Step 1.
Im not able to download this file... I tried all three... and it keeps saying Mounting Failed.
What am I doing wrong?
PLEASE HELP!!!! Im new to rooting... Im tired of paying people to do the rooting for me I want to learn on my own...
Thank you.
Click to expand...
Click to collapse
You can see that as giving back to the economy in one way...
I could swear when i rooted early this morning on my virgin NS4G, it was 3.0.something and now i see it is now 4.0.something. Anyway i had to get inventive as the SD card would not mount on my Mac when i got to that part. Basically rebooted normally to reg Android, transferred SU to SD card(it mounted then) and got back to the step to flash SU. Did that manually, got a hold of ROM manager and all's well.
Only issue is that more often than not it still boots to the blue recovery and not CWM, and sometimes the Android guy with yellow rectangle. When that happens, i connect to Mac via USB and get to CWM via terminal.
But on the whole, ROM manager is a saviour. Been playing with MIUI rom now and it's impressive.
I assume the right way to boot into CWM is to hold down volume key and power key at the same time?
Trying to unroot to send it back for a replacement. At "~/Desktop/adb-fastboot/adb reboot bootloader" I'm getting "error: device not found." It's driving me bat****. Any ideas?
jckeyser - I know it might sound stupid but did u try a different usb cable? i just came across same issue as you. was unable to get my device to show up. Turns out cable i was using for some reason wasn't working with NS4G. It was my old Palm Pre cable. i swapped my cable for one that came with my kindle and device immediately showed up without any problems
jckeyser said:
Trying to unroot to send it back for a replacement. At "~/Desktop/adb-fastboot/adb reboot bootloader" I'm getting "error: device not found." It's driving me bat****. Any ideas?
Click to expand...
Click to collapse
You're missing a dash. It's
adb reboot-bootloader
.
Or you could boot into fastboot by powering on using volumeUp+Power.
2.3.5
Hey guys, just got the NS4G yesterday and want to root using this method. The best buy associate updated me from 2.3.4 to 2.3.5 without my knowledge and I was curious if this method would still work. If not, is there one that will.
Thanks
techdude54 said:
Hey guys, just got the NS4G yesterday and want to root using this method. The best buy associate updated me from 2.3.4 to 2.3.5 without my knowledge and I was curious if this method would still work. If not, is there one that will.
Thanks
Click to expand...
Click to collapse
Yes it will work just fine.
Sent from my Nexus S 4G using XDA App

Categories

Resources