yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
I did try to make an update zip but could not do it successfully. The only thing I can do is make some new ROMs based on the latest firmware image, but I do not have the time at the moment.
[Moto G 4G Android Development] faust.deaconu:
Any suggestions on how to install radio firmware? I tried in TWRP but I get Error 7. Does it have anything to do with the fact that I had unrooted the device before? Thank you.
[Moto G 4G Android Development] minimale_ldz:
I had the same issue with TWRP version so flashed fastboot one
[Moto G 4G Android Development] lost101:
There are nine different TWRP radio firmware zips. It would help if you could be specific about the file. Error 7 can often be resolved by rebooting TWRP recovery.
[Moto G 4G Android Development] _that:
And you both only got "Error 7" with no more error messages in the console or in recovery.log?
[Moto G 4G Android Development] faust.deaconu:
I flashed EU version. I tried flashing after rebooting TWRP but it didn't work.
[Moto G 4G Android Development] lost101:
I suspect it's related to the inclusion of fsg.img. With the 3G Moto G I do not include this file in TWRP Radio Firmware zips. With LTE, the fsg.mbn plays a more significant role and perhaps cannot be flashed via TWRP as fsg.img. Fastboot method is best.
[Moto G 4G Android Development] minimale_ldz:
Sorry, it was long ago. "error 7" rings a bell, but can't remember any details
[Moto G 4G Android Development] faust.deaconu:
Which one would be the steps for fastboot?
[Moto G 4G Android Development] lost101:
See FAQ in post #2.
[Moto G 4G Android Development] faust.deaconu:
Hi lost101. I guess I need a little help here, please. After 1 week of happily using optimized version I got a 'Failed to initialize partition table'. Phone won't boot, won't charge. I am ready to give any details you want. Please, I need the phone back, at least until I get a new one. I would very much appreciate your help.
[Moto G 4G Android Development] pio80:
It seems that Motorola fuc..up! I am not able to believe that 1 years old phone (peregrine in my case) goes to the bin. This is a real joke! Can I trust Motorola once again...

Regards
[Moto G 4G Android Development] lost101:
Please start a thread in Q & A as your problem is not related to this thread. I will try to help you there. Mention me [MENTION=1006674]lost101[/MENTION].
[Moto G 4G Android Development] faust.deaconu:
Hi [MENTION=1006674]lost101[/MENTION]

Hope you are well and thank you for you fast response.

May I repeat, the issue came after I'd flashed one of the ROMs found on this thread. Wouldn't that make it related to this thread?
[Moto G 4G Android Development] lost101:
It's purely coincidental, the ROM did not cause the corruption. You need to repair your phone, and the instructions I will provide do not apply to this ROM collection. I will not fill this thread with posts unrelated to these ROMs, or flashing them.
[Moto G 4G Android Development] Rascarcius:
Hi,

I flashed Lollipop 5.1 EU Optimized on my MotoG 1st Gen. I disabled the "Supercharger" App which cleans proccesses and has 3 phases of charging when I plug the phone to the charger. Now it doesn't appear again. How can I re-enable it?
[Moto G 4G Android Development] trnlrt:
Excellent ROM for lightness and battery life (four hours of screen on)

Installed: XT1039 - EU Retail 5.1 ROM (Optimized) v1.1

1) from home holding down "O" I can quickly start an app.

I do not understand how to configure which app.

2) from the home screen setting under drawer setting under settings app if I choose Protected Apps -> Laucher3 crash

---------- Post added at 09:44 AM ---------- Previous post was at 09:10 AM ----------

Can I remove the preinstalled launcher3 and install new launcher3 (AOSP Launcher)
[Moto G 4G Android Development] Glitch_Neo:
Great thanks,

Works well so far. Thanks to the OP for their efforts.

XT1039 Peregrine - Optimised.

Neal
[Moto G 4G Android Development] tanqueta207:
Hi, is there any official marshmallow ROM for the xt1045? THIA.
[Moto G 4G Android Development] munlar:
Marshmallow is only for Moto G generation 2+.
[Moto G 4G Android Development] butthurtlocker:
xt1040 canada

Can anyone with an XT1040 comment on how either version of the 5.1 firmware compare to 4.4.4 with respect to battery life? please and thanks!
[Moto G 4G Android Development] masterxilef:
Well, don´t know about Canada but at least on the Latin American version XT1040 is better on 5.1 IMHO. (I should mention I've been using the "lite" version for quite a while now and I love it).

Try it for yourself and compare, you can flash this rom even if you're on KitKat bootloader, so if you don't like it you can flash: http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-kitkat-rom-t3160127 to revert back to KitKat, or if you end up liking Lollipop better, you can flash the 5.1 bootloader (Doing this eliminates the screen tearing bug), and even then, you could revert back to KitKat still with that rom.

Good luck. :good:
[Moto G 4G Android Development] Pupet_Master:
I can, i have this device.

KK on this device was terrible. 5.1 fix memory and lag issues.
[Moto G 4G Android Development] Vermillion96:
What?

How can you say that battery in KK was terrible?

Lollipop, by itself, was nothing else than a memory and battery hog...

Kitkat was the best OS for this device. I never experienced any lags and battery lasted a bit more than a day for me...
[Moto G 4G Android Development] Pupet_Master:
Not in my experience. I had major animation lags with the stock ROM, the battery too was not bad but on Lollipop it got much better. Also Motorola Calibrated Lollipop OOM in a way that is much better then on how it was on KK (too aggressive), the prone just runs better.
[Moto G 4G Android Development] trnlrt:
I had to install the cm 13, the other day the screen became all black
[Moto G 4G Android Development] baxtex:
Have somebody managaded to install Viper 4 Android on this rom? It worked fine on the ported MM build, but here I can't seem to install the driver due to BusyBox problems. I have tried reinstalling Busy box serveral times without any luck.
[Moto G 4G Android Development] ahmadsamhann:
well in my case, 5.1 is much better than 4.4.(its not terrible, just drained a lot more than 5.1 on my device)
[Moto G 4G Android Development] sdembiske:
Haven't noticed any huge difference but keep in mind battery life will be influenced by the amount of use the phone undergoes and is ultimately user dependent, Try the Greenify app if your looking for improvement. One thing that I did notice is I have far better internal memory apace with the latest 5.1 update that was just rolled out. S.
[Moto G 4G Android Development] MavericK_56:
On my XT1039 FR, I decided to try the 5.1 optimised ROM and it was finally unsuccessfull after several tries >> it ALWAYS loss the signal!

I applied all advices noticed in the 1st post, I mean:

wipe data, factory reset, ROM flash and finish by 5.1 radio firmware.

I tried 3 different SIM cards all known to be OK on other phones and still same problem.

I tried to go back to the original 5.1 stock firmware with fastboot and all its command lines to make a clean phone before retrying this 5.1 optimised ROM. Unsuccessfull again >> signal loss.

I tried too to switch 4G to 2G then reboot. Then new switch to 4G. No signal.

When attempting a manual search, phone told me there was an 'error'. The same than in a Q&A topic you answered Lost.

It's really a shame because this ROM seems so nice...

Any solutions?! Help appreciated.

Regards.
[Moto G 4G Android Development] lost101:
[MENTION=350079]MavericK_56[/MENTION] - The instruction in first post is to format /data. Please do exactly as described. Do not restore apps via Titanium Backup or anything else.
[Moto G 4G Android Development] MavericK_56:
That's what I did. Formatting data in order to erase all user / apps data contained in the /sdcard, correct?

In the last version of twrp from their website, I clicked on 'wipe' menu then there's a direct access to wipe data. No need to go to advanced, correct?

I followed exactly your 'how to' so what can I do? Alternative radio firmware?

Regards
[Moto G 4G Android Development] lost101:
No. You must do the format exactly as described in OP.
[Moto G 4G Android Development] pofadda:
After much messing around with cm13 and Gapps and getting repeated 'Unfortunately Google Play services has stopped', I'm thinking that stock 5.1 or 5.1.1 is a less wearisome way to go. Will your Retail EU image work correctly in a Tesco GB xt1039 phone, please?

I saw an original stock 4.4.4 image that should just let Tesco update the phone to 5.1.1 after a while. Is there any point in doing this?
[Moto G 4G Android Development] lost101:
Simply flash the latest Retail EU ROM. I do recommend however you consider the Marshmallow Stock ROM: Identity Crisis 6 LTE
[Moto G 4G Android Development] Random-:
Do I need to root to install radio firmware or can I just do it through cmd with unlocked bootloader. I have the "No Service" "Radio: Off" problem. XT1040.
[Moto G 4G Android Development] lost101:
Root nor Bootloader have nothing to do with flashing Radio Firmware. Flash via fastboot as instructed.
[Moto G 4G Android Development] xwalero:
My screen keeps flickering (I mean, I fix it by shutting it down once, but it's pretty annoying). I tried to use the bootloader upgrader tool but my bootloader is 4116(*) and the .exe said if my bootloader was 411A or higher, I should just close it. Should I upgrade anyway? Is there any other fix for the screen thing?
[Moto G 4G Android Development] lost101:
You need to upgrade the Bootloader.
[Moto G 4G Android Development] xwalero:
Yeah I did it and it works fine, thanks.
[Moto G 4G Android Development] R3ISEN:
Hi is there a chance of updating the trebuchet Launcher in this rom? I tried flashing a different Launcher but i get a bootloop
[Moto G 4G Android Development] lost101:
You should be able to install an alternative launcher via Play Store. Apex Launcher certainly works without issue.
[Moto G 4G Android Development] R3ISEN:
Yes im aware of that, but i was just wondering if theres a way to embed it to the rom.

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] J0hnick:
I used the BUT tool to update my bootloader, I was previously on cyanogenmod 11 and wanted to upgrade to 12.1, so needed to update bootloader.

http://xdaforums.com/moto...-tool-t3093793

This let me update, I got a message saying couldn't detect sim but read this was normal so tried flashing Eu 5.1 radio firmware via TWRP, didn't work but rebooted the phone anyway and the phone detected my sim for the whole day but after waking up this morning, no sim. Tried fastboot, didn't work and got an error message "bootloader permission denied".

Tried flashing 5.1 optimized by Lost101, flashed fine but no sim detected, tried flashing untouched 5.1 EU, get an error at the end and the phone wont boot. Tried unlocking bootloader again, says its already unlocked.

The radio firmware error says Updater process ended with error 7. Took the sim card out and back in again while the phone was on and boom, working again (thank god).

I use an app called Lean Droid and I have it set to switch to 2G mode if the phone is idle for over 10 minutes, could that have caused it ?.

Thanks in advance.
[Moto G 4G Android Development] lost101:
[MENTION=5122753]J0hnick[/MENTION] - There are so many factors, you can only elimate them one by one yourself. Make your you format /data as desribed in OP.
[Moto G 4G Android Development] J0hnick:
I did advanced wipe and selected everything except external SD card, not Format Data, if that's the reason why Ill know next time :silly:
[Moto G 4G Android Development] lost101:
The instructions in first post are there to be followed exactly. Ignore them and you can expect potentially massive issues. As far as I am concerned, you have not flashed the ROM properly at all.
[Moto G 4G Android Development] J0hnick:
Guilty as charged. Tempted to reboot and "format" but don't want to have to go through all that again, even if it's my own fault :( .

Running Fonz93's CM 12.1 rom, working (for now).

Installed a bunch of custom ROMs on other phones, mostly Samsung, too used to clockworkmod vs TWRP I guess.
[Moto G 4G Android Development] gonzametal:
Can I flash XT1040 - Retail Latin America: [Fastboot] found in this thread, under CM13? I ask it because it says that this radio is for 5.1, and cm13 is 6.0.1
[Moto G 4G Android Development] lost101:
Simply flash as described in OP. Follow the instructions exactly and you will have no problem.
[Moto G 4G Android Development] manuKUTTAN:
How is it on the xt1045?

Should I flash it over my existing stock-kitkat
[Moto G 4G Android Development] masantula:
So for some reason when i flashed the recovery i get the mismatched error and when i reboot into recovery i still end up on the stock recovery with the android and no command image, what do i do? Is there another way around in flashing this?
[Moto G 4G Android Development] lost101:
Everyone gets 'mismatched' error. Ignore it.

Try fastboot boot twrp.img

You must use TWRP.

Make sure the download of TWRP is not corrupted. Also perhaps try an older version.
[Moto G 4G Android Development] masantula:
Still isn't working :(

I know you had the pure stock image that i can flash over fastboot, i can't seem to find it, can you direct me to that post so i can try and flash that. My phone just randomly lost network, like wifi works but no data or cellular works, tried removing and inserting simard and it didn't work also a factory reset didn't help so i thought flashing the rom again would help.
[Moto G 4G Android Development] lost101:
Firmware Images: http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795

Fastboot Tutorial: http://xdaforums.com/showthread.php?t=2542219

Post in the tutorial thread if you still have issues flashing. In my opinion, your phone is displaying symptoms of corrupt emmc - for which there is no cure. The handset may be dying.
[Moto G 4G Android Development] Asadali786:
Dear Sir

I just flashed optimized ROM for moto g XT1042

My phone has started but a dialogue continuously keeps on popping up "google keyboard has stopped"

Bcuz of this I can't type anything can't give name to my phone can't sign in google cant download anything from play store all these things require to type.

Please tell me, how to overcome this problem

Thank a lot

Please reply soon
[Moto G 4G Android Development] lost101:
[MENTION=7715869]Asadali786[/MENTION] - You must follow the flashing instructions in first post exactly.
[Moto G 4G Android Development] Asadali786:
keyboard issue

Dear Sir

Thank you for the quick reply

I repeated the steps again in twrp

Here are the steps I followed

1) Booted into TWRP and Format Data (Wipe > Format DATA > Yes)

2) Transferred ROM to SDCARD and inserted it to phone

3) TWRP > Wipe > Factory reset

4) After factory reset flashed ROM.

5) Reboot.

Phone starts but displays a message "Unfortunately, Google keyboard has stopped"

I'm not seeing call/WiFi issue since WiFi gets connected when I remove the WiFi password because I can't type password since keyboard isn't there.

Can you please guide me to do something else like flashing to insert keyboard

Or if you want me to check any other things I will do so

Thanks

I'm editing my post since my phone has supported keypad now and it's working good

I downloaded Google keyboard in my friends phone and transferred it to mine via Bluetooth and it's working now

Anyway thanks a lot for providing optimized ROM

Great work
[Moto G 4G Android Development] lost101:
I've re-uploaded XT1042_US_Cellular_51_Optimized_v1.0.zip - issue should be now resolved.
[Moto G 4G Android Development] Riscas:
I have a problem with the radio, signal loss problem. I tried many roms (like 5), it won't work with any.

Tried to flash the radio firmware here, it's impossible with TWRP (no modemst1 error 7), but without errors with mfastboot (however it's very quick doing it).

Any solution?
[Moto G 4G Android Development] lost101:
There are already multiple threads on the topic. It has nothing to do with these ROMs or any ROM. It appears to be a hardware issue. I'm not aware of any fix. All you can try is the following:

Flash the latest Factory Firmware Image using mFastboot.

mFastboot download: https://www.androidfilehost.com/?fid=24052804347778493

Firmware Images: http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795

Fastboot Tutorial: http://xdaforums.com/showthread.php?t=2542219
[Moto G 4G Android Development] Riscas:
It worked with Android 4.4, thank you.
[Moto G 4G Android Development] Cucho Rodriguez:
Xt1039 spain

Excellent compilation and crystal clear explanations.

Nevertheless, I have some comments:

XT1039_Retail_Spain_51_Optimized_v1.1

- fast and light

- little minor changes in the icons/screen appearance compared to the official update obtained from OTAs (23.26.3.peregrine before stagefright)

- the lock shaped icon button below in folder on main screen provokes a Launcher 3 error when pressed.

- Google widget in main screen (launcher 3) does not contains "say ok google" in spite of updating Google Now: you'll have to sweep to enter in Now and to be voice recognized.

TWRP_XT1039_Retail_Spain_5.1_Radio

I lost some wifi passwords once and my internet radio sometimes was pausing therefore I tried this patch:

I obtain error "E:Error executing updater binary in zip" and I couldn't skip it even after following the advices in the post.

XT1039_5.1_Stock_Dialer

- A nightmare happened to me after installing this patch

XT1039_Retail_Spain_51_Untouched_Stagefright_Patched

- 23.21.17.peregrine

- It detects as neccesary a system update for stagefright; it downloads but when rebooting goes into my TWCR recovery and loops. I have tried installing StageFright_Full_Patch_Stock51 but I guess it is not for this room.

--------------------------------

MOTOROLA MOTO G 4G XT1039 (1st Generation)

MODEL: SM3781AE7L1

ROOT

TWRP 2.7.1.0
[Moto G 4G Android Development] lost101:
[MENTION=7827109]Cucho Rodriguez[/MENTION] - Is there any reason you do not want to use Stock 6.0?

[ROM][PEREGRINE][6.0][STOCK] Identity Crisis 6 LTE​

It's essentially a polished version of Lollipop and is more secure.
[Moto G 4G Android Development] Cucho Rodriguez:
Guauuu!

I was a bit scared to try it without one trustable mentor recommendation. I am going to try it and I'll post my impressions here later.

Many thanks lost101 !
[Moto G 4G Android Development] munlar:
How do you go back to stock recovery?
[Moto G 4G Android Development] sdembiske:
"The ROM includes a file that can restore the Stock Recovery "

-----------------------------------

Quote:

July 25, 2015 | 12:42am by lost101 in Moto G 4G Android Development

The ROM includes a file that can restore the Stock Recovery

- which it has done in this case. Simply reflash a custom recovery via fastboot. DM Service and OMA Provisioning is a known issue and has been discussed in previous posts. I recommend flashing the ROM with the latest version of TWRP from the link below and reporting back if you still have Bluetooth issues. http://xdaforums.com/moto-g/4g-development/collection-somcom3xs-experimental-corner-t2996266 EDIT: DM Service | OMA Provisioning Fix (http://xdaforums.com/devdb/project/dl/?id=13646) (Flash in custom Recovery) →

-------------------------------------

Flash the untouched version of what you need --- S.
[Moto G 4G Android Development] Varoku:
Im on xt0140 on optimized rom latin america and everything seems ok, but Google play services stops working and i cant use google play store nor register my gmail account
[Moto G 4G Android Development] Th.Man:
Same problem here. XT1040, Canadian, with optimized rom and radio firmware. Getting "google play services has stopped" each time I try to log to gmail or play store. Also all the browsers I've tried close when accessing web pages. Wifi is ok, I can download apps from F-Droid...

Th.
[Moto G 4G Android Development] Th.Man:
Replying to self and others, this is how I fixed it: I downloaded a more recent version of google play services (cant post links...)

and now all is good!!!
[Moto G 4G Android Development] Varoku:
I've tried that, but when i go to install it, the google app service crashes.

I needed my phone back, so i used the brazil optimized version instead of latin american one, the BR version works ok.
[Moto G 4G Android Development] meekrawb:
[MENTION=7935737]Th.Man[/MENTION] sent me this:

Here is the link for google pay services that fixed my Moto G XT1040.

http://apkportal.co/2016/10/google-play-services-9-8-77/

I can't vouch for how well it works or not, I am just posting the link for him.
[Moto G 4G Android Development] IronTechmonkey:
[MENTION=1006674]lost101[/MENTION], Considering that recent rumblings in regards to CM have turned into this big decision https://www.cyanogenmod.org/blog/a-fork-in-the-road. I'm more glad than ever that these stock ROMs exist. Thanks again.
[Moto G 4G Android Development] jilebi:
Hi,

I have a US Moto G LTE XT1045 Cricket with CID0x10 and stock ROM 4.4.4. Bootloader is locked and phone is not rooted. No custom recovery loaded, since bootloader is locked. I have scanned through this entire thread, but could not find a conclusive answer. Hence, the following question. Can somebody please help/share?

I would like to upgrade to Stock ROM Lollipop 5.1 from ATT posted on XDA, filename - XT1045_PEREGRINE_ATT_5.1_LPB23.13-61_cid1_CFC.xml.zip, using fastboot. I am planning to only flash the system partition using the following commands

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 system system.img_sparsechunk.4

Please let me know - will it work even if bootloader is locked and CID does not match (0x10 for cricket vs 0x01 for ATT)? or Will it brick? Should I use some other commands? Thanks!
[Moto G 4G Android Development] Bobgraton200:
Hi Lost1010

Juste to be sure I understand well.

I just flashed the last 5.1 optimized. The screen flicker. If I update the Bootloard I will be stuck in 5.1 and I will not be able to return to 4.4.4 (if it what I want)? Because it will not be compatible I guess.

If I put marshmallow am I gonna get the same problem with the screen ( or i have to update the bootloader too), and with marshmallow am i gonna be able to return to 5.1 without risk or it is a one go?

Thank again!
[Moto G 4G Android Development] voland34:
Trying...bit it says "error: closed"

Tried "adb usb" first, it still doesn't work...(says "protocol fault: no status" after trying sideload)

also, external sd card with ROM is not recognized by twrp.
[Moto G 4G Android Development] lost101:
Tried rebooting TWRP or reflashing TWRP?
[Moto G 4G Android Development] voland34:
tried rebooting...can't reflash though

Solved! (I think) Using a computer with Ubuntu i got to transfer thorugh file manager ROM intop xt1039 internal storage...it seems to be reflashing now (twrp).

Thanks

Still: optimized version had issues with dialer, so ill try to flash now untouched version to see if dialer works fine.
[Moto G 4G Android Development] lost101:
Please start a thread in Q & A as you appear to have issues unrelated to these ROMs.
[Moto G 4G Android Development] voland34:
You're right, sorry. In any case it started because Optimized version had issues with dialer (it was forced to close, calls were active but nothing on the screen about it); i reinstalled just now the untouched version and it works fine again as it should. Thanks for help and hope this info is useful.
[Moto G 4G Android Development] lost101:
I will replace the Dialer in the Optimized ROMs with the version originally included with 5.1.
[Moto G 4G Android Development] lost101:
XT1039 Retail Spain 5.1 (Optimized) v1.0a is now available. Also, XT1040 Retail Brazil 5.1 (Optimized) v1.0a is here.

Changelog:

Restored: Original 5.1 Dialer​
[Moto G 4G Android Development] voland34:
Dialer working fine now. Thanks.