Returning to Stock from CM 13

Neel.I

Senior Member
Jul 5, 2012
157
56
0
Boston
d0rkvader.blogspot.in
Hi guys,

I am planning to return to Stock 5.1 on my phone, after running CM 13.

So I upgraded from 4.4 to 5.1 my manually flashing the zip in recover.(XT1053_GHOST_TMO-RETAIL_5.1_LPA23.12-15.5_cid9_CFC.xml.zip would be the file from https://firmware.center/firmware/Motorola/Moto X (1st gen-2013)/Stock/XT1053 T-Mobile/)
From there I moved on to CM 12 and then CM 13.
Device version is XT1053.

Been facing issues with bluetooth devices and planning to get back to stock 5.1

So I tried manually(mfastboot) flashing components (boot, recovery and system). Boot and recovery went fine, but system gave me(similar) error.

load_file: could not allocate 829072920 bytes
error: cannot load 'system.img': Not enough space

Referred to this tutorial, http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
and tried the manually method wherein I ran these 2 commands :

fastboot oem fb_mode_set
fastboot flash partition gpt.bin

Threw some error(forgot to note them down) :|

Anyway, nothing work post that.
Tried rebooting, got the "no command" screen.

Eventually flashed TWRP and installed CM13 again from zip and got the phone booted up.
Running fine, but still can't to get back to stock!

Tried RSDLite method from the tutorial above, but RSD doesn't detect my phone on connecting.
adb devices command does list the phone.

Can someone please point me in the right direction ?

btw, noticed something weird after failed partition flash.
Whenever I mfastboot recovery/boot it throws an error unknown command 'recovery' (or boot), but flashes fine.
Is this normal ?

Regards,
Neel Indap
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone