yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] Oddb411:
I have a question about those firmware images: After taking the OTA to 5.1 on my XT1045, heads up notifications worked the first time. But after one factory reset, they have disappeared and there seems to be no way to get them back no matter how many times I reset or what methods I use. If I am having issues with heads up notification not working after factory resetting or re-applying the OTA update, will flashing a factory 5.1 image or ROM change anything, or do you think it will stay the same?
[Moto G 4G Android Development] Pupet_Master:
Cool i'll do that ;)
[Moto G 4G Android Development] lost101:
To flash a factory firmware image correctly, you include the command: fastboot erase userdata. This can make a significant difference.

The zips in OP are based on the firmware images; flashing one of those along with formatting /data in custom recovery will ultimately be the same as flashing a factory firmware image. The Untouched ROMs contain system files exactly as they are found in the firmware images.

Either way, you will fix the 'heads up' issue - a factory reset and flashing a firmware image / ROM are not the same thing.
[Moto G 4G Android Development] pan05:
Thank you [MENTION=1006674]lost101[/MENTION] for these zips.

Just installed Retail EU 5.1 ROM (Optimized) after a factory reset (no internal sd card wipe) and flashed lollipop radio using mfastboot. Everything seems to be nice and smooth except for the following:

I receive a message "DMService has stopped working" right after a reboot for 3 times. After that the message doesn't appear again.

I receive a message about "OMA Service has stopped working" for 1-2 times after a reboot. After that the message doesn't appear again.

On stock launcher, if i try to press the lock icon in a group of icons i receive a message "Launcher3 has stopped working" and launcher restarts.

I removed DMService and OMA Client Provisioning service and the first two issues seem to go away for now. Are there any known consequences to the absence of these two apks?

For the 3rd minor issue, i just replaced stock launcher with the Google Now launcher.
[Moto G 4G Android Development] lost101:
Thanks for the feedback. I am depending on this information so I can fix the ROMs. As previously stated, I cannot test the ROMs myself as I do not own a 4G / LTE Moto G.

I'm watching out for a cheap 4G Moto G - even with a cracked screen I could still hopefully tell if ROMs had issues.

I have experienced both pop-ups you mentioned before. I have some ideas on what will resolve the issues. I'm aware that Launcher3 (Trebuchet) has it's problems, but it is mostly functional. If you don't explore it's settings, it's fine. It is also tiny, 2.5mb.
[Moto G 4G Android Development] pan05:
Thanks for your response. From your experience are those two packages really necessary? No problems here so far after removing those.

Also i forgot to mention that i do not experience any screen flickering although i come from 4.4.4 reteu without touching the bootloader. I have twrp 2.8.3 custom recovery installed if that makes any sense.
[Moto G 4G Android Development] lost101:
Neither are essential in my experience. You may find that you cannot encrypt the phone; however doing so is a bad idea if you really want the best performance.

EDIT: Can you check for me if post-install zipaligning is functional. There should be a database file in /system/usr/zipalign.db
[Moto G 4G Android Development] pan05:
Yes, that db file exists in /system/usr/ directory among with a zipalign.log file.
[Moto G 4G Android Development] nantzen:
I had the same problem than pan05. In my case, only appeared the message about DMService. No warning from OMA Client Provisioning. I deleted DMService (after a backup) and everythings seems to work fine.

It seems that DMService and OMA Client Provisionong are related each other. From a Sony document I read "Device Management: A set of OMA (Open Mobile Alliance) standard mechanisms that enables remote interactive configuration of, for example, a phone". Maybe this info could help to understand.
[Moto G 4G Android Development] lost101:
The two services are related; for example if your carrier wanted to send you APN or MMS settings - these are the services used. I've resolved the issue before without removing these services.
[Moto G 4G Android Development] masantula:
Would you have a flashable zip of 4.4.4 for the 1045 variant?
[Moto G 4G Android Development] Sew00:
Hi, i installed yesterday but my phone was unable to connect to a mobile network. I own a xt1040 and flashed the radio for xt1040. Wifi worked but could not connect to a mobile network.
[Moto G 4G Android Development] lost101:
What Bootloader version do you have? It's stated on the fastboot screen.
[Moto G 4G Android Development] lost101:
It's coming next weekend.
[Moto G 4G Android Development] Sew00:
It seems that i have 41.16. Is that the version?
[Moto G 4G Android Development] lost101:
Yes. The Bootloader included with Lollipop is 41.1A. That is possibly the reason why you have no network connectivity.

This utility will update it to that version if you desire:

http://xdaforums.com/moto-g/development/falcon-bootloader-upgrader-tool-t3093793​

Can I just check regarding flashing the XT1040 Radio Firmware, did you use mfastboot? did you do the four commands manually?

mfastboot download:

https://www.androidfilehost.com/?fid=23578570567719065​
[Moto G 4G Android Development] Sew00:
Okey. I will try the utility.

Yes i used mfastboot. At first boot, withouth flashing radio firmware, it didn't recognize the wifi nor the cell radio.

After flashing, wifi worked and the cell radio icon appeared, but it didnt connect to the network.
[Moto G 4G Android Development] lost101:
Let me know if that solves it - I'll change the "Lollipop Bootloader not required" statement in OP.
[Moto G 4G Android Development] voland34:
Issues with Gallery

When i try to edit a picture within gallery app, it closes everytime. I'm running Retail Spain 5.1 ROM (Optimized) v1.0a; Gallery actually closes about 30% of the time if just watching pictures, but reopening eventually makes it work. With editing, there's no way, no matter how many times i try.

I had issues before with dialer and it was replaced with proper stock dialer in version 1.0; could it be it uses a non stock gallery variation?

Everything else is working great and smooth.

Thanks
[Moto G 4G Android Development] lost101:
Gallery app is not modified, simply the latest version. I think I know the problem.

For now, delete /system/priv-app/MotGallery and install the app from Google Play Store.
[Moto G 4G Android Development] voland34:
Keeps saying "installed" in Google Play Store. But theres a folder called "MotGallery2"...do i delete that one too?
[Moto G 4G Android Development] lost101:
Yes, I'll assume that's /data/app/MotGallery2 - an updated version downloaded from Play Store.
[Moto G 4G Android Development] voland34:
Yes, it worked now! (after restart). Everything's fine now. Thanks!
[Moto G 4G Android Development] killerBRs:
XT1039 Lollipop for BRAZIL?

RetBR
[Moto G 4G Android Development] lost101:
ROMs are based on Factory Firmware Images - not OTA Updates. Until there is a Factory Firmware Image for XT1039 Retail Brazil 5.1, it's impossible to make a ROM. Please wait.
[Moto G 4G Android Development] VivaLaVent:
Hey man, I installed the optimized version on my XT1039.

I'm really loving it, real smooth, so thanks!

Anyway, right after booting every time, I get the folliwing two errors:

i *dot* imgur *dot* com/dAYMMiF.png

i *dot* imgur *dot* com/UMHxykm.png

(I added a space because i can't add links to my posts yet)

If I press okay, the messages are gone, until I boot again. Any ideas?

Cheers, and thanks!
[Moto G 4G Android Development] lost101:
[MENTION=5916051]VivaLaVent[/MENTION] - Thanks for the feedback. This was discussed a few posts ago. I will update the ROMs as soon as possible.
[Moto G 4G Android Development] VivaLaVent:
Cool, thanks, anything else you'll update/fix?
[Moto G 4G Android Development] lost101:
Other than Gallery crashing - no other issues have been reported.

When ROMs are bug-free, then I will consider new features.
[Moto G 4G Android Development] lost101:
I need some help. It probably doesn't matter which LTE Model your phone is. Doing this should also stop DMService and OMA Client Provisioning crashing.

1) Install ZIPme

2) Delete the folder: /system/priv-app/Mms

3) Delete the folder: /system/priv-app/MotGallery

4) Install latest versions Google Messenger and Motorola Gallery from Google Play

5) Reboot to confirm crashing has stopped

6) Create two zips using ZIPme, one for Messenger and another for Motorola Gallery - either zip the folder in /data/app or use the 'App' option

7) Attach to post or upload elsewhere these two zips for me to download​
[Moto G 4G Android Development] VivaLaVent:
Hey man, I did as you said, but I had already updated the messenger with the play store, so after deleting the folders I had to reboot the phone to be able to install messenger again.

After a reboot, reinstalling them, and another reboot I still got three app crashes: dmservice, the provisoning thing and then one more dmservices crash.

Here are the zips:

https://drive.google.com/folder/d/0By3SFU3yG-zVY2VxNTZQOTQ5aG8/edit

Also, there's a motgallery2 folder, do I have to delete that too?

Also, the zips are without app data.

Hope this helps!
[Moto G 4G Android Development] pan05:
Same here. Tried the above steps but still getting those crashing errors right after boot.
[Moto G 4G Android Development] 90Ninety9:
OTA upgrade failed

WOuld the EU rom be suitable for UK moto G ( 1039) ?

The Lollipop OTA official Update failed , many times
[Moto G 4G Android Development] lost101:
Why not try it and report back. It should probably work fine.
[Moto G 4G Android Development] lost101:
[MENTION=5916051]VivaLaVent[/MENTION] - [MENTION=3507093]pan05[/MENTION] - These zips restore the original Messenger. Maybe now the crashing will stop, or possibly the ROM needs to be reflashed with these files restored.
[Moto G 4G Android Development] pan05:
Uninstalled Google Messenger and flashed your zip afterwards.

At first boot I received the message "Messaging has stopped working" among with the same old messages about DMService (2x) and OMA provisioning service (1x).

Cleared data for DMService and OMA and rebooted but the same behavior occurred.

After that I rebooted into recovery and cleared cache and dalvik cache. Now I receive only the messages about DMService and OMA provisioning service. So now we are back to square 1 again.

Anyway, thanks again for your attention on this
[Moto G 4G Android Development] lost101:
It is often the case that you cannot simpy re-add a service after installing Android. It may be necessary to take the ROM zip, extract, replace the 'Mms' folder with the original and rezip. Now cleanly flash the ROM.
[Moto G 4G Android Development] VivaLaVent:
Doing this will erase all user data, right? I am willing to try this.

EDIT: So I took your optimized rom, extracted it, took the mms folder from the zip you uploaded, replaced th roms mms folder with it, and zipped the rom again.

After flashing, The DMService and OMA messages were still there :(
[Moto G 4G Android Development] lost101:
Okay, thanks for trying that. Would you mind confirming if the 'Untouched' ROM for your model is free from these popup messages?
[Moto G 4G Android Development] VivaLaVent:
I'm on it ;)

---------- Post added at 12:11 PM ---------- Previous post was at 11:49 AM ----------

Sorry for double post, this does happen on the untouched version. Do you think it's bootloader/radio-related?
[Moto G 4G Android Development] lost101:
Have you updated Bootloader / Radio to versions included with Android 5.1?
[Moto G 4G Android Development] VivaLaVent:
My bootloader is 41.1A and I used the radio files you provided.
[Moto G 4G Android Development] pan05:
My bootloader version is 41.13 and i also used the radio files from post #1.
[Moto G 4G Android Development] lost101:
Are you both formating /data and doing a factory reset before flashing the ROM?
[Moto G 4G Android Development] pan05:
I performed the default factory reset through twrp 2.8.3. AFAIK that means wipe of system, data (no internal sd) and cache partitions.
[Moto G 4G Android Development] lost101:
The contents of Internal SD can be the source of issues. When testing ROMs, I always format /data to eliminate that as a possible cause of problems. If you can do it, it would be helpful - but I acknowledge it is an annoyance.
[Moto G 4G Android Development] VivaLaVent:
Hey man, can you link me the actual 5.1 image from Motorola, maybe I can flash that and flash your optimized zip on top of that
[Moto G 4G Android Development] lost101:
5.1 Firmware Images are here: http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795

However you cannot dirty flash the Optimized ROMs. They need to be cleanly installed to work as intended.
[Moto G 4G Android Development] pan05:
[MENTION=1006674]lost101[/MENTION]

I took a backup of /data and a copy of the internal sd and formatted /data afterwards. I restored the backup of /data as well as the contents of the internal sd (by using copy paste and a windows pc). The two error messages still pop up at boot.

Maybe in case i didn't restore the data backup everything would be ok now, but unfortunately i don't have the time to set my phone up from scratch again.
[Moto G 4G Android Development] killerBRs:
I can flash a Xt1040 Firmware on my XT1039? And rádio file for brazil xt1040?

I NEED

Blur_Version.21.31.1.peregrine_retbr_eu.retbr.en.BR IN XML Version :( or a compatible version.
[Moto G 4G Android Development] lost101:
I would not recommend flashing XT1040 files on your XT1039 - although my understanding is that the Radio Firmware can easily be changed back to XT1039.

However, it is still being established whether or not a Lollipop Bootloader is a requirement - you should definitely not flash the XT1040 Bootloader on XT1039.

The XT1039 5.1 Firmware Image will probably arrive soon.
[Moto G 4G Android Development] lost101:
I'm not really clear on what you did here. Did you try booting the ROM with a completely wiped /data?

I feel very limited without actually having access to Peregrine handset - I'm going to try to find a cheap one over the next few days.
[Moto G 4G Android Development] chino1791:
Lollipop Radio

Can I flash the radio lollipop of xt1039 If I'on cm12.1? I have the bootloader 41.1A and have a backup of my rom 5.1 official updated by ota
[Moto G 4G Android Development] ThomasBags:
Checking here every day until someone posts the XT1045 US LTE firmware and rom.
[Moto G 4G Android Development] karaflix:
Hi, I am currently using CM12.1 for moto g 4g XT1039 (peregrin) nightly and I would like to move to your awesome optimized stock rom. Will a data+cache wipe be enough or do I have to rollback to stock KK?

Also, I never flashed a custom recovery, i just run it via fastboot to install cm. I plan to install your rom the same way, would that be a problem?
[Moto G 4G Android Development] lost101:
Read earlier posts, I believe so.

No need to rollback, flash custom recovery via fastboot command: fastboot flash recovery twrp.img

I recommend formatting /data, as well as factory reset in custom recovery. Note that doing so will erase internal storage, and may erase external SD Card.
[Moto G 4G Android Development] chino1791:
How to know which radio firmware version I have?
[Moto G 4G Android Development] lost101:
Settings > About phone > Baseband version​

Model: Moto G 4G

Android Version: 5.1

Baseband Version: M8926_309101.02.03.14R
[Moto G 4G Android Development] chino1791:
So I have the same version and which is updated?
[Moto G 4G Android Development] lost101:
If you have that baseband, you have the latest (Lollipop 5.1) Radio Firmware.
[Moto G 4G Android Development] Sparubens:
Hi, what is the Kitkat bootloader version and what is Lollipop's on the 4G? Would like to know if I'm on the right bootloader
[Moto G 4G Android Development] lost101:
Lollipop Bootloader is: v41.1A
[Moto G 4G Android Development] VivaLaVent:
That'd be great, I'm really looking forward to your findings :D
[Moto G 4G Android Development] Speedo.thc:
Hello Lost101 , I used the Spain untouched zip to do my own mods , (Root Xposed) and it work like a charm for me , i also includes many updades inside , i write here to thanks you for provide this "base" for work.

If you like to see somme Screenshots and detail about what i removed , what i put inside, you can check here (where i post the rom) :

http://www.phonandroid.com/forum/post1859089.html#p1859089

In the end of the post you will also see that i didn't forget to thanks you.

tchao , Au revoir , a bientot :)
[Moto G 4G Android Development] lost101:
[MENTION=5300098]Speedo.thc[/MENTION] - Did you experience the DM Service or OMA Provisioning crash?
[Moto G 4G Android Development] Speedo.thc:
Yess , DM only on Optimized; DM and OMA in Untouched : it crash very well , even if i tryed to change it with my OTA files (British Captures , it always crash ...)

Another thing was Dialer don't work in Optimized (you know it) even if i tryed to change it with my OTA files

but Dialer worked in Untouched this is why i used this one for my mods.

Here is what i removed :

- 3c_main

- 3c_checkin

- 3c_devicemanagement

- 3c_notification

- 3c_ota

- AvatarPermissionsApp

- Avatar

- BodyGuardApp

- BasicDreams

- Chrome

- cloudprint

- DMService

- GuideMe

- HoloSpiralWallpaper

- HPLegacyPlugin

- LiveWallpapers

- LiveWallpapersPicker

- LMIRescueSecurity

- LMIRescue

- MediaShortcuts

- MotoAssist

- MotoCare

- MotoCareInt

- PhaseBeam

Here is what i added :

- Adaway

- CLS_partition

- hololauncherHD

- Kernel_Adiutor

- Link2SD

- PowerToggles

- Root_browser

- SuperSU :)

- Xposed

- Xposed_checkboxes_L

- Xposed_gravitybox

- Xposed_Power_Menu

- Xposed_Themer_L

- Xwidget

- Zipsigner

Screenshots:

;

;

I did small change on build prop to see what step of mod it is (for me since i started it'sN°V_11) but for people i call it N°_V1

Strangely my radio always work well, i never flashed it with fastboot so i suppose it's like the day i buy the Phone (XT1039 Amazon) but maybe i'am wrong and the OTA update i did by zip changed it ???

Here is list of what i did to this Phone :

- Stock 4.4.4

- CM11

- CM12

- Blisspop (my faforite)

- back Stock 444 (British) by fastboot coz i was root and many changes, but never flashed theeses dangerous files

( partition gpt.bin; motoboot.img; NON-HLOS.bin; fsg.mbn )

- OTA update 5.1 (british by zip) worked well but the Xposed was not ready to run

- Blisspop (again)

- Retail Spain 5.1 ROM (Optimized) v1.0 (the day you posted it)

- Retail Spain 5.1 ROM (Untouched)

- And now my 5.1 rootXposed V1 ...

Another thing i wanted to tell you , some over young peoples in france experiment a "Lost imei number" ,

i think it was not too far coz i founded a way to make it come back :)

but it's a hard way and little strange solution for this strange problem.

Voila !!! i'think i've tell you all my MotoStory , if you want to know another thing , just ask.

Cordialement ; have a nice day.
[Moto G 4G Android Development] baxtex:
I just got the offical OTA now but I am running stock 4.4.4 with some custom files and unlocked bootloader. Instead of flashing stock via fastboot and restoring everyhting I thought I'd just try this optimized rom instead. OP states that we should flash the lollipop radio and I have some questions about that.

Can I flash the radio after I hade flashed the new rom?

Can I roll back to the 4.4.4 Radio again?

If I restore a TWRP backup from 4.4.4 will it's radio also be restored?

---------- Post added at 01:07 PM ---------- Previous post was at 12:50 PM ----------

What Clock is that?
[Moto G 4G Android Development] lost101:
I need more feedback regarding what is and is not required for these ROMs to function.

You can flash radio at anytime, and rollback at anytime - as far as I am aware.

TWRP backups do not include radio.
[Moto G 4G Android Development] baxtex:
OK, any idea where I can find 4.4.4 modem?
[Moto G 4G Android Development] lost101:
I'll be making a thread with them this weekend.
[Moto G 4G Android Development] baxtex:
Okay! I guess I could also download the stock rom from this thread and extract the modem files?:

http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619

Update: Been using the optimized build for about 2 hours and I'l think I'l wait for version 2.

When I lock the device it shuts off, got tons of FC messages, get's stuck in bootloop when I try to boot and it always "optimizes" apps if manages to boot.
[Moto G 4G Android Development] lost101:
<double-post>
[Moto G 4G Android Development] lost101:
I recommend in TWRP, that you format /data and do a factory reset before flashing the ROM. Existing files on your phone can create issues.

It does not sound like you have installed the ROM properly.
[Moto G 4G Android Development] baxtex:
The installation failed at first, I restarted the recovery and then it worked. I did not however format the internal storage though, just wiped system, data, cach and dalvik. Did it 3 times.
[Moto G 4G Android Development] lost101:
The ROMs should not be massively broken in the ways you describe - something is either wrong with how you installed or the environment on your phone. That could be related to existing files in /data, your current radio firmware and / or possibly your Bootloader.
[Moto G 4G Android Development] baxtex:
Ok, then I will have to experiment then, I am using Xposed with Gravity box, Greenify, Amplify and Power nap, I guess that could be the issue maybe.
[Moto G 4G Android Development] lost101:
Use the ROM for a while before installing system MODs such as Xposed. It is my understanding that Xposed for Android 5.1 is highly experimental and unofficial - it's very likely the cause your problems.
[Moto G 4G Android Development] bloodhound42:
Hi Everyone can Someone post lib files from Stock 5.1 if you are presently using it please as i don't have ubuntu with me to extratct .dat files i even need media_codecs.xml File present in ETC folder please someone copy it on ur internal memory via any file browser and attach it here no need of rooting for those things

Someone do this Favor for me i will be very much thankful :p
[Moto G 4G Android Development] sevenrock:
Taken from XT1039_PEREGRINE_RETDE_5.1_LPB23.13-17_cid7_CFC.xml.zip
[Moto G 4G Android Development] bloodhound42:
thans but i even need lib files dude can u please extract and send me please
[Moto G 4G Android Development] lost101:
I would greatly appreciate it if someone could test these ROMs by doing a factory reset and formatting /data in TWRP before flashing.

That is the only way to clearly identify whether any issues exist. State ROM and Model when reporting.
[Moto G 4G Android Development] VivaLaVent:
I tested both the untouched and optimized version, with a factory reset, data wipe and twrp.
[Moto G 4G Android Development] lost101:
Thanks. So to recap, 'DM Service' and 'OMA Provisioning' crash on both versions? Which model are you?
[Moto G 4G Android Development] VivaLaVent:
XT1039, and everything is really smooth, I even use unofficia xposed with 6 modules without any issues but the DMS... and OMA... crashes
[Moto G 4G Android Development] bloodhawk33:
logo logo.bin

Hi im new un xda. I have a moto g 2013 xt1040, so i flash it with the ROM of android 5.1. Then i notice that The boot logo when i turn on mi device is the kit kat logo , but when i conected the charger the boot logo is the lollipop logo. also in google playstore the app motorola boot services appear update, but when i open that, there is a message that said incompatible device. Please help me . its ok muy instalation? My phone is ok only have this problem. Help me please
[Moto G 4G Android Development] lost101:
XT1040 Untouched or Optimized ROM?

Ask your question here: http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619
[Moto G 4G Android Development] bloodhawk33:
In this forum i download a flasheable zip for moto g xt1040, i flashed mi moto g in fastboot