[GUIDE/FAQ][XT1052] How To Downgrade From 5.1 to 4.4.4 and below [TESTED]

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
Hello,
This is a short (hopefully) guide on how to downgrade your Moto X 2013 from Android 5.1 to 4.4.4 (and lower).
The procedure is fairly simple and takes about 10-15 minutes, once you get the files you need.It does however needs some technical understanding of how to use fastboot, command prompt and eventually unlocking your bootloader.Fairly strong reading skills recommended.
WIth that said, make sure you read thorough and even few times before you take any actions.

This method has now been proven to be working by multiple people, on many different versions of Moto X 2013, including GPE

Disclaimer
Although this procedure has been tested by me and some friends numerous times, it still has some risk involved.You MUST be aware of the potential risks of modifying your phone software and performing actions that may lead to complete defunct of your device.
As you may expect I will not take any responsibility or be accountable for any damage or loss you may incur by following this guide.

Performing a system downgrade WILL void your warranty and it is NOT supported by Motorola/Lenovo or their service network.

I also recommend you read This post by KidJoe about the potential risks that downgrade might involve.
This guide has came up being needed as many people were afraid to downgrade after reading the post of KidJoe and I don't blame them, it is possible something to go wrong and you end up with non-working device.
HOWEVER, this has been tested on more than 10 separate Moto X 2013 and more than 12 times on my own device, which makes me to believe that it's generally safe.

Prerequisites
You need your bootloader unlocked.Motorola and their bootloader does NOT support downgrading and it will spit errors in fastboot.

WHEN YOU UNLOCK YOUR BOOTLOADER ALL YOUR PERSONAL DATA ON YOUR DEVICE WILL BE LOST.MAKE SURE YOU BACKUP YOUR FILES AND THEN PROCEED.

You can find how to unlock your bootloader HERE or just use the search here in the forums, plenty of info on that matter.

If you cannot or don't want to unlock your bootloader, then you CANNOT downgrade.

Files Needed
For this tutorial we`ll do downgrade from 5.1 to 4.4.4.This is the safest downgrade and it will be successful if you follow all the steps w/o any skipping.
The Android image used is for XT1052, but if you got different model, you can find the image for your own model and use that instead.

1.First you need a signed image of Android 4.4.4 for Moto X 2013.You can find one Filefactory or RetailEU here <=> RetailGB here <=> RetailDE here

If you want to download the image faster, use the Yandex-hosted images, FileFactory is slow.

2.Motorola Device Drivers: You can find them Here

3.Motorola Fastboot and generic adb/fastboot tools package: You can find it attached to this post or click Here

Flashing your device

0.Charge your device's battery to at least 35%.

1.Extract the archive with the signed images somewhere (in this case I`ll use C:\temp , but you can use any drive or directory if you so desire).

2.Extract the android-tools archive in the same directory.You should have boot.img, recovery.img, system.img and mfastboot in same directory.

3.Reboot your device in bootloader (Power your device off -> Hold Volume Down and Press Power button -> then release).

!!THIS WILL DELETE YOUR USER FILES EVEN IF YOU HAVE YOUR BOOTLOADER ALREADY UNLOCKED!!!

4.Open a command prompt and navigate to C:\temp and execute the following commands:

Code:
mfastboot erase cache 
mfastboot erase userdata 
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot erase userdata

mfastboot reboot

DO NOT skip erasing the userdata, doing so , you'll most likely end up with soft brick.Just don't do it.

Result
Congratz, now you have successfully downgraded your device to Android 4.4.4
The device will take some time the first boot to create dalvik cache and some other stuff, but it should not take more than 5 minutes.

When your device boots, it will ask you at some point to downgrade the motorola services bla bla, agree to that, your device will reboot and it will tell you that the downgrade was successful.I did this more than 10 times, seems to be totally safe.

Any feedback will be appreciated, you may ask questions, but don't expect me to answer to every single one.

If I missed something, I'll add up/fix as soon as I can.
 

Attachments

Last edited:

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
FAQ

What if I want to downgrade to Android 4.4.2 / 4.3 / 4.2.2 ?

This is possible, the procedure is the same as listed above.You just have to know that if you do such downgrade, you should never update via OTA update, at any cost.This will corrupt the bootloader of your device and you won't be able to restore it.If you downgrade to anything below 4.4.4 and you want at some point to upgrade, you should do it ONLY by official signed image and NOT OTA.

You've been warned.

I can't find the exact same firmware that my device runs, eg. AsiaRetail.Is it possible to use firmware image from a different region/operator?

While it's recommended to use your exact firmware image, it is not necessary. You can use an image from other region, but you should follow some simple rule. Try to stick to the same phone model, eg XT1052 firmware.

I updated via OTA but I've recently rooted and installed a custom rom. Is it necessary to go back to stock 5.1 to downgrade?

No need, as long as your custom rom/kernel didn't mess with the fs of the partitions.

Why is this flashing procedure cut down, omg there are other commands that I've read in other guides and they say that I must flash modem, fsg, delete some magical modem states, why you didn't include these?!?

While it is true that other guides suggest you flash modem, fsg and some other things, these are mainly driven from the Motorola's own procedure xml file, flashing these is not necessary at all, this is used to repair eventual errors in these parts, but usually there is no problem there at all.
Another thing is that these parts are cross-compatible and leaving them as they are is perfectly fine.

How do I go back to 5.1 stock?


1.Do NOT update by OTA, just to be on the safe side.

2. Use the same procedure as described, but with image of 5.1 instead.

How do I disable the OTA notifications?

1. If you're rooted, then just delete or revoke permissions of /system/priv-app/3c_ota.apk

2. If you're not rooted, then don't install the Motorola Update Services from the Play Store. If you already updated them, then just uninstall the update and that's all.

I'm getting "Not enough space" errors, when I try to flash the system.img.I'm using mfastboot, but still the same problem?!?

Use this and it will work:

mfastboot flash system system.img -P
 
Last edited:
  • Like
Reactions: Bhargav4591

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
What if I have a custom recovery? Sorry I'm new to this stuff. Which mode do you enter before entering the commands in cmd prompt?
Having custom recovery doesn't affect anything. This process will flash the stock recovery.

You don't need to enter any mode in the list, just leave the phone in the bootloader menu.
 
Last edited:

SanD-82

Senior Member
Nov 10, 2013
116
6
0
Hello.

I just might use this method to downlograde from 5.1 to 4.4.4...
I have the always mobile radio active bug while being connected to wifi, so my stand by time with wifi is just awful.

Thanks.
 

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
Hello.

I just might use this method to downlograde from 5.1 to 4.4.4...
I have the always mobile radio active bug while being connected to wifi, so my stand by time with wifi is just awful.

Thanks.
I had the same issue, wifi would never go sleep. RAM management is horrific and the YouTube app was causing some troubles with the sound module, at some point the sound was totally not working.
 
  • Like
Reactions: ccrider0909

SanD-82

Senior Member
Nov 10, 2013
116
6
0
I had the same issue, wifi would never go sleep. RAM management is horrific and the YouTube app was causing some troubles with the sound module, at some point the sound was totally not working.
Actually, that's not what's happening to me... Wifi is active only when connected to a network...
Now, what you are saying is that your wifi is always on?
Did you check in the advanced wifi properties the status of the 'always on' setting?... Because if you configured the location settings to use WiFi, then WiFi will be always on, even when you manually turn it off...

So, make sure you do not have that turned on...

Enviado desde mi XT1058
 

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
Actually, that's not what's happening to me... Wifi is active only when connected to a network...
Now, what you are saying is that your wifi is always on?
Did you check in the advanced wifi properties the status of the 'always on' setting?... Because if you configured the location settings to use WiFi, then WiFi will be always on, even when you manually turn it off...

So, make sure you do not have that turned on...

Enviado desde mi XT1058
That's not the case either, it was set to never keep it on during sleep and scaning always available was not allowed.The wifi just wont go off durring sleep and that's it.Tried all possible settings to no avail.Actually wifi was the 2nd highest battery consumer in the stats after the screen.This problem does not exist in 4.4.4.
 
  • Like
Reactions: ccrider0909

SanD-82

Senior Member
Nov 10, 2013
116
6
0
I see...
It's actually hard to see how in 2015, Android keeps having these deal breaker issues...
I somehow feel that the best version of my xt1058 was when it was at 4.2.2... After the subsequent updates, bugs started to appear, and on 5.1 i got the first big issue...

Sent from my XT1058
 

SanD-82

Senior Member
Nov 10, 2013
116
6
0
What would i have to be aware of in the future if i do this?
Of course, no OTA install for 5.1...
Before making any 'stock upgrade' or something **** that, i would have to flash the 5.1 full firm right?

Sent from my XT1058
 

liveroy

Senior Member
Jun 8, 2007
588
187
63
/dev/null
www.gear-bg.com
What would i have to be aware of in the future if i do this?
Of course, no OTA install for 5.1...
Before making any 'stock upgrade' or something **** that, i would have to flash the 5.1 full firm right?

Sent from my XT1058
Basically if you are on 4.4.4, shouldn't be any problem to update back to 5.1 even via OTA.But since the images for 5.1 are available, I wouldn't suggest OTA update anyway.

For future updates, when Android M is out for example, just update to 5.1 using fastboot, then update through the OTA.

Other than that, there are no other potential problems that might arise, at least nothing that I can think of.
 
Last edited:

visheshjotshi

Member
Apr 11, 2012
6
0
0
IS Android 4.4.2 or 4.2.2 files avalable for indian moto x (xt1052 asian retail)

Basically if you are on 4.4.4, shouldn't be any problem to update back to 5.1 even via OTA.But since the images for 5.1 are available, I wouldn't suggest OTA update anyway.

For future updates, when Android M is out for example, just update to 5.1 using fastboot, then update through the OTA.

Other than that, there are no other potential problems that might arise, at least nothing that I can think of.



WHere can i find those files??
 

visheshjotshi

Member
Apr 11, 2012
6
0
0
Cant find files

File factory doesnt have files for asian retail other than android 4.4.4 file can i find it any where else?????
How many people frm india have sucessfully downgraded thier phones??
 

whisper13

Senior Member
May 25, 2012
610
168
0
Quezon City
Thank you for this information. I dont have the wifi bug. But i have the mobile data bug. (Even turning it off it still continues to sap battery)

Sent from my XT1052 using XDA Free mobile app
 

Célula

Member
May 23, 2012
44
17
0
Temuco
I was looking for a post like this becouse my WiFi doesn't work on XT1058 5.1... i thought was a Lollipop related issue so wanted to downgrade to 4.4.4 and see if the problem really was related to android version, but it isn't. I downgraded successfully from 5.1 to 4.4.4 with your tutorial, but the WiFi problem persist. Now i know i'm really screwed up becouse i tried i believe everything possible... airplane mode, factory reset, cache wipe, full wipe, custom rom, custom kernel, android 5.1, android 4.4.4, different AP's and routers, delete supplicant conf... So i don't know what to do. Te specific problem is that WiFi can see available networks, but randomly some of them disappear and others show up, and when i try to connect por ex to my home network, it says "connecting" and then "saved", with all networks happens the same. Does anyone has a clue? BTW, thanks for your post!
 
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