Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE][VIDEO] Moto X - Return to 100% stock (using RSD Lite OR manual flash)

OP TechSavvy2

16th September 2013, 08:06 AM   |  #1  
TechSavvy2's Avatar
OP Senior Member
Thanks Meter: 478
 
912 posts
Join Date:Joined: Sep 2011
NOTE, YES, THIS IS A LONG DRAWN OUT VERSION OF WHAT IS ACTUALLY VERY VERY QUICK PROCESS. This is for reference only. I know there are a few people out there just like me who probably had a few small hickups getting back to stock with the firmware. This is to help "spoon-feed" the instructions to you.

Two Methods-
Method 1 - RSD Lite
Method 2 - Manual Flash

If you cannot get RSD Lite to recognize your device, try Method 2, it works like a charm!

Downloads:
I assume you already have adb drivers if you're even here.....otherwise get them from the latest sdk here: http://developer.android.com/sdk/index.html
Moto Drivers (Motorola Device Manager): https://motorola-global-portal.custh...ail/a_id/88481
RSD Lite (I used version 6.1.5): https://dl.dropboxusercontent.com/u/...ite_v6.1.x.zip - Extract and use 6.1.5
Stock Firmware: http://sbf.droid-developers.org/ thanks to Skrilax_CZ and Firmware Team
Moto Fastboot exe: https://drive.google.com/file/d/0B0d...it?usp=sharing - NOTE - YOU MUST UNZIP AND USE THIS WHERE MANUAL FLASH SAYS "mfastboot"

My Setup: Windows 8 machine <--obvious driver issues as usual
My Device: VZW Moto X

METHOD 1 - RSD LITE

Step One - Download and install RSD Lite. At the moment, I can't find where I got mine from, so anyone who wants to add a proper link to it would be appreciated. I used version 6.1.5 and it worked fine.

Step Two - proper driver installation. If you're like me, you probably at one point got drivers quasi-working but here's what I did that worked - download and install "Motorola Device Manager" and it *should* give you the proper drivers. This was necessary (maybe) because I could get adb to recognize my device, as well as fastboot, however RSD refused to see it. This install fixed that.

Step Three - download and install the proper firmware for your device. NOTE: You MUST MUST MUST choose the right firmware for your device or you will FUBAR your phone.....not my responsibility.

Step Four - Unzip your firmware zip file, open it up through the layers and find the file "VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-53_CFC_1FF" or whatever version/carrier/build number file yours is, its the XML Document file. Right click -> Open with.. -> Notepad/word editor/XML Editor/wordpad and find the line:
<step operation="getvar" var="max-download-size" />
^^^You need to select this entire line and just delete it out of the file. This is the line that gives fastboot flash error. Select it, delete it, then resave the file an exit out of it. Done.
NOTE: This is required or the firmware flash will immediately fail giving a "failed flashing process. Unknown fastboot command. (getvar)"
-For the sake of security, and not messing with important files, I'd actually recommend zipping the file back up after this and keeping as your final version (once you've confirmed yours works correctly)

Step Five - Plug in phone, enable USB debugging, then "adb reboot bootloader" - this will boot you into fastboot mode so RSD will recognize your phone

Step Six - Run RSD Lite - note that some people have had trouble and have to right-click run as administrator. In RSD Lite, make sure phone shows up in slot 1 - mine shows up, under Model, just says fastboot, USB port type, info N/A, important part is that it shows as Connected in status. Select the three-dot browse file button, then you can go down into the unzipped file you created of the XML folder, and select the XML file that we just edited earlier (or select the rezipped package). Select open and flash. (or decompress and flash)

Step Eight - Profit

METHOD 2 - MANUAL FLASHING

Much easier AND don't have to deal with getting RSD Lite to work....

Note - this was done on VZW variant, and based on XML file of that particular firmware. Get these instructions from your firmware package XML file.

Note 2 - VERY IMPORTANT!!! - You MUST use mfastboot (Moto fastboot) for the system.img flash as its too large for standard Android fastboot to handle, your flash WILL fail if you use standard fastboot. Hence why it says "mfastboot" this is not a typo.


Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem config carrier vzw
fastboot oem fb_mode_clear
Last edited by TechSavvy2; 22nd December 2013 at 09:13 AM.
The Following 90 Users Say Thank You to TechSavvy2 For This Useful Post: [ View ]
16th September 2013, 01:54 PM   |  #2  
Senior Member
Thanks Meter: 73
 
294 posts
Join Date:Joined: Sep 2011
More
You forgot to mention that you need to have it charged enough or it won't flash. I think it needs a minimum 30% charge, but 50% or more is recommended.

Sent from my XT1058 using Tapatalk 2
16th September 2013, 08:59 PM   |  #3  
TechSavvy2's Avatar
OP Senior Member
Thanks Meter: 478
 
912 posts
Join Date:Joined: Sep 2011
Quote:
Originally Posted by linuxgator

You forgot to mention that you need to have it charged enough or it won't flash. I think it needs a minimum 30% charge, but 50% or more is recommended.

Sent from my XT1058 using Tapatalk 2

Noted. Will add it.

Sent from my Moto X using Tapatalk 4
The Following 2 Users Say Thank You to TechSavvy2 For This Useful Post: [ View ]
16th September 2013, 09:04 PM   |  #4  
housry23's Avatar
Senior Member
Flag Springfield, OH
Thanks Meter: 813
 
2,778 posts
Join Date:Joined: Sep 2009
More
Anyone know a way to return to stock using Linux? Can I just fastboot flash the file?
The Following User Says Thank You to housry23 For This Useful Post: [ View ]
16th September 2013, 09:55 PM   |  #5  
gunnyman's Avatar
Senior Member
Flag Greenville SC
Thanks Meter: 2,668
 
7,893 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Yes

---------- Post added at 03:55 PM ---------- Previous post was at 03:54 PM ----------

Fastboot flash recovery, boot, and system for sure I have no idea what to do with the other image Moto boot or something
The Following User Says Thank You to gunnyman For This Useful Post: [ View ]
16th September 2013, 10:14 PM   |  #6  
housry23's Avatar
Senior Member
Flag Springfield, OH
Thanks Meter: 813
 
2,778 posts
Join Date:Joined: Sep 2009
More
Quote:
Originally Posted by gunnyman

Yes

---------- Post added at 03:55 PM ---------- Previous post was at 03:54 PM ----------

Fastboot flash recovery, boot, and system for sure I have no idea what to do with the other image Moto boot or something

Thanks. I'm pretty sure I can just fastboot flash recovery and then do a factory reset and be back to 100% stock. That's what I'm going to try anyway.

Update, it worked. Just fastboot flash recovery recovery.img then factory reset and my phone is back to stock. Now to send it back to Motorola and get my new one!
Last edited by housry23; 16th September 2013 at 11:31 PM.
17th September 2013, 12:03 AM   |  #7  
gunnyman's Avatar
Senior Member
Flag Greenville SC
Thanks Meter: 2,668
 
7,893 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by housry23

Thanks. I'm pretty sure I can just fastboot flash recovery and then do a factory reset and be back to 100% stock. That's what I'm going to try anyway.

Update, it worked. Just fastboot flash recovery recovery.img then factory reset and my phone is back to stock. Now to send it back to Motorola and get my new one!

so flashing JUST recovery removes root?
17th September 2013, 01:10 AM   |  #8  
thepolishguy's Avatar
Senior Member
Flag Boron
Thanks Meter: 184
 
1,236 posts
Join Date:Joined: Dec 2009
More
Quote:
Originally Posted by gunnyman

so flashing JUST recovery removes root?

I would go ahead and...

fastboot flash system <insertfilenamehere>.img

...since it would only take a minute or two and would ensure that your system is clean.
17th September 2013, 02:51 AM   |  #9  
housry23's Avatar
Senior Member
Flag Springfield, OH
Thanks Meter: 813
 
2,778 posts
Join Date:Joined: Sep 2009
More
Quote:
Originally Posted by gunnyman

so flashing JUST recovery removes root?

I just flashed recovery, and then did a factory reset. It removed everything as far as I know.

Sent from my Nexus 4 using Tapatalk 4
17th September 2013, 02:52 AM   |  #10  
kornklown69's Avatar
Senior Member
Flag Springfield, Missouri
Thanks Meter: 757
 
2,174 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by housry23

Thanks. I'm pretty sure I can just fastboot flash recovery and then do a factory reset and be back to 100% stock. That's what I'm going to try anyway.

Update, it worked. Just fastboot flash recovery recovery.img then factory reset and my phone is back to stock. Now to send it back to Motorola and get my new one!

Nvm

Sent from my XT1058 using XDA Premium 4 mobile app
Last edited by kornklown69; 17th September 2013 at 05:33 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes