yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] baxtex:
Is there any other reason to upgrade the bootloader then getting rid of the screen tearing after reboot?
[Moto G 4G Android Development] MaEdCo:
no
[Moto G 4G Android Development] joey000:
flashed XT1045 and it worked!!! (so far)

newbie question: so are there any advantages to trying to get CM12 on my phone now? I installed the "optimized" 5.1 LP ROM from the original post. I've been using CM11, but I can't remember why exactly I chose that. Basically I'm not a big fan of bloatware, nor of closed-source software or platforms that take my private data or make decisions for me about how to use my devices. But perhaps I can just install F-Droid and the same open-source apps I was using before with CM11, on my beautiful new LP 5.1 phone?

Just curious if anyone has any comments or suggestions.

Otherwise, thank you to lost101 and everyone else who helps with these projects.

Oh, yeah I've got an old booloader (41.10) which won't seem to let me install CM12, and I don't have easy access to a windows box to install a bootloader upgrader, which scares me a bit in any case - as a newbie each new thing I try makes me a bit nervous... haha.
[Moto G 4G Android Development] cesar humberto:
hi, do I need to be root for installing this? , I am junior on android. thank you
[Moto G 4G Android Development] lost101:
It's often reported that Stock ROMs such as these offer better Battery-life and performance as the firmware source has been developed by Motorola themselves.

You flash the zip first. The Optimized ROMs are pre-rooted.
[Moto G 4G Android Development] jxk25:
Hey [MENTION=1006674]lost101[/MENTION]! (or anyone that reads this and has the files, really) Could you re-upload/provide a mirror for the Radio Firmware download for XT1045? There are no seeds for the torrent and the "Direct Download" option fails every time.

Thanks! And keep up the great work.
[Moto G 4G Android Development] lost101:
[MENTION=2189799]jxk25[/MENTION] - Mirrors for Radio Firmware added to OP.
[Moto G 4G Android Development] Membrillo007:
Are you planing to make a flashable zip for Stock Retail Latin America firmware?

Tap-a-talked from my Moto G running Paranoid Android/ Stock Kernel
[Moto G 4G Android Development] lost101:
Is it necessary? What would it offer, that the XT1040 Retail Brazil ROMs don't already provide?
[Moto G 4G Android Development] baxtex:
I'm on Optimized v1.0a and when I take a picture and swipe to get to the gallery, the gallery app always crashes.
[Moto G 4G Android Development] lost101:
I need Model and country / version also.
[Moto G 4G Android Development] cpvm:
I already try it on my xt1045 and it doesnt work, i wipe everthing (system, cache, data, dalvic cache, sdcard) and it doesnt work.

It says some link failed (1) or something like that, it says that after flashing almost everthing.
[Moto G 4G Android Development] lost101:
This is a common custom recovery bug. Try restarting recovery and flashing again.

Alternatively you may need to format /data. Note: this will delete anything on internal storage - photos, music, videos etc.
[Moto G 4G Android Development] cpvm:
thank you, it´s booting, will report later.

edit

It works but i do not have signal, and wifi too.

The photo editor force close.

Some apps force close

Every boot it needs to optimize apps

It has ambient display.

The dialer can rotate.

The transitions sometimes are laggy but everything else is smooth

It has a new message app

It comes with an app called brazilian app.

It doesnt set the correct hour, i think it occours because it thinks that it doesn have a sim.

It has a new equalizer

And usb otg seems to work
[Moto G 4G Android Development] J0kker:
Got the OTA zip for ret eu yesterday, i hope full firmware will be available soon, can't wait to try an optimized version of it :)

Thanks for the work !
[Moto G 4G Android Development] lost101:
[MENTION=4240687]cpvm[/MENTION] - Thanks for the helpful information. Could you clarify that you flashed the XT1040 Optimized ROM on an XT1045?

Some of the issues are expected.

No network / WiFi - Perhaps fixed if you flash the XT1040 Radio Firmware or you may need specific kernel modules for XT1045 not included.

Incorrect hour / time - This is normal, fixed once the ROM connects to phone network / carrier or Internet.

Animation lag - This is because I reduced the idle CPU speed from 787mhz to 300mhz - See 'Recommended Settings' in post #2 above for how to speed up animations so lag is not noticeable.

Apps Optimizing every reboot - This behavior can sometimes be associated with Kernels. I'm starting to suspect each model of LTE Moto G has it's own specific Kernel / Kernel Modules. Maybe this does not happen when the XT1040 ROMs are flashed on an actual XT1040, or XT1039 ROM on an XT1039.​

EDIT: If there are people already running Lollipop on XT1045, one of them can dump the Kernel and Kernel Modules. These could then be flashed over the files in the XT1040 ROM - perhaps making it fully functional on XT1045.

Instructions:

Your personal data will not be included. I only want: Kernel (boot) and Modem.

ADB Dumping Methods: *ROOT REQUIRED*

You need to grant the SuperSU permission popup that will appear on your phone.

Radio:

adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/radio.img"

adb pull /sdcard/radio.img​

Kernel:

adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/sdcard/kernel.img"

adb pull /sdcard/kernel.img​

Kernel Modules:

adb pull /system/lib/modules c:/XT1045_Kernel_Modules/​
[Moto G 4G Android Development] CJMom:
I have transition animations lag even when the CPU speed is 787mhz, But If I turn on the "Disable HW overlays" option in Developer options it's smooth. Do you know if that's a problem with the ROM or do I need to factory reset / etc ...

Thanks
[Moto G 4G Android Development] lost101:
How have you arrived at Lollipop? OTA Update or Facory Firmware image? The only way to get a true understanding of the performance of 5.1 on Peregrine is to format /data and fastboot flash the firmware image or flash one of the zips above.
[Moto G 4G Android Development] CJMom:
I flashed stock 4.4.4 firmware (and erased userdata), only updated Motorola update services and applied the OTA, then wiped cache partition afterwards.

The transition animations sometimes lags sometime not, it's seems very random,

There are places where it happening almost every time like in the apps menu in options, (Options -> Apps)

when I tap an app to see it's information the transition animation lags 90% of the times.

but yet again, if I check "Disable HW overlays" everything is always smooth. I'm not sure though what the real affect of this setting, that's why I want to know if it's common with all users or not.
[Moto G 4G Android Development] lost101:
It could be something introduced by the OTA Upgrade process.

I run 5.1 on Falcon but with all animations set to '.5x' - no problems here.
[Moto G 4G Android Development] CJMom:
5.1 is out for falcon? I thought only 5.0.2 is out for it. Anyway, Thanks, will try to factory reset later on.
[Moto G 4G Android Development] lost101:
The Falcon Google Play Edition got 5.1 a few months ago.
[Moto G 4G Android Development] cpvm:
I flashed untouched version an it has lag in the transition animations,

I do not flashed any modem.

And i flashed the xt1040 in a xt1045.

Enviado desde mi XT1045
[Moto G 4G Android Development] CJMom:
Try enabling Developer options and activate "Disable HW overlays". and see if that's help. It might eventually be a wide spread issue with the ROM
[Moto G 4G Android Development] cpvm:
I'm using kitkat again because it doesnt have signal.
[Moto G 4G Android Development] icefun:
Hi, does this rom contain Czech language? Thx :)
[Moto G 4G Android Development] lost101:
Unfortunately I can't answer your question. I don't own a Moto G 4G. I'm depending on people on this subforum to test and provide feedback.
[Moto G 4G Android Development] iorikyo645123:
seems the new lilipop rom will only recognize 5.1 radio

my xt1042 flash both xt1039 xt1040 untouched rom, all shows unknown baseband in the system even after i flash xt1042 4.4.4 baseband

so i guess xt1042 xt1045 users will have to wait for the official 5.1 rom
[Moto G 4G Android Development] lost101:
If you want to try flashing the XT1039 / XT1040 Radios, here are the files. I'm fairly confident you can simply restore your previous XT1042 Radio - but proceed at your own risk.

XT1039 5.1 Radio: https://www.androidfilehost.com/?fid=24052804347765505

XT1040 5.1 Radio: https://www.androidfilehost.com/?fid=24052804347765506

XT1042 4.4.4 Radio: https://www.androidfilehost.com/?fid=24052804347765509

Fastboot: https://www.androidfilehost.com/?fid=23578570567719065

Use the following Fastboot commands:

mfastboot flash modem NON-HLOS.bin

mfastboot erase modemst1

mfastboot erase modemst2

mfastboot flash fsg fsg.mbn​
[Moto G 4G Android Development] famospark:
Phone Network and WIFI not working

Deleted
[Moto G 4G Android Development] panchovix:
Cant flash it on XT 1040 (optimized version), says "E:Error executing updater binary in zip '/(zip location)'"

And seems the zip is fine downloaded
[Moto G 4G Android Development] baxtex:
Sorry, XT1039 Europe.
[Moto G 4G Android Development] lost101:
I will upload new ROMs as soon as I have time. For now, flashing this zip in custom Recovery should resolve the problem:

http://xdaforums.com/devdb/project/dl/?id=14038​
[Moto G 4G Android Development] tempsuer230842:
Sorry if this has been answered before, I couldn't see it in the thread

I have a UK xt1039,

is it possible to flash the radio for

XT1039 - Retail EU: [TWRP] on this phone I have?

Also, the instructions in the OP were not very clear to me, it says to extract the files, do you do so on the root of the phone, and then run the commands with mfastboot, or is there a way to push them? the eu zip I downloaded did not contain many of the file names in the instructions, so I'm left somewhat confused.

Thanks
[Moto G 4G Android Development] lost101:
No

The fastboot instructions only apply to the 'fastboot' Radio Firmware zip. Alternatively, simply flash the 'TWRP' zip in TWRP.
[Moto G 4G Android Development] godiedelrio:
Flashable radio firmware zip for XT1045 and Lollipop

Hello everyone. Has anyone dumped the radio firmware for an XT1045 and Lollipop?

The radio log I took with

adb logcat -b radio

shows radio issues and I'm wondering if flashing the radio firmware in zip format would solve the issue. I've just flashed a radio firmware with mfastboot but it didn't solve the problem.

Just in case anyone is interested in, these are some of the lines in the log that I think are related to modem/radio problem:

E/RILQ ( 234): (0/234): RIL[0][rild] qcril_qmi_load_esoc_info: Unexpected number of modems 0
E/RILQ ( 234): (0/234): RIL[0][rild] qcril_db_init: Failed to open qcril db 14
E/RILQ ( 234): (0/234): RIL[0][main] qcril_qmi_modem_power_process_bootup: ESOC node is not available

Thank you very much
[Moto G 4G Android Development] lost101:
[MENTION=6854999]godiedelrio[/MENTION]- Did you do all four of the fastboot commands mentioned in post #2 FAQ?
[Moto G 4G Android Development] godiedelrio:
Yes, but the problem persists. Now I wonder if flashing through TWRP makes any difference or it's exactly the same.

Thank you
[Moto G 4G Android Development] lost101:
I would try flashing the ROM using latest TWRP from here:

http://xdaforums.com/moto-g/4g-development/collection-somcom3xs-experimental-corner-t2996266​

If you still have issues, make sure to format /data in TWRP before flashing ROM.
[Moto G 4G Android Development] rodsayd:
You can't flash those radio files through TWRP, you have to extract them and flash them via fastboot :good:

Edit: Sorry, I didn't realize that lost101 had uploaded flashable zips for Radio firmware too.
[Moto G 4G Android Development] baxtex:
Regarding the Wifi Sleep policy, what does it actually do?

I have set it to "never" and sometimes when I wake my phone I se the 4G icon in the statusbar. So this means that it turns off wifi and uses mobile data when the phone is sleeping? Won't this drain more battery than wifi?
[Moto G 4G Android Development] godiedelrio:
The ROM you are referring to, does include the radio firmware? I'd like to try flashing only the radio firmware through TWRP, but it seems that the radio firmware for the XT1045 hasn't been packaged in TWRP format yet.

Thank you
[Moto G 4G Android Development] lost101:
The available fastboot files for XT1045 Radio Firmware would be identical to a TWRP version. The issues you are expereincing are related to your installed Android. I recommend you cleanly flash a new ROM.
[Moto G 4G Android Development] falle21:
The Brazil xt1040 radio files for twrp don't work. And at least in Argentina the lati America radio files for xt1040 works so much better.

Thanks for your work

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] zvz2:
first of all thanks so much [MENTION=1006674]lost101[/MENTION] for providing all the files and also helpful comments!

apart from that, did anyone manage to get the phone encrypted on any of these stock versions? I tried on the optimized EU 1.0b but it failed without and error message or anyting. The phone just rebooted.
[Moto G 4G Android Development] lost101:
The Optimized ROMs are about maximum performance, and have many services removed. Encryption support has been removed because it's use slows the phone down.
[Moto G 4G Android Development] zvz2:
In the untouched EU version it doesn't work neither. Trying the untouched Germane one now ...

I don't know why but I get a constant AOSP-Keyboard error from the beginning of the first boot in any of the German stock ROMs. So I can't even get to the point of encryption. Anyone else experiencing this problem?

Recovery is TWRP 2.8.7 encryption.
[Moto G 4G Android Development] rodsayd:
Are you using the TWRP that has encryption on it? From THIS post.
[Moto G 4G Android Development] Albertsource:
MOTO G XT1045 Dead HARD BRICK

Heyy buddies, with this ROM 5.1 can i fix my hard bricked moto g XT1045??

i mean, inside of this are the necessary files to repair the bootloader??, my phone is bricked because: Updated from 4.4.4 to 5.1 via OTA, then, don't like it, so, Downgrade from 5.1 to 4.4.3, everything nice, then, an update to 4.4.4 via OTA showed up, then in the process of the update, the phone just died..
[Moto G 4G Android Development] zvz2:
Yes. When I start the encryption it shows the symbol (the green droid with the gear) for a few seconds then it reboots to the system with no changes.
[Moto G 4G Android Development] lost101:
[MENTION=5837308]zvz2[/MENTION] - I need to correct myself. Encryption support is something that has worked in the Untouched ROMs on other Motorola phones, but get's broken in the Optimized ROMs. I have tried to establish the exact cause - to the point of removing almost all modifications to the Optimized ROMs.

At this time, I'm left wondering if 'rooting' breaks Encryption support. Could you test the Untouched ROMs without root if you have not already done so.
[Moto G 4G Android Development] Gianlu92:
Hi, I am using the Optimized ROM for xt1039, and I was wondering if someone else reported random FC when opening the Gallery app. Most of the time it starts normally, but when I don't open it for a while and then I open it, it shows me the FC messagge. Tried cleaning data and cache of the app but still nothing.
[Moto G 4G Android Development] lost101:
Try flashing this zip in custom recovery: http://xdaforums.com/devdb/project/dl/?id=14038
[Moto G 4G Android Development] Gianlu92:
Thanks, will test right now.

EDIT: still nothing, FC right after I open it.
[Moto G 4G Android Development] zvz2:
Maybe you're right. I tried already with the untouched EU ROM and without root and it didn't work. So far I haven't found anything on the internet where somebody with a rooted peregrine had a working encryption ...

I would've tried with the untouched German ROM as well, but as I said I can't get any of the German ROMs to work. I get an error message "AOSP keyboard had to be closed" or something similar from the beginning of the very first boot of these ROMs so I can't do anything. I wonder if I'm the only one having this problem with the German ROMs.
[Moto G 4G Android Development] lost101:
I'll be uploading new Optimized ROMs in the next fews hours with this fixed.

Something doesn't sound right with the Untouched ROMs. I'll test shortly.
[Moto G 4G Android Development] elpitu72:
hello, my phone is xt1039 , and Argentina does not take me 4g signal , radio can flash my xt1039 Latin xt1040 ? Thank you
[Moto G 4G Android Development] lost101:
I just tested the Retail EU Untouched ROM and Encryption worked perfectly. I recommend that you format /data in TWRP - note this will erase internal storage.

You can try, but does the XT1039 Brazil Radio not work?
[Moto G 4G Android Development] elpitu72:
if I tried to radio xt1039 Brazil , but took no signal , if I flash my radio xt1040 xt1039 no risk that the cell is broken ? Thank you
[Moto G 4G Android Development] lost101:
You need to explain more about what you have done to the phone, as Radio Firmware may not be the issue. What is your Bootloader version? That can play a role in Radio functionality.

This tool will upgrade your Bootloader: http://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793 (Only flash XT1039 Bootloaders)
[Moto G 4G Android Development] elpitu72:
I have updated bootloader ( 41.1A ) , I could not think alternative but to flash a radio xt1040 , or I need to try something else? So far all that flash was the radio, thank you for your answers
[Moto G 4G Android Development] lost101:
I would flash the XT1039 Retail Brazil 5.1 Firmware Image entirely.
[Moto G 4G Android Development] elpitu72:
if I 'm going to try to flash it completely with retail brazil, what I need is to take the band 4 or 17 , but I wrong to work in Argentina . Thank you. If you have something else to tell me hear you.
[Moto G 4G Android Development] lost101:
[MENTION=6591570]Gianlu92[/MENTION] - Here is a new recovery zip (latest Camera and Gallery):

<link removed>

EDIT: Sorry, still not fixed. Will try again tomorrow.
[Moto G 4G Android Development] novato97:
question, i have moto g xt1039 (Retail Great Britain). is it any problem i i install one of these roms? like eu version? :)
[Moto G 4G Android Development] lost101:
That's why there is no Retail GB ROM, Retail EU works fine.
[Moto G 4G Android Development] novato97:
;) thanks man. keep good work :good:
[Moto G 4G Android Development] Gianlu92:
I really appreciate your dedication, thanks, I keep on waiting!
[Moto G 4G Android Development] Dinepada:
WIll the XT 1045 work with Peruvian Version?
[Moto G 4G Android Development] lost101:
[MENTION=6591570]Gianlu92[/MENTION] - I've tried everything I can think of, but Gallery still crashes after reboot. I'm starting to suspect it's a bug in the latest Gallery apk and it crashes for everyone, even those with locked Bootloaders.
[Moto G 4G Android Development] Gianlu92:
I can't remember whether it happened with the official firmware or not. Thanks anyway for the effort, I think I can still live with it as it only happens once in a while.
[Moto G 4G Android Development] lost101:
XT1045 Retail EU 5.1 ROM (Optimized) v1.1 now available.

Changelog:

Changed: ROM is now Deodexed.

Updated: Google Calender | Clock | Dialer | Keyboard

Updated: Google Messenger | Play Services | Play Sore

Updated: Motorola Camera

Removed: Motorola Gallery (Latest version has bugs)

Added: Piktures (Gallery replacement)​

EDIT #1: All XT1039 ROMs updated.

EDIT #2: All ROMs updated.
[Moto G 4G Android Development] DeX1009:
[MENTION=1006674]lost101[/MENTION] now you can add "Deodexed" in first post, next to Debloated, Zipaligned, Rooted, Busybox, init.d Script Support ecc :)
[Moto G 4G Android Development] Gianlu92:
[MENTION=1006674]lost101[/MENTION]: just to let you know, I tried the flashable .zip you gave me with another (non stock) ROM, and Gallery is working perfectly.
[Moto G 4G Android Development] lost101:
If you reboot the phone you may find it crashes.
[Moto G 4G Android Development] Gianlu92:
It doesn't, just tested.
[Moto G 4G Android Development] lost101:
Can I check that you are using the latest version of Gallery available on Play Store?
[Moto G 4G Android Development] Gianlu92:
The one in the zip file is 304138, I couldn't find any version number on Play Store.
[Moto G 4G Android Development] polytek:
I can't make Gallery (ver. 520012) crash after reboot either, although Tapatalk did crash for some reason. Are there specific actions that cause a crash? (Canada - Untouched)

Feet don't belong in shoes.
[Moto G 4G Android Development] lost101:
I did all my tests yesterday with a Deodexed ROM - perhaps Deodexing has created this issue.
[Moto G 4G Android Development] mike102871:
Can recovery flashable zips be made to update bootloader and radio. Have seen this done in moto nexus 6 and some other devices.
[Moto G 4G Android Development] DeX1009:
http://xdaforums.com/xperia-zl/general/cm12-1-cell-standby-mobile-radio-active-t3188147

Can you add this fix in optimized rom? Battery life would be much better.
[Moto G 4G Android Development] lost101:
Not possible as there is no source code available for these ROMs. Xposed Framework is the only way you can add that fix: http://xdaforums.com/xposed/modules/xposed-mobileradioactivefix-t3189393

There are already some flashable zips in OP for Radio Firmware. For the remaining models, I've requested them but no-one will deliver.

You can't have a flashable zip for Bootloader as Recovery has no access to that partition. Bootloader can only be changed via fastboot.

--

REMINDER: I'm still looking for people to dump the following Radio Firmware. It's been pointed out that Retail EU Radio covers all EU countries, but for the sake of completion - I'd like to have the following in OP.

Requested:

XT1039 Retail Germany 5.1 Radio

XT1040 Retail Canada 5.1 Radio​

For simplicity, use Partitions Backup & Restore to backup the following partitions as .img: /modem and /fsg

Zip files and attach to your post. Thanks.
[Moto G 4G Android Development] jmcollis:
Hi. I've done a xt1045 retus firmware dump for you. Please grab it from here.

https://www.dropbox.com/s/gn08nv1ezgdptr3/Xt1045-retus-firmware.5.1.zip?dl=0
[Moto G 4G Android Development] nestul:
fsg + modem .img files from my phone 5.1 Spain ROM

xt1039 files. I have extracted fsg and modem partitions to img using the app you advise. About phone screenshot also attached for checking.

Are these files what you were looking for or are they outdated or something?

https://drive.google.com/file/d/0B4pVyupoYGN1YXVTQmhpZ1B3eVU/view?usp=docslist_api

Cheers
[Moto G 4G Android Development] lost101:
As long as you flashed via fastboot the Lollipop Radio, or did an OTA Update - those are the files I want.
[Moto G 4G Android Development] nestul:
I did an OTA update I remember, and later I clean flashed via fastboot your untouched ROM, so they should be the right ones

Enviado desde mi XT1039 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Following files added to OP:

XT1039 Retail Spain Radio Firmware (custom Recovery flashable) - Thanks [MENTION=3912806]nestul[/MENTION]

XT1045 Retail US Radio Firmware (custom Recovery flashable) - Thanks [MENTION=4594112]jmcollis[/MENTION]​
[Moto G 4G Android Development] nestul:
I forgot to answer this before:

Is there any personal information just as IMEI inside those files I shared?

Thanks.

Enviado desde mi XT1039 mediante Tapatalk
[Moto G 4G Android Development] lost101:
No.

EDIT: This thread covers where the IMEI is stored: http://xdaforums.com/moto-g/help/imp-imei-backup-scripts-moto-g-eall-t3174569
[Moto G 4G Android Development] zvz2:
Thanks a lot, formating data did the job.
[Moto G 4G Android Development] zvz2:
However, once rooted, it seems you can't encrypt the phone anymore. If anyone finds a way to do it, please let me know.