FORUMS
Remove All Ads from XDA

 View Poll Results: Do you want a batch file for all the commands?

Yes
 
85 Vote(s)
80.19%
No
 
21 Vote(s)
19.81%

[updated] THE ULTIMATE GUIDE TO FLASH GPE LOLLIPOP 5.1 on XT1032/33/34 WITH ROOT

513 posts
Thanks Meter: 266
 
By pfufle, Senior Member on 11th December 2014, 02:22 PM
Post Reply Email Thread
Okay, so there has been a lot of confusion an ambiguity on how to successfully install the GPE lollipop update on the Moto G. The reason I am starting this guide is because I faced a lot of trouble myself trying to get this update and get stuff working.

DIFFICULTY LEVEL: EASY (NOOB FREINDLY )

WARNING:
I HAVE TESTED THIS FULL PROCEDURE MYSELF. BUT I SHALL NOT BE HELD RESPONSIBLE FOR ANY PROBLEMS THAT MIGHT OCCUR BY USING THIS PROCEDURE, THOUGH I SHALL TRY MY BEST TO SOLVE THEM IF YOU FACE ANY. DUAL SIM USERS, ONLY SINGLE SIM WORKS BECAUSE IT IS A GPE FIRMWARE AND THERE IS NO WORKAROUND FOR IT. THIS PROCEDURE DOES NOT WORK WITH XT1031 (confirmed by @goldeneagle1972 )

THIS PROCEDURE WILL WIPE ALL YOUR DATA ON THE PHONE. SO TAKE A BACKUP.

EXISTING GPE 5.0.1/2 USERS, FLASH THE ORIGINAL GPE MODEMS FIRST AND MAKE SURE YOUR SYSTEM ISN'T MODIFIED. (eg: rooted ). THEN DIRECTLY GO TO STEP 5.

THE REST OF YOU, FLASH THE 5.1 GPE FIRMWARE [HERE] FOLLOWING INSTRUCTIONS IN STEP 2.2 AND THEN GO DIRECTLY TO STEP 6

PREREQUISITES:
You will need an unlocked boot loader. If you have not already unlocked it, refer to [this]


STEP 1:
Download the 4.4.4 GPE XT1032 FIRMWARE from [here] [mirror]

Download mfastbootv2 from [here]
Download the minimal sdk from [here]
Download and install adb drivers from [here]


Download the batch files for all the commands from [here]. (OBSOLETE)

Download the batch files for flashing 5.1 firmware and fixing network from [here]
Download Motorola drivers from [here]
Reboot system after installing drivers.
Download THE 5.1 GPE FIRMWARE [HERE] FOLLOWING INSTRUCTIONS IN STEP 2.2 AND THEN GO DIRECTLY TO STEP 6
Extract the GPE firmware archive, batchfiles archive and mFastbootv2 archive to the Minimal ADB and Fastboot folder (or your folder containing the platform-tools)


Download OTA update from [here]. Rename it to "ota".

Copy this archive to the same folder mention above (do not extract this archive).


STEP 2:
Boot into fastboot (POWER+VOLUME DOWN) and connect phone to PC


If you are starting from scratch, skip 2.1 ) and go to 2.2 )

2.1 ) If you have already made a failed attempt to OTA, or have previously flashed the Brazilian OTA, then flash the GPE 4.4.4 firmware follow this step. SHIFT + RIGHT click in the folder where you have extracted everything and choose open command window here. Then double-click on "Step 2_1.bat" or type the following commands one by one.
Code:
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
You will not get network now but do not flash the modems of the firmware you use now because you will get a status 7 error when flashing the OTA. You will now be dumped at the welcome screen. Do not enter any details, just power off and boot into recovery via fastboot. Skip step 2.2)

YOU WILL GET SOME ERRORS LIKE HAB CHECK FAILED. JUST IGNORE AND PROCEED.

2.2 ) For those who haven't attempted the OTA or are not on the Brazilian Firmware, use the following method to flash the 4.4.4 GPE firmware. SHIFT + RIGHT click in the folder where you have extracted everything and choose open command window here. Then double-click on "Step 2_2.bat" or type the following commands one by one. (Thank you @jmonster141 for pointing out my silly error).
Code:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1 
mfastboot erase modemst2 
mfastboot flash fsg fsg.mbn
mfastboot erase cache 
mfastboot erase userdata 
mfastboot reboot
You will not get network now but do not flash the modems of the firmware you use now because you will get a status 7 error when flashing the OTA. You will now be dumped at the welcome screen. Do not enter any details, just power off and boot into recovery via fastboot.

IT SEEMS THAT SOME 4.4.4 FIRMWARE HAVE NEWER PARTITION TABLES THAN GPE 4.4.4, SO THE GPT.BIN WILL FAIL TO FLASH. JUST SKIP IT AND YOU'L BE FINE (confirmed by @SickBeast ) or TAKE A LOOK AT [THIS] (thank you @t4n017 ).

AFTER ERASING USERDATA AND REBOOTING, YOUR PHONE MIGHT BOOT DIRECTLY INTO FASTBOOT AND IT WILL SAY "UTAG FLASHFAIL CONFIGURED AS FASTBOOT. JUST REFLASH THE BOOTLOADER TO FIX
Code:
mfastboot flash motoboot motoboot.img
(thank you @t4n017 again )

YOU WILL GET SOME ERRORS LIKE HAB CHECK FAILED. JUST IGNORE AND PROCEED.


STEP 3:
Now we shall flash the OTA. Boot into recovery. You shall see a weird android logo with an exclamation mark. AFTER THAT HOLD VOL+ FOR 15 SECONDS, THEN TAP POWER BUTTON (KEEP HOLDING THE VOL+ BUTTON) (thank you @thestory101) and choose apply update from adb in the recovery. Then double-click on "Step 3.bat" or type the following command:
Code:
adb sideload ota.zip
OR just OTA from Settings>About phone>System updates (confirmed by @t4n017) though i would yet recommend using the former procedure.



STEP 4:
Once it has finished, select reboot system now from the recovery. DO NOT WIPE YOUR CACHE. YOU WILL BE STUCK AT THE GOOGLE BOOT LOGO SCREEN FOR AROUND 10-20 SECONDS. JUST BE PATIENT. If you are stuck for more than 20 seconds, just flash [this].

STEP 5:
Now check your phone for and update and you shall get an update notification for 5.1 lollipop. Follow onscreen procedures and complete the update.

STEP 6:
SKIP THIS if you have EUROPEAN XT1032.
Download XT1033 modems [here] if you have the Asian Moto G. THESE MODEMS APPARENTLY DON'T WORK. LOOK AT POST NO. 593 FOR FIX.
Download XT1034 modems [here] if you have the Canadian Moto G
Download XT1032 US GSM modems [here] if you have the us version (thank you @jmonster141)

I HAVE GIVEN LINKS TO ALL THE MODEMS OF THE COMMON VARIANTS OF THE MOTO G. IF YOU HAVE A DIFFERENT VARIANT, DOWNLOAD YOUR RESPECTIVE FIRMWARE, COPY THE "NON-HLOS.bin" and "fsg.bin" FROM YOUR ORIGINAL FIRMWARE TO THE FOLDER WHERE YOU HAVE THE SDK, mFastboot, GPE FIRMWARE AND OTA AFTER STEP 3 AND FOLLOW STEP 5 TO GET NETWORK. IT IS EXTREMELY TIME CONSUMING FOR ME TO HUNT DOWN MODEMS FOR ALL THE NUMEROUS VARIANTS AND LINK THEM IN THE OP (IM KINDA BUSY WITH MY STUDIES RIGHT NOW) SO PLEASE TAKE THE PAIN TO DO SO YOURSELF. ALSO, LINK THE MODEMS YOU USED,TO GET NETWORK, IN THE THREAD SO I CAN ADD IT TO THE OP AND HELP THE REST. (That's how the amazing XDA community works right ?! )

Quote:
Originally Posted by BryanByteZ

Link for Stock Roms to extract modem files:
[here]
(All Moto G Variants)

Quote:
Originally Posted by hacorn96

I'll just drop this here:
http://forum.xda-developers.com/show....php?t=2649763
All variants/regions kernel/recovery/radio files...

We shall now flash the modems. You will be put at the welcome screen after a few minutes. Power off, boot into fastboot. Then double-click on "Step 5.bat" or type the following command:
Code:
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot reboot
You shall now be running 5.1 GPE !

Quote:
Originally Posted by voilamos

For anyone having difficulties with their network on an XT1033 , try using network fix.bat from here :

http://forum.xda-developers.com/moto...gpe-5-t2969472

ROOT: (OPTIONAL)
Download the latest superSU flashable zip from [here] and copy-paste it into to your phone.

Download the latest TWRP recovery image from [here]. Copy the image to the folder where you have adb and fastboot. Rename the image to "recovery". Open a command prompt in the folder containing this recovery (press shift + right-click, choose open command window here). Boot your phone into fastboot mode and execute the following code:
Code:
fastboot flash recovery recovery.img
Ignore the partition mismatch error.

Use your volume rockers to boot into the recovery. Go to install zip, and choose the SuperSU zip and flash it.

Reboot into rooted 5.1 GPE.

TO FIX THE LAGGY ANIMATIONS IN GOOGLE NOW LAUNCHER, SEE [THIS] POST.

Quote:
Originally Posted by nishantjian4u

- MOST IMPORTANT: please read and follow the steps as if your life depends on it. If you have any doubts, read the whole thread. I confirmed the steps with some other google searches wherever I thought I am confused. Luckily for me, if worked like a breeze for me the first time. Read all the messages on the command prompt / terminal on your computer and the information displayed on your phone while you are flashing all sorts of stuff. There are certain important information that you will on this displays. BE PATIENT

CREDITS TO ALL PEOPLE WHO HAVE CONTRIBUTED TO THE AMAZING MOTO G XDA COMMUNITY.
The Following 107 Users Say Thank You to pfufle For This Useful Post: [ View ] Gift pfufle Ad-Free
 
 
11th December 2014, 02:29 PM |#2  
deej_roamer's Avatar
Senior Member
Thanks Meter: 643
 
More
Quote:
Originally Posted by pfufle

Okay, so there has been a lot of confusion an ambiguity on how to successfully install the GPE lollipop update on the XT1033. The reason i am starting this guide is because I faced a lot of trouble myself trying to get this update and had to scavenge through multiple threads to get stuff working. I had flashed the update on my Moto G XT1033 converted to GPE using the mixed firmware by @deej_roamer [using this tutorial], OTAed to 4.4.4 and flashed the OTA manually using ADB. I was stuck at the bootlogo following this. This was because of the firmware being modified this interfering with the OTA. Since i was now stuck with the new 41.18 bootloader and the partition table (gpt.bin) of the OTA, i could not flash the XT1033 firmware. So this is what I did:

That's a nice way to convert I didn't think it could be done this way.... Cool bro
The Following 4 Users Say Thank You to deej_roamer For This Useful Post: [ View ] Gift deej_roamer Ad-Free
11th December 2014, 03:23 PM |#3  
Senior Member
Flag Makati/Doha
Thanks Meter: 20
 
More
dual sim will work with this method right?

can you give feedback, is it stable enough to be used daily? have you encountered any bugs or features that doest work? force close?

im thinking jumping to 5.01 but need some idea of how stable it is as i dont have a spare phone at the moment if it fail or got bricked
The Following User Says Thank You to abendroidx For This Useful Post: [ View ] Gift abendroidx Ad-Free
11th December 2014, 03:53 PM |#4  
Senior Member
Flag Lahore
Thanks Meter: 40
 
More
thankyou !!!
The Following User Says Thank You to talhadabest For This Useful Post: [ View ] Gift talhadabest Ad-Free
11th December 2014, 03:59 PM |#5  
Member
Thanks Meter: 4
 
More
No Network
Hey

I still don't see any network on my phone.


This is after I flashed the modem files


Any fix ? Thanks
11th December 2014, 04:02 PM |#6  
k-kuchen's Avatar
Senior Member
Thanks Meter: 145
 
More
For me GPE 4.4.4 doesn't boot anymore, because of the new bootloader I assume. GPE 5.0.1 also didn't boot. Only Motorola Firmware booted successfully. Do you know what I can do about that?
11th December 2014, 04:09 PM |#7  
Junior Member
Thanks Meter: 2
 
More
This works whit the xt1034 ?
11th December 2014, 04:24 PM |#8  
pfufle's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 266
 
More
Quote:
Originally Posted by aben.dc

dual sim will work with this method right?

can you give feedback, is it stable enough to be used daily? have you encountered any bugs or features that doest work? force close?

im thinking jumping to 5.01 but need some idea of how stable it is as i dont have a spare phone at the moment if it fail or got bricked

The build is epic! Flash it right away if you dont need dual sim.

Quote:
Originally Posted by voilamos

Hey

I still don't see any network on my phone.


This is after I flashed the modem files


Any fix ? Thanks

I am really sorry but i missed an important step in the OP (i realised it right away but my mom wouldnt allow me to touch my PC before i finished my homework :| )

Once you flash GPE 4.4.4 with the original modems, flash the OTA and after that reboot to bootloader and AFTER that flash the modems of the phone model you have. When you boot into lollipop it will say that it will take around 5 minutes to find network and wait patiently until it is done.

Quote:
Originally Posted by k-kuchen

For me GPE 4.4.4 doesn't boot anymore, because of the new bootloader I assume. GPE 5.0.1 also didn't boot. Only Motorola Firmware booted successfully. Do you know what I can do about that?

Make sure you follow step 2.1. And make sure you used thw links i provided in the OP. GPE 4.4.4 boots just fine for the rest of us. (Sans the screen flickering which is fixed after a screen unlock)
The Following 4 Users Say Thank You to pfufle For This Useful Post: [ View ] Gift pfufle Ad-Free
11th December 2014, 04:27 PM |#9  
Member
Thanks Meter: 9
 
More
Hi,

I'm stuck on step 3 (can't adb sideload the ota). I can't boot to recovery - just a picture of android with the ! (red) sign.

GPE 4.4.4 is working just fine (with network too).

Thank you!
11th December 2014, 04:27 PM |#10  
pfufle's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 266
 
More
Quote:
Originally Posted by acid032

This works whit the xt1034 ?

Assuming that it is the brazilian version, yes it should work.
The Following 2 Users Say Thank You to pfufle For This Useful Post: [ View ] Gift pfufle Ad-Free
11th December 2014, 04:32 PM |#11  
pfufle's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 266
 
More
Quote:
Originally Posted by Metalingus903

Hi,

I'm stuck on step 3 (can't adb sideload the ota). I can't boot to recovery - just a picture of android with the ! (red) sign.

GPE 4.4.4 is working just fine (with network too).

Thank you!

I for got to mention in the OP, you are supposed to press volume up and power button simultaneously when that logo comes for 7 seconds and then release it.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes