How to flash stock ROM in XT1040? - Moto G Q&A, Help & Troubleshooting

Hi, I've read many guides on how to flash stock roms and stuff, but I'm still not sure how to do it in my case.
I bought an XT1040 from a guy and it came with bootloader unlocked and Lollipop 5.0.2 (CM 12-20150126-NIGHTLY-peregrine)
I wanted to install the stock LP rom, but then I found an optimized version on this thread: http://forum.xda-developers.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816 I think that would be better, but the problem is I'm following this guide to install a stock rom: http://forum.xda-developers.com/showthread.php?t=2542219 but it says you have to flash every file, one by one, yet this .zip I downloaded (Retail Latin America 5.1 ROM (Optimized) v1.0a (331mb)) only has a "boot.img" and some folders named "supersu", "system" and "META-INF". Does that mean I have to flash the whole ZIP in the recovery? (oh and btw I installed TWRP v2.8.7 [recoverytwrp2-8-7encryption.img] using adb, I didn't wipe the other recovery with "fastboot erase recovery" because this had CWM already installed... is that okay?)
What should I do?
In short:
I have a bootloader unlocked phone with Lollipop 5.0.2 (CM 12-20150126-NIGHTLY-peregrine) and CWM
I flashed TWRP v2.8.7 without wiping recovery (at least I think that's what "fastboot erase recovery" does)
I want to flash a stock rom (optimized) with LP 5.1 from here http://forum.xda-developers.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816 (Retail Latin America 5.1 ROM (Optimized) v1.0a (331mb)) but I'm not sure what to do.
Thanks.
_______________________________________
I just decided to do what the guide said:
1) Boot into latest TWRP and Format Data (Wipe > Format DATA > Yes) - This step is essential, and will wipe Internal Storage (Downloads, Music, Photos etc, **backup important files**)
2) Transfer ROM to SDCARD or Internal Storage. This may be done in Windows via MTP, or using adb sideload or adb push ROM.zip /sdcard/
3) TWRP > Wipe > Factory reset and flash ROM.
4) Reboot.
5) Call / WiFi issues can be solved by flashing 5.1 Radio Firmware (Below) for your Model.
now I'm in the step 3, trying to flash the ROM but the bar doesn't fill at all...
_________________________________________
Lol that was me panicking, the device managed to flash the ROM and it's working now, I also flashed the radio firmware so I have working WiFi, but the screen flickering keeps happening each time I reboot the device.
I'll probably want to downgrade in the future... any tip on that would be appreciated.

You don't need to use Fastboot other than when changing TWRP version. Simply flash the Optimized Stock ROM (or any custom ROM) via TWRP. Screen flickering is caused by not having updated your Bootloader - this utility will do that for you: Bootloader Upgrader Tool.
I highly recommend you try the following optimized Stock Marshmallow ROM: (It's faster than Lollipop)
[ROM][PEREGRINE][6.0][STOCK] Identity Crisis 6 LTE v1.3b​

Related

[Q] Need info about moving through firmwares

This is what i did so far: (xt1032)
1 Converted STOCK KK 4.4.4 RETAILARGENTINA to GPE Lollipop 5.0.1 following this guide: http://forum.xda-developers.com/moto-g/general/guide-convert-brazilian-firmware-gpe-5-t2969472. Also the bat named "BRAZILIAN 5 TO 4.4.4 GPE.BAT" Flashes the KK GPE firmware without moto boot and partition gpt and "ANY FIRMWARE TO 4.4.4 GPE.BAT"flashes the KK GPE with those files.
2 Encrypted device.
3 Somehow i ended up deleting stock keyboard, replaced by playstore one, but i could not put the unlock password for encryption when booting.
4 So i adb pushed a custom recovery and a rom.
4 When trying to flash the lastest CM12 Nightly using this TWRP recovery version: "openrecovery-twrp-2.8.3.0-xt1032_GPE.img is for GPE ONLY (ext4 userdata)" it failed to do a factory reset. Then i formatted data and factory reset was successful. After that i noticed that the screen was flickering (like a wave coming down from the top). After that i tried to install the zip but it failed to do it.
5 So i followed this guide: http://forum.xda-developers.com/moto-g/general/how-to-revert-5-0-1-gpe-to-4-4-4-5-0-5-t2988565 I ONLY FOLLOWED THE FIRST PARTY STEPS. (i dont know why it rruns the second bat as with the first one you already made the downrgade to KKGPE) (Also uses same bat files from 1)
If someone could provide some information about the bootloader changes in my device and the precautions, restrictions that i need to consider from where i am now, and some explanations for the problems below i would be gratefull. Thanks in advance.
alwayspunk said:
This is what i did so far: (xt1032)
1 Converted STOCK KK 4.4.4 RETAILARGENTINA to GPE Lollipop 5.0.1 following this guide: http://forum.xda-developers.com/moto-g/general/guide-convert-brazilian-firmware-gpe-5-t2969472. Also the bat named "BRAZILIAN 5 TO 4.4.4 GPE.BAT" Flashes the KK GPE firmware without moto boot and partition gpt and "ANY FIRMWARE TO 4.4.4 GPE.BAT"flashes the KK GPE with those files.
2 Encrypted device.
3 Somehow i ended up deleting stock keyboard, replaced by playstore one, but i could not put the unlock password for encryption when booting.
4 So i adb pushed a custom recovery and a rom.
4 When trying to flash the lastest CM12 Nightly using this TWRP recovery version: "openrecovery-twrp-2.8.3.0-xt1032_GPE.img is for GPE ONLY (ext4 userdata)" it failed to do a factory reset. Then i formatted data and factory reset was successful. After that i noticed that the screen was flickering (like a wave coming down from the top). After that i tried to install the zip but it failed to do it.
5 So i followed this guide: http://forum.xda-developers.com/moto-g/general/how-to-revert-5-0-1-gpe-to-4-4-4-5-0-5-t2988565 I ONLY FOLLOWED THE FIRST PARTY STEPS. (i dont know why it rruns the second bat as with the first one you already made the downrgade to KKGPE) (Also uses same bat files from 1)
If someone could provide some information about the bootloader changes in my device and the precautions, restrictions that i need to consider from where i am now, and some explanations for the problems below i would be gratefull.
Thanks in advance.
Click to expand...
Click to collapse
Ok, i'm not sure i understood everything correctly,
you have a XT1032 with the 4.4.4 GPE related bootloader, is that right?
then you shouldn't have issues to install CM12,
you should flash a compatible recovery (i like CWM-based recovery v6.0.5.1, you can try both the GPE and the "stock" dedicated TWRP if one doesn't work then try the other one, since we don't exactly know how is your device at that point)
and then try the following :
boot to recovery (using power+vol_down method)
format /system, /data, "/data and /data/media", /cache (that's how it is called by CWM-based, no idea for TWRP)
prepare your ROM+gapps (try CM12 ) on your computer
choose install zip > install from sideload and sideload from computer
wait for files to be copied and flashed (and repeat for gapps)
reboot
wait
Hope it helps
matmutant said:
Ok, i'm not sure i understood everything correctly,
you have a XT1032 with the 4.4.4 GPE related bootloader, is that right?
then you shouldn't have issues to install CM12,
you should flash a compatible recovery (i like CWM-based recovery v6.0.5.1, you can try both the GPE and the "stock" dedicated TWRP if one doesn't work then try the other one, since we don't exactly know how is your device at that point)
and then try the following :
boot to recovery (using power+vol_down method)
format /system, /data, "/data and /data/media", /cache (that's how it is called by CWM-based, no idea for TWRP)
prepare your ROM+gapps (try CM12 ) on your computer
choose install zip > install from sideload and sideload from computer
wait for files to be copied and flashed (and repeat for gapps)
reboot
wait
Hope it helps
Click to expand...
Click to collapse
Actually i have 41,18 BL, and it isnt possible for me to flash from there( 5.0 ), but the flashing steps you wrote were usefull to install cm12 on moto 4.4.4 after a downgrade. mods, you can close the thread, thanks.

[Q] Official (not manual) lollipop OTA on unlocked moto g xt1033

So, the situation is I have moto g xt1033 with :- unlocked bootloader, rooted, stock rom 4.4.4 kitkat (i mean no custom rom). and fastboot flash mode 41.13 2014-06-16 and philz touch 6 clockworkmod v6.0.4.7
I want to know how to update to lollipop with official OTA update (not manually or sideloaded)?
Why I am asking this?
I got the prompt of official OTA available on my phone and then i clicked yes and downloaded the update. But when i clicked on install, it went in bootloop. It boots on the philz recovery mode and then nothing happens just restart again whatever i select.
As of now, as I backed up, I recovered to the before state of the phone. Do I need to lock the bootloader again or what? The official OTA update is not for me? Then how to get lollipop? I read the soak test etc threads but why not official update ?
Locking the bootloader won't do anything,so don't lock it
Ota update requires:
1.Stock firmware(unmodified and unchanged or tampered)
2.unrooted
3.Stock recovery
That probably happend becuZ your KitKat firmware was modified and you have custom recovery,root..
So just reflash the stock firmware
Do that on your own risk as failing this might brick your phone
Thank me if I helped
Thanks mate for reply.
1. I have stock firmware KK 4.4.4 (though xposed framework & few modules are installed currently)
2. Rooted
3. What is stock recovery? (m noob here)
And i guess reflashing the stock firmware wipes out all user data & apps, right?
Any other alternative which does not wipes out my data?
instinctblade said:
Locking the bootloader won't do anything,so don't lock it
Ota update requires:
1.Stock firmware(unmodified and unchanged or tampered)
2.unrooted
3.Stock recovery
That probably happend becuZ your KitKat firmware was modified and you have custom recovery,root..
So just reflash the stock firmware
Do that on your own risk as failing this might brick your phone
Thank me if I helped
Click to expand...
Click to collapse
pr.itdude said:
Thanks mate for reply.
1. I have stock firmware KK 4.4.4 (though xposed framework & few modules are installed currently)
2. Rooted
3. What is stock recovery? (m noob here)
And i guess reflashing the stock firmware wipes out all user data & apps, right?
Any other alternative which does not wipes out my data?
Click to expand...
Click to collapse
Actually there is no other way you could do it
i tried everything i could to stop the wipe procedure but it obviously wiped everything
you just backup everything you have got on your internal and external sd card ..
1.Stock Recovery:: Android devices come with Google’s recovery environment, which is often referred to as the “stock recovery.” You can boot to the recovery system by pressing device-specific buttons as your phone or tablet boots or by issuing an adb command that boots your device to recovery mode. The recovery menu provides options to help recover your device — for example, you can reset your device to its factory default state from here. The recovery mode can also be used to flash OTA update files.
2.Custom Recovery::A custom recovery is a third-party recovery environment. Flashing this recovery environment onto your device replaces the default, stock recovery environment with a third-party, customized recovery environment. This is a bit like flashing a custom ROM like CyanogenMod — but, instead of replacing your device’s Android operating system, it replaces the recovery environment.
what you have to do is:
Find the Kitkat official update on the internet accrouding to your [Build number],[model number] [system version] you can get this information in about phone....
If you have asia retail then follow this method http://forum.xda-developers.com/showthread.php?t=2700502
ok Here what i am planning:
1. Uninstall all modules & xposed framework
2. Unroot using supersu
3. Restore/reflash stock recovery (just recovery not whole firmware as I already have stock rom)
4. Install the update either manually via recovery or using auto install.
Am i on right path? Pls help me on step 3, any link or step-t-step guide? I couldn't find one, every post is abt restoring whole firmware.
TIA. Cheers !!

[Q] Downgrade OnePlus One from CM12s Lollipop to CM11s KitKat

Hi,
Here is my situation:
1) Recieved OTA Upgrade to Lollipop CM12s, not very comfortable with some features gone or not as expected.
2) Looking to go back to CM 11s
3) Unlocked bootloader, flashed custom recovery twrp, rooted
4) Created backup
5) Downloaded the CM11ROM and Updates to be at CM11s
Problem faced:
While flashing CM11 ROM, its failing.
Question(s):
1) Do I need to flash the CM11 firmware and then flash CM11 ROM?
2) Can someone guide me to the steps from here (flash CM11 firmware->flash CM11ROM) and correct firmware files for CM11s?
Relatively new...and don't want to fool around and get bricked
Follow these instructions: http://forum.xda-developers.com/showthread.php?t=2765455
pretty much: download the files, flash it through fastboot and NOT recovery.
Also, this post is pretty awesome: http://forum.xda-developers.com/oneplus-one/general/index-oneplus-one-resources-compilation-t2843675
The_Symbiote said:
Follow these instructions: http://forum.xda-developers.com/showthread.php?t=2765455
pretty much: download the files, flash it through fastboot and NOT recovery.
Also, this post is pretty awesome: http://forum.xda-developers.com/oneplus-one/general/index-oneplus-one-resources-compilation-t2843675
Click to expand...
Click to collapse
So you are suggesting:
1) Device in Fastboot Mode:
2) Copy the Firmware and ROM image in the same ADB and Fastboot Directory
3) Flash 11s Firmware .... (command)?
4) Reboot in Fastboot or just Flash CM 11 ROM right after the firmware flashing?
5) What command to run to flash the ROM in fastboot?
I guess I am confused with the order of execution and commands .... can you help me with that please?

help moving from CM11 to LP

so i got my mate7 over a year ago and right from the start i installed cm11. i only had the stock rom for a week. its been so long that i forgot this phone has a fingerprint scanner. i have decided to flash the latest huawei rom and then shortly after flash KangVIP. the problem is that i dont know where to begin.
im currently running CM11 from this thread. i installed TWRP using acbka's tool (thanks!). so, where do i go from here? im guessing i go to stock recovery and then do a serious of stock firmware upgrades. the problem is i dont know which ones.
my phone model is an MT7-L09 (im in the US if that matters). im hoping i can get LP installed before the spring semester. any and all help is appreciated. thanks and happy new year.
For coming back to huawei stock rom from CM11 I usually:
(Wipe /data and /system from recovery)
Flash from recovery this ROM http://forum.xda-developers.com/mate-7/development/rom-erykinemt7-v1-0-0-mt7-l09-b137sp03-t3044695 or any kitkat rom that comes with flashable zip
Flash the stock kitkat recovery (Option 1 from acbka's tools)
Flash a stock kitkat rom (this for example --- I didn't try flashing Lollipop stock rom here, you can just try it or install kitkat stock then lollipop stock) using huawei update tool (you have to put the stock rom in /dload folder, then go to settings, update and start a local update). It's important that you have flashed the stock recovery in the previous step because a non-official recovery won't let you install huawei software.
Now you can receive OTA updates
(I use cwm recovery but I think that it's just the same with twrp)

[How-To] How to un-soft brick or unbrick soft bricked Moto G

It happens to all of us. You're flashing something and you end up messing up. You forgot to do a wipe, or the file is not compatible with your device. Now you're stuck with a device that can only boot up into recovery. Your phone is now soft bricked. Here's how to un-soft brick(is that even correct?) your device.
Requirements:
- Running latest TWRP recovery
Downloads:
GApps
Open GApps (68 mb) [Download]
Note: You can use your preferred GApps if you want to. This is the Open GApps Pico Pack.​
XT1028
Verizon US 5.1 Stock ROM (554mb) [Download]​
XT1031
Boost US 5.1 Stock ROM (529mb) [Download]​
XT1032
Retail US 5.1 Stock ROM (529mb) [Download]​Retail EU 5.1 Stock ROM (522mb) [Download]​Retail France 5.1 Stock ROM (522mb) [Download]​Retail Brazil 5.1 Stock ROM (528mb) [Download]​GPE 5.1 ROM (471mb) [Download]​
XT1033
Retail Asia 5.1 Stock ROM (523mb) [Download]​Retail Brazil 5.1 Stock ROM (528mb) [Download]​
XT1034
Retail US 5.1 Stock ROM (529mb) [Download]​Retail Canada 5.1 Stock ROM (526mb) [Download]​Note: You can actually flash any of these. It does not matter. This is just if you want the original out-of-box experience.
Procedure:
- Download the right ROM file for your device and the GApps.
- Boot into recovery.
Press Power+Volume Down Buttons for three seconds. Release and press the volume down button once and the volume up button once.​- Wipe the system, data and cache partitions.
Press Wipe. Press Advanced Wipe. Select the partitions. Swipe to wipe.​- Using MTP or ADB Sideload, transfer the downloaded files to the phone.
If you don't know what that means, just copy the files and paste it onto your phone using the computer.​- Flash the ROM zip you just downloaded.
Press Install. Locate the file in the manager that is shown. Select it. Swipe to flash.​- When flashing is done, wipe cache and dalvik.
- Flash the GApps zip you just downloaded.
Press Install. Locate the file in the manager that is shown. Select it. Swipe to flash.​- When flashing is done, wipe cache and dalvik.
- Reboot.
Your phone should reboot and now be running stock Moto Android. After this, you can go on and flash the intended ROM/kernel but do it right this time. If not, come back to this. I tried to make this guide as concise as possible. Please let me know if you need any help.

Categories

Resources