5,598,463 Members 46,998 Now Online
XDA Developers Android and Mobile Development Forum

[TUT] Getting back to stock after flashing custom roms [Noob friendly]

Tip us?
 
ClydeB1
Old
(Last edited by ClydeB1; 14th April 2013 at 08:49 PM.)
#1  
ClydeB1's Avatar
Recognized Contributor - OP
Thanks Meter 4324
Posts: 10,696
Join Date: May 2009

 
DONATE TO ME
Default [TUT] Getting back to stock after flashing custom roms [Noob friendly]

This guide is intended to help you to return your One X device back to stock in order to either return the device for a warranty claim, or to be in a position to receive an official OTA (Over The Air) update. There may be other guides, but the intention of this guide is to be as simple to perform as is possible given the challenges facing us without having s-off for the One X.

There are 2 methods that can be used to restore back to stock from a custom rom:
1. Using a nandroid backup (if you took one when you first unlocked your bootloader)
2. Flashing a stock ruu
BEFORE STARTING

1. Charge your device. It is advisable to have at least 60 - 70% battery charge on your device before attempting this process

2. Install HTC Sync software and drivers on your pc.

3. You also need to have the fastboot folder and files installed on your pc.
  • Refer here for guidance on using adb and fastboot commands
OPTION 1 - Restoring stock rom from nandroid backup
If you followed the advice when first unlocking your bootloader, you should have a nandroid backup of your original rom . It is easier to restore your backup than going through the process of flashing from an ruu
NB! If you don't have a nandroid backup have a look HERE to see if one has been uploaded that you can use, or you can ask another user to possibly upload one for you.

1. Copy the boot.img file from your backup (/sdcard/clockworkmod/backup) to the fastboot folder on your pc and flash this via fastboot: (If you use a nandroid backup from another user from the link above, then extract the backup.zip and copy the main folder (should have the date of the backup in the foder name) to /sdcard/clockworkmod/backup/.
If the backup is made using TWRP then you will need TWRP Recovery to restore it. Copy the main folder to /sdcard/TWRP/Backups/Your phones Serial Number/. The boot file for a backup made using TWRP will be named boot.emmc.win, but you can flash it the same way as flashing the boot.img file.)
Code:
fastboot flash boot boot.img (or fastboot flash boot boot.emmc.win if using TWRP backup)
fastboot erase cache
2. Boot into Recovery and restore the backup
3. Boot back to bootloader and flash the appropriate recovery file to match your stock rom which you are restoring (See links below)
Code:
fastboot flash recovery nameofrecoveryfile.img
fastboot erase cache
Links to stock recovery versions can be found below:
OPTION 2 - Restoring stock rom by flashing stock ruu
Get the RUU file required for your device:
Make sure that USB debugging is enabled (Settings/Developer options). In order to determine which ruu file you require, boot your device into bootloader mode (Power off and then restart device by holding Power and Volume Down button together). Connect to pc via USB and check that device shows FASTBOOT USB on screen. Enter the following command in command prompt:
Code:
fastboot getvar version-main
If for example this command returns the value 1.29.401.x then you need to use that file or you can use a higher numbered file from the same region eg 2.17.401.x. NOTE: You can't use a lower numbered file eg 1.26.401.x and you also can't use a file from a different region eg 2.17.707.x.
You can find many of the ruu files here:
PROCESS :

1. Boot your phone to fastboot mode by holding power+vol down button for 10 secs..(if your phone keeps restarting in normal phone mode, go to Setting>Power and untick Fast boot)

2. Plug your phone into your PC and open a Command Prompt.
  • (windows XP - Click Start > Run > type CMD in box then press OK
  • (Windows 7 - Click Start > type CMD in search box then press Enter)

3. cd to the location of your fastboot files folder

4. Relock bootloader - type command:
Code:
fastboot oem lock
The phone will then restart into fastboot again showing "RELOCKED"

6. On your pc run the RUU that you downloaded earlier, follow the steps as prompted and patiently wait for it to finish.
REMEMBER your phone should be charged ABOVE 50% AND if the ruu or restore is INTERRUPTED 4 any reason during restore your
phone MAY be PERMANENTLY BRICKED..
all the best..
The Following 197 Users Say Thank You to ClydeB1 For This Useful Post: [ Click to Expand ]
 
EddyOS
Old
#2  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 2640
Posts: 12,467
Join Date: Jan 2010
Location: Liverpool, Merseyside
How is this different from this thread?...

http://forum.xda-developers.com/show....php?t=1660807
Google Nexus 5 (LG-D821) 32GB
ROM: Android 4.4.2 (KOT49H) | Bootloader: HHZ11d | Recovery: Stock | Baseband: M8974A-1.0.25.0.23 | Kernel: Stock

If you have a question, great - but DO NOT PM ME WITH IT!!!
The Following 4 Users Say Thank You to EddyOS For This Useful Post: [ Click to Expand ]
 
sumeshd
Old
#3  
sumeshd's Avatar
Senior Member
Thanks Meter 488
Posts: 1,343
Join Date: Nov 2010
Location: New Delhi
Quote:
Originally Posted by EddyOS View Post
How is this different from this thread?...

http://forum.xda-developers.com/show....php?t=1660807
edited the title..
this is noob friendly and that is not..
this has links to everything one needs(e.g. stock recovery)
c'mon!!! cooking a rom out of ruu..

"
Quote:
Install stock rom of your CID
-fastboot oem readcid (to know your CID)
-all roms are based on x.xx.401.xx , so you need to download the right RUU(that matches your CID) and extract rom.zip to cook a stock rom for you
-flash custom stock rom(extracted and cooked from right RUU) on custom recovery
-fastboot flash boot c:\boot.img (flash stock kernel that's inside custom stock rom boot.img file)

RElock the bootloader (you can allways unlock)
-fastboot oem lock

Right RUU file for your CID
-put your phone on fastboot (it will not boot because you have a custom rom on a locked bootloader)
-now you can run the RUU exe file and upgrade your phone
does this look noob friendly to you??
anyways I respect u very much eddy but if this will prove helpful than ppl will be helped and if its not helpful then this thread will die..so the decision is people's..
anyways I was just being helpful where's the problem in that?
Pressing "THANKS" is EASY than saying it!!
The Following 13 Users Say Thank You to sumeshd For This Useful Post: [ Click to Expand ]
 
sdarshan10
Old
#4  
Senior Member
Thanks Meter 29
Posts: 180
Join Date: Dec 2011
Location: Ahmedabad
Ok can you please suggest from where I can get 1.29.980.11 RUU as i have searched for it google since many days but not able to find it.....
 
sumeshd
Old
#5  
sumeshd's Avatar
Senior Member
Thanks Meter 488
Posts: 1,343
Join Date: Nov 2010
Location: New Delhi
Quote:
Originally Posted by sdarshan10 View Post
Ok can you please suggest from where I can get 1.29.980.11 RUU as i have searched for it google since many days but not able to find it.....
The ruu are available only with service center or HTC..as it very dangerous flashing a ruu coz one error will get your device bricked..
@football has an inside source at HTC company itself who provides him ruu..thus only he can get it..
U can try here : http://hoxroms.serveftp.com/
Now d server seems down..
Sent from my HTC One X using Tapatalk 2
Pressing "THANKS" is EASY than saying it!!
The Following User Says Thank You to sumeshd For This Useful Post: [ Click to Expand ]
 
sumeshd
Old
#6  
sumeshd's Avatar
Senior Member
Thanks Meter 488
Posts: 1,343
Join Date: Nov 2010
Location: New Delhi
Quote:
Originally Posted by sdarshan10 View Post
Ok can you please suggest from where I can get 1.29.980.11 RUU as i have searched for it google since many days but not able to find it.....
So u have already applied ota of 1.29??

Sent from my HTC One X using Tapatalk 2
Pressing "THANKS" is EASY than saying it!!
 
sdarshan10
Old
#7  
Senior Member
Thanks Meter 29
Posts: 180
Join Date: Dec 2011
Location: Ahmedabad
Actually i bought this device from my friend recently ..i am currently running ARHD 9.3.2 rom on it but i want to get back to stock ...while flashing 1.28 ruu i came to know that my system image version is 1.29.980.11 ...........

The link you provide is not working now......is it the official link?

Quote:
Originally Posted by sumeshd View Post
So u have already applied ota of 1.29??

Sent from my HTC One X using Tapatalk 2
 
sumeshd
Old
#8  
sumeshd's Avatar
Senior Member
Thanks Meter 488
Posts: 1,343
Join Date: Nov 2010
Location: New Delhi
Quote:
Originally Posted by sdarshan10 View Post
Actually i bought this device from my friend recently ..i am currently running ARHD 9.3.2 rom on it but i want to get back to stock ...while flashing 1.28 ruu i came to know that my system image version is 1.29.980.11 ...........

The link you provide is not working now......is it the official link?
No it is another site that has some one x ruu available..try again later maybe the server is down this time and keep telling football..I haven't seen him since long maybe he is busy somewhere..and u can go to stock 1.28 if u want but hboot version will stay of 1.29..
IMO stay on latest custom Rom untill ur ruu is available..
Y do u want to go on stock??any warranty or update purpose??

Sent from my HTC One X using Tapatalk 2
Pressing "THANKS" is EASY than saying it!!
 
sdarshan10
Old
#9  
Senior Member
Thanks Meter 29
Posts: 180
Join Date: Dec 2011
Location: Ahmedabad
My battery life is not good on this ......i get battery last only for 7-8 hours on it.....also i want to get advantage of OTA to be released by htc soon.......... I was having htc desire s previously and i was able to flash older version on it but with HOX i am not able to flash it as it is S-On device.

Quote:
Originally Posted by sumeshd View Post
No it is another site that has some one x ruu available..try again later maybe the server is down this time and keep telling football..I haven't seen him since long maybe he is busy somewhere..and u can go to stock 1.28 if u want but hboot version will stay of 1.29..
IMO stay on latest custom Rom untill ur ruu is available..
Y do u want to go on stock??any warranty or update purpose??

Sent from my HTC One X using Tapatalk 2
 
sumeshd
Old
(Last edited by sumeshd; 30th August 2012 at 07:27 AM.)
#10  
sumeshd's Avatar
Senior Member
Thanks Meter 488
Posts: 1,343
Join Date: Nov 2010
Location: New Delhi
Quote:
Originally Posted by sdarshan10 View Post
My battery life is not good on this ......i get battery last only for 7-8 hours on it.....also i want to get advantage of OTA to be released by htc soon.......... I was having htc desire s previously and i was able to flash older version on it but with HOX i am not able to flash it as it is S-On device.
Well u can try one thing follow steps from thread u were previously in and cook a Rom from 1.28 ruu..
Flash it..
Flash that stock boot too..
Then flash stock recovery and lock bootloader..
Now except hboot u have stock 1.28 rom, recovery and boot..
Now get 1.29 update and follow steps here : http://forum.xda-developers.com/show...php?p=25018782
Try and see if it work..
Just suggesting..
Pressing "THANKS" is EASY than saying it!!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes