[GUIDE] [Maxx XT1225] Install Lollipop OTA if you have Rooted - no Wipe necessary

respider

Senior Member
Sep 18, 2008
700
235
0
Sao Paulo
as always I'm not responsible for any damage in your device (or lost files)
Always backup everything first - nandroid and titanium.


TL;DR for more experienced users: flash stock boot, stock recovery and stock system images (system via mfastboot since its chunks) and then install OTA zip file in the stock recovery (via sd or sideload)

If you have rooted your Moto Maxx and are trying to install the OTA for Lollipop, you are probably getting errors due to modifications on you system.

Simply removing SuperSU doesnt work, you have to restore your system to stock.

If you received the OTA notification, download it and don't install.

0- After downloading, grab the zip file from /cache/ and save it on your computer.
Filename will be something like Blur_Version.XX.XX.XX.quark_retbr.retbr.en.BR.zip

1- Download brazilian retbr full 4.4.4 firmware from here
http://forum.xda-developers.com/dro...tbrxt12254-4-4kxg21-50-9cid12subsidy-t2992444

Decompress it and you should see these files:

system.img_sparsechunk.0
system.img_sparsechunk.1
system.img_sparsechunk.2
system.img_sparsechunk.3
system.img_sparsechunk.4
recovery.img
boot.img

2- Download mfastboot (google it) (I used both regular fastboot and mfastboot)


3- Decompress mfastboot and put all files in the decompressed folder above

All files should be in the same folder: mfastboot.exe, boot.img, recovery.img and all system sparsechunks.
Of course they can be in different folders if you know how to use paths in command :p

4- Unroot

Go to SuperSU app -> configurations -> uninstall root

I recommend uninstalling xposed, busybox etc (I didnt have those, not sure if they will mess with something)

5- Put your phone in bootloader mode

adb reboot bootloader

5- Flash stock kernel, recovery using regular fastboot:

fastboot flash recovery recovery.img
fastboot flash boot boot.img

6- flash stock system to fix install-recovery.sh bug/validation, using mfastboot:

Flashing stock boot and recovery was not enough for me. I was getting an error saying /system/etc/install-recovery.sh has unexpected contents.

To solve this, I flashed the stock system image by using mfastboot:

mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash system system.img_sparsechunk.3
mfastboot.exe flash system system.img_sparsechunk.4

Code:
C:\mfastboot.exe flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (259107 KB)...
OKAY [  8.130s]
writing 'system'...
OKAY [  4.122s]
finished. total time: 12.259s

C:\mfastboot.exe flash system system.img_sparsechunk.1
target max-sparse-size: 256MB
sending 'system' (254153 KB)...
OKAY [  7.958s]
writing 'system'...
OKAY [  3.282s]
finished. total time: 11.250s

C:\mfastboot.exe flash system system.img_sparsechunk.2
target max-sparse-size: 256MB
sending 'system' (262141 KB)...
OKAY [  8.208s]
writing 'system'...
OKAY [  3.719s]
finished. total time: 11.937s

C:\mfastboot.exe flash system system.img_sparsechunk.3
target max-sparse-size: 256MB
sending 'system' (262142 KB)...
OKAY [  8.207s]
writing 'system'...
OKAY [  3.880s]
finished. total time: 12.098s

C:\mfastboot.exe flash system system.img_sparsechunk.4
target max-sparse-size: 256MB
sending 'system' (144756 KB)...
OKAY [  4.533s]
writing 'system'...
OKAY [  2.330s]
finished. total time: 6.871s
After this your system is back to stock.

All you have to do now is enter in stock recovery, go to "install zip from adb" and sideload the zip you saved in step 0.

1.2- Reboot your phone to stock recovery

You should see a broken android laying on the floor

in this screen, press Power+VOL UP together and hold for like 2 seconds and release.
A menu should appear. If it doesnt, try again many times - it can be tricky

2.2- Select install zip from ADB or something like that

Now you should be able to see your device in your computer via adb devices command

You should see your device ID and a sideload string when you type this. If you dont, you have incorrect drivers

3.2- Sideload the OTA zip file

In your command prompt find the OTA file you saved in step 0 and then
adb sideload filename.zip, exemple:

adb sideload Blur_Version.XX.XX.X.quark_retbr.retbr.en.BR.zip

If everything goes ok, just wait and relax, if could take a while for the first boot.
Phone will hang on a blank screen with motorola Logo for a while. Dont panic.

Obviously you will lose root by doing this.
 
Last edited:

flowserver

Senior Member
Oct 9, 2010
225
13
0
matamoros
I have stock recovery, only I have root, with a simply factory reset I can erase root?
Can I leave boot loader unlocked? Or I need lock the boot loader?

Sent from my XT1225 using XDA Free mobile app
 

respider

Senior Member
Sep 18, 2008
700
235
0
Sao Paulo
I have stock recovery, only I have root, with a simply factory reset I can erase root?
Can I leave boot loader unlocked? Or I need lock the boot loader?

Sent from my XT1225 using XDA Free mobile app
you dont need to relock your bootloader

I havent tried to just factory reset, but I saw people trying just this without succcess, because seems like super su modifies some files and after uninstalling supersu they're not the same anymore, so when you try to install the OTA you will get an error since validation for file md5/sha will fail
 

Gundabolu SC

Senior Member
Sep 9, 2013
491
309
0
you dont need to relock your bootloader

I havent tried to just factory reset, but I saw people trying just this without succcess, because seems like super su modifies some files and after uninstalling supersu they're not the same anymore, so when you try to install the OTA you will get an error since validation for file md5/sha will fail
Does anyone have the OTA yet? Or is this just prep for the future?
 

Quetzalfp

Member
May 4, 2012
42
5
0
Mexico Maxx

Great tutorial, maybe a dumb question, the BR image file works the same on the MX Maxx? Or do I need to download the mexican retail image?

Thanks!
 

Quetzalfp

Member
May 4, 2012
42
5
0
I think should works fine, but motorola said mexican already have soak too so.
Thanks, I know that is coming to Mexico too, but from the tutorial says that we need some files from the brazillian image to return to pure stock before the update, this files works for the mexican devices or I need to download the MX image?
 

respider

Senior Member
Sep 18, 2008
700
235
0
Sao Paulo
Thanks, I know that is coming to Mexico too, but from the tutorial says that we need some files from the brazillian image to return to pure stock before the update, this files works for the mexican devices or I need to download the MX image?
probably you just need to replace with mexican images
I'm not sure if recovery/boot/system are all the same, but if you use everything from mexico you should be fine
 
  • Like
Reactions: Quetzalfp

Atrix_Lover

Member
Jan 16, 2012
41
11
0
Boca Raton
I have 2 questions sorry for my ignorance.

1 is there a link to download the other zip?

2 is this update compatible with the xt1225 Puerto Rico version?

Sent from my XT1225 using XDA Free mobile app