Related
As there are many questions on how to do OTA update & to revert to stock after a device is rooted and bootloader unlocked; I made this simple guide which I hope will help the newbies especially.
NOTE : always do a backup and a nandroid backup before trying any of these.
OTA update:
A) ROM is stock, bootloader unlocked, stock recovery and not rooted.
- just run the OTA update, there is no need to relock the bootloader
B) ROM is stock, bootloader unlocked, CWM recovery and not rooted.
- flash the stock recovery that comes with your RUU, extract the RUU for the stock recovery.
* boot to bootloader
* fastboot flash recovery recovery_signed.img
* fastboot reboot-bootloader
* fastboot erase cache
* fastboot reboot
- run the OTA update
C) ROM is stock, bootloader unlocked, stock recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- run the OTA update, there is no need to relock bootloader
- Once done, run OTA Rootkeeper and click restore root
D) ROM is stock, bootloader unlocked, CWM recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- no need to relock bootloader
- boot to bootloader and fastboot flash the stock recovery
- run the OTA update
- Once done, run OTA Rootkeeper and click restore root
E) ROM is custom, bootloader unlocked, CWM recovery and rooted and you have a stock nandroid backup
- flash the stock boot.img if after nandroid restore, you have a bootloop
- flash the stock recovery.img
- relock the bootloader - fastboot oem lock
- boot your device and run the OTA update
F) ROM is custom, bootloader unlocked, CWM recovery and rooted and you don't have a stock nandroid backup
- if you dont have the stock nandroid backup, you need to run RUU
- before you can run the RUU you need to:
* flash the stock recovery.img
* flash the stock boot.img (maybe no need)
* relock the bootloader - fastboot oem lock
* run RUU
- run device setup
- run the OTA update
Flashing RUU to revert to stock or to update your One V after you have a custom ROM installed.
- you must have the correct RUU for your device.
- if you are not sure, download CID Getter from Play Store and run it, it will show your CID.
- with your CID, you may be able to find a correct RUU for your device
then
1- in fastboot mode - relock the bootloader : run command fastboot oem lock
2- in fastboot mode - flash/run/double click the RUU; follow the updater instruction - next,update,bla,bla,bla until it finish
Note :
Error 155 - usually wrong recovery.img /wrong boot.img or bootloader not relocked
Error 140 - wrong bootloader / bootloader unlocked
Error 131 - wrong RUU for your device
Credit to all XDA members that posted all the guides in various forum thread and some from own experience which I compiled here for easy reference.
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
i think u have an option in super su
to completely get rid of root
dnt knw if tht wrks
try it
dont just say thanks hit thanks if i helped
sent from my awesome HTC One V using xda premium
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Are you able to get the RUU for your phone/region?
1ceb0x said:
but how do you get rid of root?
Click to expand...
Click to collapse
Reflash system.img is the no-fail way.
CafeKampuchia said:
Reflash system.img is the no-fail way.
Click to expand...
Click to collapse
System.img is the rom itself right? If yes, by reflashing it, the root will still be there because the nandroid was AFTER it was rooted. And I didn't found my RUU. I have found one which is the same as mine but the last number .x differs from mine (I have .4 and the RUU has .3)...
your going to need the ruu buddy, i have to do the same, the kernel shows up as root blah blah blah. kernel recovery and rom itself need flashing.....
Would you be okay with just removing the superuser.apk or did you also want the binary gone?
One of the possible options is to modify your nandroid backup so that both files are deleted (and not restored), but I'm not sure if CWM complains if the backup has been modified.
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Restore your nandroid backup
Reboot your device.
Open the SuperSU, and click Full unroot (it will remove the app, apk & su library)
Reboot to recovery
Make a new nandroid backup (this time there is no root for safekeeping)
Reboot to bootloader
fastboot flash boot stockboot.img
fastboot erase cache
fastboot flash recovery stockrecovery.img
fastboot erase cache
fastboot oem lock
now you are back to stock rom without root and relocked
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a new stock nandroid without root.
ckpv5 said:
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a stock nandroid without root.
Click to expand...
Click to collapse
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
1ceb0x said:
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
Click to expand...
Click to collapse
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
The post now updated.
ckpv5 said:
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
Click to expand...
Click to collapse
Well, the point is that I will replace this unit with another one since this one is not working with Orange carriers. My shop was in talks with HTC service to get an unlock code but they failed to do so, so they said it is ok to change the unit. No need to keep a nandroid backup since I don't know what software version I will have on the new phone. Thank you for your help!
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
boot to bootloader and fastboot flash the stock recovery
Click to expand...
Click to collapse
Do I boot into CWM?
Thanks for your help.
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
No, not boot into CWM.
Remember how you go to bootloader when you first want to unlock your bootloader ? You press power + volume down, that is boot to bootloader.
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
so that your new nandroid backup doesn't have SuperSU and you can still keep your datas
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
Please make sure you're flashing to recovery, not boot.
Connect your phone to your computer via USB. I'll assume you have the necessary bootloader/adb drivers installed.
Open up a command prompt to wherever your recovery.img is and type (this assumes you can easily access adb/fastboot from anywhere):
adb reboot bootloader
Phone should reboot into fastboot. From there type:
fastboot flash recovery recovery.img
It should then flash the stock recovery.
I would recommend taking a look at the HTC All-in-One ToolKit in the Development forums. It might simplify it for you.
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
1ceb0x said:
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
Click to expand...
Click to collapse
yea it should be ok buddy, my new handset arrives tomorrow, wish i could had gone to a store to pick it up so i could check it before i left the store :/ i do hate 3 customer services
I have an HTCDev unlocked Desire Z and i want to flash custom ROM.
Is custom recovery necessary ?
or do i just flash it with fastboot ?
mohit.joshi said:
I have an HTCDev unlocked Desire Z and i want to flash custom ROM.
Is custom recovery necessary ?
or do i just flash it with fastboot ?
Click to expand...
Click to collapse
Custom Recovery (clockworkmod, 4Ext, etc) would be necessary if you wish to be able to backup/restore your device via nandroid backups, as well as flash any roms other than Stock (i.e.: just bout everything in the dev forum).
So yes if you want a custom rom you need a recovery other than the stock one.
Hi,
I need help. I did an ota update from htc to improve battery performance on my rooted phone. Now the phone is not rooted anymore. I'm still on stock ics rom, how do I reroot the phone again? Do I just follow the same procedures when I rooted it the first time? Thanks in advance for any help.
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Gryff302 said:
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
Click to expand...
Click to collapse
I'm still on the ROM the phone came with. I did not install any custom ROM after I rooted it first time. Do I reroot by doing the same procedures like I did the first time? i.e. unlock bootloader through HTC dev and use primo superboot to root.
mihirengg19 said:
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Click to expand...
Click to collapse
I did not flash any custom ROM after it was rooted the first time. The phone is still on the original ROM it came with. Do I just need to unlock and use primo superboot to root again?
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
mihirengg19 said:
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
Click to expand...
Click to collapse
Great! Thanks for the help, I will give it a go.
Hi all,
Just moved over to the One X from a Desire HD where I had been running Leedroids custom ROMs.
Am loving the One X, but feel I should get another custom ROM on it to make the most of it. Was think of going with Android Revolution.
Anyway.....
I have forgotten the process involved and have tried unsucessfuly to find a 'how to' from scratch. Can anyone point me in the right direction?
At the moment my software info on the phone is as follows....
Android Version 4.1.1
HTC Sense Version 4+
Software number 3.14.401.31
HTC SDK API level 4.63
HTC Extension version HTCExtension_Sense45_1
Kernel Version
3.10-g9fb8f80
Baseband version 5.1204.162.29
Build number 3.14.401.31 C:128187 release-keys
I want to be sure I am ok to custom ROM and also can I backup what I have now, so I can restore back to stock should I need to send it back.
Its on the 02 network, but its unbranded and I think unlocked?
http://forum.xda-developers.com/showthread.php?t=1809141
Try this out.
Before that , hold power button and volume down button ( dont leave) for about 15 secs until a white screen with small letters shows up.
On the top either unlocked or locked should be written. Only proceed to install rom if you are unlocked.
If you are locked try this tool to unlock first
http://forum.xda-developers.com/showthread.php?t=1604439
Check your hboot of its unlocked, hold the power button and the volume - button together until you are in the bootloader. It says on the top if its locked or unlocked. If its unlocked you can proceed
Then you need to learn fastboot commands, if you did not learn it already.
With the fastboot commands you have to flash a custom recovery and with that custom recovery you can make a nandroid backup of the stock rom. After that you can install custom roms.
Always keep in mind that you have to flash the boot.img (kernel) separate with fastboot commands to the phone and install the rom.zip from recovery
Cheers. It seems its locked. So, I will get it unlocked by 02 before I carry on.
On the tutorial link, I presume I follow the 'For Users Using Sense 4.1' instuctions?
Mate, SIM unlocking is not the case here. You need to unlock the bootloader.
TToivanen said:
Mate, SIM unlocking is not the case here. You need to unlock the bootloader.
Click to expand...
Click to collapse
Ah, like S-OFF? Getting myself confused as I have four phones in front of me here and trying to sort them all out!
Thanks.
superdon said:
Ah, like S-OFF? Getting myself confused as I have four phones in front of me here and trying to sort them all out!
Thanks.
Click to expand...
Click to collapse
There is currently no way for us to S-OFF our device. But unlocking the bootloader does a similar thing - it makes us capable of flashing stuff by allowing us to write some partitions that would otherwise be read only.
OK, so I folow the two links that {< r o N o $ provided.
At what point and how do I create a backup of the stock system? Is there a tutorial for that?
Listen:
NAND Backup straight away. (From Pure stock)
Goto HTCDev
Unlock Bootloader
Install SuperSU(this makes root)
Your now unlocked and rooted.
Find custom ROM.
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Boot
Wilks3y said:
Listen:
NAND Backup straight away. (From Pure stock)
Goto HTCDev
Unlock Bootloader
Install SuperSU(this makes root)
Your now unlocked and rooted.
Find custom ROM.
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Boot
Click to expand...
Click to collapse
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
TToivanen said:
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Click to expand...
Click to collapse
Do this
Those that don't know,speak
Those that don't speak,know
TToivanen said:
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Click to expand...
Click to collapse
Good point
My bad
Thanks all. Will give it a try soon
Oke, feel free to ask here if you need help.
hi,
I just want to ask some noob questions, as I don't play around my set so much.
1) First of all, do I have to be on stock recovery to check for updates also ?
2) I rooted my phone using Hasoon's Toolkit and installed TWRP Recovery (didn't install a custom rom yet, on stock 4.1.1), but made a backup before flashing recovery. Do i have to flash stock RUU to come again to stock, or I can flash the backup I made before flashing the recovery ?
3) How i can find my stock RUU, my CID is TMOB_005.
Regards,
Kashif Rafiq
100+ views no reply, no one is ready to help ?
Can anyone with same CID confirm, whether update recieved or not ?
Sent from my HTC One X using xda app-developers app
You can receive OTA updates if you have the following; stock recovery, stock rom, locked or unlocked bootloader.
I don't know where the RUU is for your CID but I'm sure there is a thread with it in somewhere.
Sent from my HTC One X using xda app-developers app
kashifmehmood said:
hi,
I just want to ask some noob questions, as I don't play around my set so much.
1) First of all, do I have to be on stock recovery to check for updates also ?
2) I rooted my phone using Hasoon's Toolkit and installed TWRP Recovery (didn't install a custom rom yet, on stock 4.1.1), but made a backup before flashing recovery. Do i have to flash stock RUU to come again to stock, or I can flash the backup I made before flashing the recovery ?
3) How i can find my stock RUU, my CID is TMOB_005.
Regards,
Kashif Rafiq
Click to expand...
Click to collapse
Since u haven't flash a custom Rom you are stock, u just need to flash back the stock recovery and wait for tmobile to release the update. No need to relock.
Sent from my HTC One X
I have downloaded stock recovery for my CID (TMOB-005), will executing these commands in fastboot mode restore stock status
fastboot flash recovery nameofrecoveryfile.img
fastboot erase cache
I have stock 4.1.1 rom already installed.
kashifmehmood said:
I have downloaded stock recovery for my CID (TMOB-005), will executing these commands in fastboot mode restore stock status
fastboot flash recovery nameofrecoveryfile.img
fastboot erase cache
I have stock 4.1.1 rom already installed.
Click to expand...
Click to collapse
correct
And just to answer your other question, save the backup you made in twrp onto your computer in case you need it later, this is your nandroid. Then if you install a custom Rom and need to go back to stock at some time you just need to flash the boot.img from your backup and then flash your nandroid in recovery
Now go get the cakes
i've flashed the stock recovery, but after flashing when i try to go into recovery it shows red triangle with exclamation mark
kashifmehmood said:
i've flashed the stock recovery, but after flashing when i try to go into recovery it shows red triangle with exclamation mark
Click to expand...
Click to collapse
That's correct
Now go get the cakes
is this the stock recovery, with no options of backup and restore (i haven't seen this before) ??? strange
anyone with CID TMOB-005 confirm whether update received or not ?
Nothing yet, we'll be one of the last carriers to get it as always...
Sent from my HTC One X