yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
This thread is ONLY about the ROMs in the first post. Please start a thread in Q & A if you have unrelated questions.
[Moto G 4G Android Development] bloodhawk33:
In this post i download the ROM so i dont understand, please help me
[Moto G 4G Android Development] lost101:
I'll assume you downloaded the XT1040 Optimized ROM. In Optimized ROMs I remove Boot Animation to save space. Some Motorola services have been removed - this may be affecting 'Motorola Boot Services.'

Can anyone else confirm that Motorola Boot Services claims to be incompatible in Google Play Store?
[Moto G 4G Android Development] bloodhawk33:
I download the 5.1 flasheable zip rom, the untoched how can i flash with fastboot?
[Moto G 4G Android Development] lost101:
These ROMs can only be flashed with a custom Recovery,

as instructed in first post.
[Moto G 4G Android Development] bloodhawk33:
If i have lollipop 5.1 can i flashed with with cust recovery again? With this ROM? Por not?
[Moto G 4G Android Development] lost101:
Yes, factory reset in custom recovery. Flash ROM.
[Moto G 4G Android Development] bloodhawk33:
How? My bootloader is locked, how can i?
[Moto G 4G Android Development] lost101:
http://xdaforums.com/moto-g/help/rc-faq-frequently-questions-motorola-t2795336
[Moto G 4G Android Development] bloodhawk33:
I dont understand please, is this ROM copy into my interna sd and then apply update?
[Moto G 4G Android Development] lost101:
There are many guides on the Internet and YouTube regarding using a custom recovery such as TWRP. It's bad etiquette to ask such basic questions here.
[Moto G 4G Android Development] ahmedteling:
hi i have moto g 4g xt1039 , im on 4.4.4 bootloader 41.13

i run cm 12.1 and other lp roms without known issues except the flickering screen

does lollipop bootloader offers any improuvement beside disabling the non-annoying flickering screen ?

is it really needed to update bootloader ?

if i flash a stock lp rom will the bootloader be updated ?
[Moto G 4G Android Development] lost101:
Lollipop Bootloader is not required for non-LTE Moto G - however there needs to be more testing done with LTE / 4G Moto G. Please test without and report back. With non-LTE Moto G there are no obvious improvements after flashing the Lollipop Bootloader.

OP clearly states: Each zip contains ROM and Kernel only. If Bootloader was updated as a result of flashing any of these zips, I would mention it.
[Moto G 4G Android Development] ahmedteling:
I don't want to run stock lp , I just wonder if by flashing stock lp will the bootliader be updated and I guess it will not .

Thanks for clarification :)
[Moto G 4G Android Development] lost101:
You might want to reconsider that. People often report far superior battery-life with my Stock 'Optimized' ROMs.
[Moto G 4G Android Development] ahmedteling:
Mmmmmmmmmmmmm I will download it now
[Moto G 4G Android Development] coltonbauman:
I've got a moto G xt1040 that was originally used on Fido in Canada, but it's unlocked now. Can I flash the Brazilian ZIP and have it work the same? Also, how does 5.1 work with xposed on a rooted phone? Kind of a newb to this stuff.
[Moto G 4G Android Development] lost101:
I need brave men and women to test this stuff out. Report back. No permanent changes are made to phone - everything can be undone.
[Moto G 4G Android Development] lost101:
I still do not have access to a 'Peregrine' handset. Any donation to help purchase one would be greatly appreciated and would speed up ROM development.

I'm hopeful the price of Moto G 4G / LTE (1st Gen) will drop considerably over the next few weeks as Moto G (3rd Gen) with LTE goes on sale.
[Moto G 4G Android Development] Skire90:
Would it be possible to integrate the CM12.1 minfree LMK settings into this rom? Although memory management has improved over 4.4's, it is still far from ideal. My podcast app still regularly gets closed while browsing a heavy website. CM12.1's memory management is simply amazing.
[Moto G 4G Android Development] :
Well I might be able to help. I didn't have much time (work) so I haven't been able to read that much about the new bootloader in combination with TWRP 2.8.7./others.

Will TWRP 2.8.7 work with the Lollipop bootloader (stock since the soaktest here)?

Is TWRP 2.8.7 flashable with mfastboot without any weird glitches/limitations (screen flicker is an annoyance, doesn't count;) )

XT1039 here, 5.1.1 stock Moto.
[Moto G 4G Android Development] lost101:
I haven't heard of the Lollipop Bootloader causing any problems with TWRP.
[Moto G 4G Android Development] :
Well that's what I wanted to hear :D I might flash the optimized version you made, if I have enough spare time that is of course. Thanks for the fast reply BTW.
[Moto G 4G Android Development] ColombianBurrito:
Everything is okay

I bought Moto G 4G LTE two weeks ago, and now I did this process, everything is okay. My phone is from Colombia and I had to flash first to retail brazil and the install this ROM, didn't need Radio Firmware, I'll update this post as soon as something Happens,

Thanks.
[Moto G 4G Android Development] Travisholt92:
I'm using 5.1 boot loader and 2.8.7 twrp with encryption. No screen flickering on my xt1045
[Moto G 4G Android Development] karaflix:
I flashed 5.1 optimized eu retail at moto g 4g (xt1039) following your instructions. I got the E: error so i restarted the recovery. I got the error again so I formatted /data and I got the error again so I reinstalled twrp, formatted data again and tried flashing. Flashing ended successfully but when the phone boots it can't turn on wifi, doesn't recognize the sim card and when i type *#06# the dialer crashes. What am I doing wrong?

ps. Also I got the dm and oma crashes
[Moto G 4G Android Development] VivaLaVent:
You didn't flash the 5.1 radio.
[Moto G 4G Android Development] karaflix:
true, i tried doing that shortly after typing my post but I cant it fails.
[Moto G 4G Android Development] lost101:
Provide a log.
[Moto G 4G Android Development] karaflix:
a log of the radio flashing failure? where are they saved?
[Moto G 4G Android Development] lost101:
I only mean copy and paste what happens when you type the mfastboot commands. Make sure to use mfastboot.

https://www.androidfilehost.com/?fid=23578570567719065​
[Moto G 4G Android Development] karaflix:
I thought I should flash via custom recovery because it is a zip. I flash it from the bootloader via fastboot with the command fastboot flash radio radio_file.zip ?

edit: nvm i saw the instructions, sorry. It flashed properly, everything is working fine. Im still getting the two crashes though. Anyway thanks!
[Moto G 4G Android Development] AndreiSant:
hi, my phone is xt1039 from brazil and I want know whats the best optimized stock rom for me flash and if i have to flash the xt1040 brazil radio version or not.
[Moto G 4G Android Development] cpvm:
Is a xt1045 version coming?

Sent from my Moto G LTE.
[Moto G 4G Android Development] lost101:
With LTE / 4G, it's better to stay with your Model number. Others can advise from experience. I would suggest only flashing the XT1039 Radio / ROMs.

Yes, maybe tomorrow.
[Moto G 4G Android Development] AndreiSant:
but i can flash any radio?
[Moto G 4G Android Development] lost101:
I think it would be wise to stay with XT1039 Radios only.
[Moto G 4G Android Development] cpvm:
Is it really necessary to have the same cid in order to flash a radio?

Because my moto g 4g is a xt1045 cid 12 and retus is cid9.

Sent from my Moto G LTE.
[Moto G 4G Android Development] lost101:
I believe there are two Retail US Models, XT1039 (CID12?) and XT1045 (CID9) - How are you confirming your model number / CID?

Best asking your question here:

http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619​
[Moto G 4G Android Development] mihaum:
Where do I get motoboot.img? I've downloaded both untouched and optimized versions for my CID, but all I can find is boot.img.

Ok, I believe I've found it here.
[Moto G 4G Android Development] lost101:
I do not provide a link to Lollipop Bootloader in OP - as it has yet to be established beyond doubt that it is required.

Since you ask, instead of downloading an entire firmware image - Bootloader Upgrade Tool: http://xdaforums.com/moto-g/development/falcon-bootloader-upgrader-tool-t3093793
[Moto G 4G Android Development] mihaum:
[MENTION=1006674]lost101[/MENTION], thanks for your reply, I've already downloaded and flashed the motoboot ;) That software has no use for me, since I work on Linux.
[Moto G 4G Android Development] irsyadhbtlh:
still waiting for XT1045 version :rolleyes:
[Moto G 4G Android Development] lost101:
XT1045 Retail US 5.1 ROM (Untouched) now available. Radio also available here.
[Moto G 4G Android Development] Speedo.thc:
Hello Lost101 , i did a Flashable by recovery file for XT1039 modem EU _5.1 , after convert all file in disk image (.img)

it's for peoble who can't flash with computer here is it :

https://drive.google.com/file/d/0B3kJoB8n78hZUWd4b2xYNlpjaGs/view?usp=sharing

i also did some change on my own version , it now support really init.d and increase Wifi-3G-4G speedo :)

Have a nice day :)
[Moto G 4G Android Development] lost101:
I wanted to make flashable zips but was unsure if fsg.mbn could be safely flashed via install script, rather than fastboot. I would like to replace the current zips with custom recovery flashable versions, but I need other Model users to also make a partition dump of: /dev/block/platform/msm_sdcc.1/by-name/fsg
[Moto G 4G Android Development] Speedo.thc:
Hello , if somebody else want to help they can easely use this app to backup in (img) file , any newbee can do that and it work fine.

https://play.google.com/store/apps/details?id=ma.wanam.partitions

like this you could add the correct radio inside each rom :D
[Moto G 4G Android Development] falle21:
The only thing to do its check the three modem items and do it? Or need something else?

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Actually, /fsg and /modem dumps are all that I need. modems1 / modemst2 are normally erased when flashing a new radio, and this can be done as part of the install script.
[Moto G 4G Android Development] 90Ninety9:
IThe update completed fine , however WIFI and Mobile Signal are not switching on at all

This is strange as ohhers within UK have flashed EU roms on different MOTO G models

Phone is close to being obliterated in rage
[Moto G 4G Android Development] falle21:
Here https://drive.google.com/folder/d/0BxE55aUC2OkuN1otVDBIZ2FZUms/edit

If you need something else letr me know, xt1040 is my model

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Did you flash the radio as instructed in post #2 FAQ?
[Moto G 4G Android Development] AndreiSant:
one more thing..., i am from brazil, can i flash any xt1039 retail rom /radio from other country? and i will call normally?
[Moto G 4G Android Development] Speedo.thc:
Hello , lost101 i did a bootlogo for me , and one for you to thx your moto G job

,

I hope you like it :D

Flashable .bin format

https://drive.google.com/file/d/0B3kJoB8n78hZMk5GNE9WUUdhM0k/view?usp=sharing

Flashable .img format

https://drive.google.com/file/d/0B3kJoB8n78hZZ28wRmNKSnpYNXM/view?usp=sharing

Tchao !!
[Moto G 4G Android Development] lost101:
On Moto G 'Falcon' - it wouldn't matter. But things could be very different on 'Peregrine.'

I'm depending on fearless people like you, to throw yourself off the cliff and find out...
[Moto G 4G Android Development] bloodhawk33:
Hi, again i'm using mi moto g xt1040 with android lollipop 5.1 an all is ok, but i will waiting for tha ROM stock official for Peru, or latam firmware. how many time to get Moto G 4G/LTE Stock Firmware (XT1039/40/42/45) in official version in latam to flash with mfastboot?
[Moto G 4G Android Development] lost101:
I can request it here: [INDEX] Moto G [Falcon][Peregrine] Factory Firmware Images

Just to confirm: XT1040 5.1 Retail Latin America

I don't think there ever is a Retail Peru firmware image? Normally it's a specific firmware for a Carrier in Peru.
[Moto G 4G Android Development] bloodhawk33:
In America movil maybe, but in other operators i think they used retail latin america, because this moto g had the latin american rom 4.4.4 in entel Peru, now i have brazil 5.1 rom, i wil waiting for the latin american ROM. the link you give is for non LTE models, i want for xt1040 4g model. i wil wainting
[Moto G 4G Android Development] lost101:
I've added it as a request. Hopefully it will be available soon.
[Moto G 4G Android Development] bloodhawk33:
ok thank you
[Moto G 4G Android Development] Skire90:
Just throwing this out here again. I am currently running CM12.1 so I am able to provide you the correct LMK values/files ;)
[Moto G 4G Android Development] lost101:
Go ahead, provide what you know / have. Out of curiosity, any idea if the board in 'Peregrine' is the same for all models? msm8926?
[Moto G 4G Android Development] lost101:
XT1045 Retail US 5.1 ROM (Optimized) v1.0 now available.

Note:

Rom is smaller than previous 'Optimized' ROMs because many of the system apps are those originally found in firmware image. I'll update apps in future versions - once ROM is confirmed crash-free.​
[Moto G 4G Android Development] falle21:
Its the same

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] AndreiSant:
hi , i flashed eu xt1039 rom and radio sucefully and my phone dont recognized my carrier chip,crashes two apps service dm and other, what i can do?

EDIT: flashed xt1040 radio brazil and now worked, who is from brazil can flash xt1039 EU optimized rom and brazilian xt1040 radio normally
[Moto G 4G Android Development] ems328i:
Hi, I wiped my unlocked 4G in TWRP, and flashed XT1039 Retail Germany radio using mFastboot and then flashed Retail Germany 5.1 ROM (Optimized) zip (my 4G is from DE), and it seems to work except for DM Services, OMA Client Provisioning and Messanger all crash. Is there anything I have done wrong?
[Moto G 4G Android Development] lost101:
[MENTION=6398112]AndreiSant[/MENTION] [MENTION=4182073]ems328i[/MENTION] - The app crashes are known issue, but you can delete the folders in /priv-app to stop them. /priv-app/Mms is the Messenger app. Re-download Messenger from Google Play to restore it.

The ROMs are all in testing, and I require as much feedback as possible. I don't own a Moto G 4G / LTE handset - so I have no idea how the ROMs perform.
[Moto G 4G Android Development] AndreiSant:
and my phone dont show my number
[Moto G 4G Android Development] lost101:
Have you flashed the Lollipop Bootloader (v41.1A)? Did you erase 'modemst1' and 'modemst2' when flashing Radio Firmware?
[Moto G 4G Android Development] AndreiSant:
yes
[Moto G 4G Android Development] lost101:
Did you format /data in TWRP before flashing?
[Moto G 4G Android Development] falle21:
[MENTION=1006674]lost101[/MENTION] tonight I give a try for daily use to your optimized ROM to help you with this, Ill report later

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
[MENTION=6398112]AndreiSant[/MENTION] - Just to clarify, when you say "phone dont show my number" - does it show any number?
[Moto G 4G Android Development] AndreiSant:
no, show unknow
[Moto G 4G Android Development] lost101:
However you can still make calls?
[Moto G 4G Android Development] AndreiSant:
no
[Moto G 4G Android Development] lost101:
[MENTION=6398112]AndreiSant[/MENTION] - It's possible then that you need the XT1039 Retail Brazil 5.1 ROM. I will upload an 'Untouched' version shortly.
[Moto G 4G Android Development] AndreiSant:
thanks and if possible, post the brazilian radio too and optimized version :)
[Moto G 4G Android Development] lost101:
XT1039 Retail Brazil 5.1 Radio now available.
[Moto G 4G Android Development] lost101:
[MENTION=6398112]AndreiSant[/MENTION] - Try flashing that Radio with your current ROM.
[Moto G 4G Android Development] lost101:
XT1039 Retail Brazil 5.1 ROM (Untouched) is now available.
[Moto G 4G Android Development] AndreiSant:
[MENTION=1006674]lost101[/MENTION] thanks, now works fine :)
[Moto G 4G Android Development] falle21:
I'm on optimized version now, the thing I miss is the FM radio and a music player, I get the error but only one and don't affect anything of functionality, I report battery tomorrow after a heavy use. Performance is good by now

Thanks a lot [MENTION=1006674]lost101[/MENTION]

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Motorola FM Radio and the Music Player are available to download from Google Play.
[Moto G 4G Android Development] falle21:
I know, just to let you know, just wanna report all I found

Edit: cast screen don't work

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
You have to go into the Settings > Display option, and enable the tick-box - then reboot.
[Moto G 4G Android Development] falle21:
I did it, gonna try with second TV at night and I'll edit with result

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Depending on the TV make, sometimes you have to enable a 'Screen-Mirroring' Mode on the TV itself.
[Moto G 4G Android Development] falle21:
Don't work, I know, I have other devices and work fine

Enviado desde mi XT1040
[Moto G 4G Android Development] alakaboo:
XT1045/optimized is working pretty well so far. Thanks for all your hard work, [MENTION=1006674]lost101[/MENTION]. Flashed the modem per the FAQ then sideloaded the ROM. The screen flicker is severely distracting but it seems to have subsided after some time. My only issue is that I get a "DMService has stopped" error on every boot. Forcing it to close in Settings > Apps and clearing the data seemed to resolve it... for now!
[Moto G 4G Android Development] lost101:
Does anything happen? It really should be functioning.

Try turning screen off once to stop screen flicker.
[Moto G 4G Android Development] lost101:
ADDED: DM Service | OMA Provisioning Fix (Flash in custom Recovery)​
[Moto G 4G Android Development] VivaLaVent:
So, what was causing it?
[Moto G 4G Android Development] cvamoose:
The script just deletes both of them. What it means with regards to any of the roms functionality I don't know, but they already weren't running and everything I've used works.
[Moto G 4G Android Development] lost101:
My cure for now is simply to delete the folders - and not include them in near future Optimized ROMs. Right now the priority is to have every ROM in the collection booting without crashes - after this has been achieved I will update system apps and work towards reinstating those two services. I'm certain the cause of FCing is the install script.
[Moto G 4G Android Development] lost101:
Yes, they aren't essential at all.
[Moto G 4G Android Development] lost101:
XT1039 Retail Brazil 5.1 ROM (Optimized) v1.0 is now available.
[Moto G 4G Android Development] AndreiSant:
hey ,i had tested your EU optimized rom, perfect but the only problem is when i install the viper4android that doesnt work
[Moto G 4G Android Development] davidfp10:
Can I install it over a custom ROM like cm12?
[Moto G 4G Android Development] lost101:
I think you need to change the SELinux Mode from 'enforcing' to 'permissive.'

http://xdaforums.com/showthread.php?t=2524485​

Yes, just factory reset in custom Recovery and flash.
[Moto G 4G Android Development] aveyer:
Has anyone else had a problem with the google clock timer not ringing after the set time? eg I set a timer for 5 mins, the phone doesn't ring after 5 mins, it might eventually wake up and ring after -4mins (4 minutes after it should have rang in the first place.

I'm on stock 5.1 retgb, unmodified other than rooted and disabled some Moto services, i tried re-enabling the Moto services to see if it helps but apparently not.
[Moto G 4G Android Development] lost101:
From past experience with Moto G 'Falcon' - not formating /data in custom Recovery prior to flashing a ROM, can introduce such quirks. I recommend doing this format whenever possible.
[Moto G 4G Android Development] Travisholt92:
Do you know of any way to update the boot loader without ota?

(I'm aware it is not available for my device yet, and no I am not trying to flash another model's firmware. I would not risk bricking my device over an issue that isn't effecting me)
[Moto G 4G Android Development] me_is_rushin:
C'mon Moto. Give me 5.1 for my XT1045
[Moto G 4G Android Development] lost101:
OTA Update or motoboot.img from the correct Firmware image are the two main ways. I suppose it's possible someone could construct a motoboot.img from OTA Update, but I personally would not take the risk in flashing such a file.
[Moto G 4G Android Development] Rachid.Ala:
Last question please, if I update from 4.4.4 to 5.1 with the official method (ota update) the bootloader and radio gonna be updated as well and it will be difficult or maybe impossible to go back to 4.4.4 right?
[Moto G 4G Android Development] lost101:
I can only talk from my experience with non-LTE Moto G.

There is a screen-flicker that occurs when running Lollipop with the KitKat Bootloader. The same thing occurs if you have the Lollipop Bootloader and run KitKat. Turning screen off once fixes the issue until you next reboot.

I have been running Lollipop with the KitKat Bootloader since January and no harm has been caused by doing so.
[Moto G 4G Android Development] cpvm:
I am not sure but it will work on xt1045, I will try it tonight.

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] mooms:
Tried the XT1039 Spanish rom untouched:

Going to TWRP, made a backup of my ROM (stock 4.4.4), wiped everything and flashed the zip.

TWRP says the flashing failed. Rebooted the recovery and reflashed, no error this time.

When rebooting, I can see some flicker in the motorola logo (was expected).

First boot: stuck in bootlogo, forced hard reboot after 10 mins....

Second boot: Android is optimizing apps, text is in Spanish.

After booting and configuring date/lang: sim not found, no baseband....rebooting.....still the same....

Go to TWRP, wiping everything and restoring backup made before....everything working again...

So I suppose an updated baseband is mandatory with 5.1 ROM ?
[Moto G 4G Android Development] lost101:
[MENTION=5561802]mooms[/MENTION] - Thanks for testing. I had something similar happen on my XT1032, but thought it was due to different hardware. Can you try clearing dalvik cache?
[Moto G 4G Android Development] wurstel:
is it possible to dirty flash the optimized version over a stock installation?

and is there a factory image for eu or de already? i updated mine via OTA...
[Moto G 4G Android Development] mooms:
I had wiped everything before flashing.

I'm now on 4.4.4 again, and I will wait the availability of the full fastboot ROM for the XT1039 EU before attempting a new flash.
[Moto G 4G Android Development] wurstel:
dude, you cant flash the spanish version on your eu phone... no wonder you had no receptions, the modems are different.
[Moto G 4G Android Development] Martin-Casla:
Not sure if it'll work on xt1045... i've read on another forum, if you flash xt1049 lp on t1045, won't have signal...
[Moto G 4G Android Development] ssirK:
bonjour,

i flashed DE KK retail, then the DE OTA update, then a custom ROM and no problem with the modem, im also on FreeMobile

check there : http://xdaforums.com/moto-g/4g-deve...ware-kxb21-t2805619/post61404713#post61404713
[Moto G 4G Android Development] J4mps:
MULTIROM

[MENTION=1006674]lost101[/MENTION]

i just notice that one of the optimizations is multirom compatible. does this means we can install multirom app and use TWRPMULTI on our Moto?

did someone tried it?