yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
[MENTION=6210112]mrjamesbond[/MENTION] - You still have not told me if you are using Windows. You have not told me what model Moto G you have.

I'll have to assume you are in Windows.

1) Create a folder on C:\ called: motog_radio

2) Put in this folder: mfastboot.exe, NON-HLOS.bin and fsg.mbn

3) Open command prompt and navigate to this folder - cd c:\motog_radio

4) Type the command: mfastboot devices

5) Proceed to type the series of commands as previously instructed

6) Provide a log (copy and paste) of everything in the command prompt window​
[Moto G 4G Android Development] mrjamesbond:
thankyou

After much erring I think i have it thanks for your time and help
[Moto G 4G Android Development] bl4ckbluntz:
Thank you for the Lollipop Radio Firmware.

++
[Moto G 4G Android Development] bernida:
can I upgrade German XT1039 Optimized 1.0 to 1.0a by just flashing and clearing dalvik cache (without wiping data)?
[Moto G 4G Android Development] RLNTLSS:
when I give flash this rom I will have the bootloader lollipop ? I am looking to upgrade my bootloader to use the recent nightlys of cm.

I have a xt1039 in Brazil
[Moto G 4G Android Development] AndreiSant:
no ,you have to do it

here a link:http://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793
[Moto G 4G Android Development] lost101:
No, you have to factory reset in custom Recovery.
[Moto G 4G Android Development] sillycat98:
I downloaded 5.1 optimized for xt1045 and tried to flash in twrp, keep getting a symlink error. Restored my backup and it installs if 5.1 stock is already on it. Is it supposed to be like that? I've always wiped system for every other rom and this confuses me.
[Moto G 4G Android Development] lost101:
Please see post #2.

When flashing, I get the following: "E:Error executing updater binary in zip"?​
[Moto G 4G Android Development] 90Ninety9:
Would you or someone mind explaining how to flash the Radio ?

I presume this is done using the Fastboot Command :confused:

Apologies that I have not understood
[Moto G 4G Android Development] lost101:
Scroll back to post #459 - and read the discussion that follow.
[Moto G 4G Android Development] lost101:
I've started adding custom Recovery (TWRP, CWM) flashable zips for the Lollipop Radio Firmware.

Available:

XT1039 Retail Europe 5.1 Radio (Thanks [MENTION=5300098]Speedo.thc[/MENTION])

XT1040 Retail Brazil 5.1 Radio (Thanks [MENTION=5470150]falle21[/MENTION])​

Requested:

XT1039 Retail Germany 5.1 Radio

XT1039 Retail Spain 5.1 Radio

XT1040 Retail Canada 5.1 Radio

XT1045 Retail US 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] DocBrowns:
Well done. Maybe someone could build flashable Zips for the bootloader too, since many people asked me about that?
[Moto G 4G Android Development] lost101:
Not possible. The Bootloader can only be accessed via Fastboot. You will notice the Bootloader partition (motoboot) is not listed in that backup app.

At least that's my understanding on the subject.
[Moto G 4G Android Development] falle21:
Thanks for your hard and awesome work

Sent from my XT1040 running Desolation ROM
[Moto G 4G Android Development] ebol94:
After reading every page I found what I was looking for, nervermind :p
[Moto G 4G Android Development] gen_scheisskopf:
First of all thanks for your work :)

Currently I use Optimized EU version (dirty flash over stock DE) but I'd like to switch from Messanger to stock Mms apk.

Do I need any other files/folders than priv-app/Mms and priv-app/MmsService?
[Moto G 4G Android Development] lost101:
I thought Messenger was now the Stock Mms app in Lollipop. I'd only delete priv-app/Mms initially and test your new Mms apk.
[Moto G 4G Android Development] gen_scheisskopf:
OTA 5.1 DE provided stock Mms.apk, not Google's Messanger.

I've checked zip contnets, it was my mistake to remove priv-app/MmsService while I was trying to restore mms.apk from nandroid

EDIT:

I've replaced priv-app/Mms folder with the stock one, wiped dalvik-cache and stock Mms is back :)
[Moto G 4G Android Development] lost101:
I'd appreciate it if someone could provide a few screenshots just after installing. Homescreen, app drawer and ram-usage: Settings > apps > running. Thanks.
[Moto G 4G Android Development] falle21:
I can do it but Friday/Saturday, if you still need it I post a couple here for optimized Brazilian new version

Sent from my XT1040 running Desolation ROM
[Moto G 4G Android Development] bernida:
as you said I cannot upgrade the ROM (german XT1039 1.0 -> 1.0a) by just flashing system again without wiping data so I just wanted to ask if I can manually apply the changes, because I really dont want to reinstall everything etc

Removed: DM Service

Removed: OMA Provisioning

did that manually so it doesnt matter

Restored: Many of the system files are now the versions included in the Firmware Image

what does this mean? android should have updated versions of these app (in data partition) anyway, so it wouldnt make a difference right?

Tweaked: Low Memory Killer (LMK) made less agressive

how can I change it manually, which setting and in which file is it?

thanks alot :)
[Moto G 4G Android Development] lost101:
You can probably ignore the system file changes if you are having no issues. What I'm talking about is Google Play Services / Webview - which, if updated can cause problems for new installs.

Regarding tweaked LMK, check if the follow section is present in /system/etc/init.qcom.post_boot.sh (if not add it)

# Change adj level and min_free_kbytes setting for lowmemory killer to kick in

case "$target" in

"msm8926")

echo 0,1,2,4,9,12 > /sys/module/lowmemorykiller/parameters/adj

echo 2560 > /proc/sys/vm/min_free_kbytes

;;

esac​
[Moto G 4G Android Development] Pupet_Master:
You can always backup the data with Titanium Backup if you need the update

About the low memory killer, you can change it manually with Kernal Adiutor.
[Moto G 4G Android Development] bernida:
this section is present and the /system/etc/init.qcom.post_boot.sh files from 1.0 and 1.0a are identical

so whats exactly changed?

:confused:
[Moto G 4G Android Development] Speedo.thc:
Hello, Lhost , i can confirm the Radio (bin) File for EU is exactly the same between France/Spain/Germany/ and maybe for British.

Here is a new file (also including the lost101 bootlogo):

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

I also started to work on a deodex version and it works , just small things to fix (like app size don't apear on App manager) so i will try to deodex with another tool to see ..

Best Regards

*.*Speedo*.*
[Moto G 4G Android Development] hecmarrufo:
android-info.txt or android-product.txt

I get this error when flashing any of the versions through fastboot on my xt1045, how could i fix that?

(I used command:

fastboot -w

fastboot update <file location>

Tnx I A
[Moto G 4G Android Development] lost101:
You are correct. My mistake.

[MENTION=6739225]hecmarrufo[/MENTION] - You do not flash these custom ROMs via Fastboot. Please read the OP.
[Moto G 4G Android Development] h2o64:
[MENTION=1006674]lost101[/MENTION], is that intented that MotGeoFenceSvc is dropped from the optimized builds ? Is it safe ?
[Moto G 4G Android Development] lost101:
Yes, I intentionally removed it. Nothing obvious broke, but it can be restored if necessary.
[Moto G 4G Android Development] h2o64:
Wierd... Accoridng to the overlays it's the location provider. I'm actually surprised that it can be deleted.

Why would CM use it so ? I don't know ^^

Thank you
[Moto G 4G Android Development] johnmalay:
This is pure android for moto g 4g. I really love it. Im on xt1039 Retail EU 5.1 ROM (Optimized) v1.0a. The battery life is far better from other custom rom that i've try. Before this i can't play high graphic game like Dungeon Hunter 4. If i play that game my phone will surely hot & lagging. But now i can confirm my phone run Dungeon Hunter 4 smoothly without burn my hand because of this amazing rom ;) Just one thing i want to ask,my gps don't work. Any guide to make it work. Tq :)
[Moto G 4G Android Development] lost101:
There is also present in these ROMs: com.qualcomm.location and com.qualcomm.services.location.

Flash this in custom recovery: http://xdaforums.com/showpost.php?p=60648754&postcount=1537
[Moto G 4G Android Development] johnmalay:
tq lost101. gps fixer on google play work great! tq so much :D
[Moto G 4G Android Development] ToXicKnight:
Awesome work making this possible without updating the bootloader. Just a quick question, this doesn't actually update the bootloader does it? As in if I wanted to flash CM 12.1 on top of this, would it work? Thanks again for your brilliant work.
[Moto G 4G Android Development] lost101:
Nothing in this thread will touch your Bootloader. There is a separate utility for that: http://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793
[Moto G 4G Android Development] ToXicKnight:
Wow, thanks for the super quick reply, I found that by searching this thread and have successfully updated to CM 12.1 with a Kernel supporting all I wanted :D. If I get any issues with CM, I'll definitely come back to stock and use your flashable .zips!
[Moto G 4G Android Development] stekov70:
Hi and thanx for this good backup that I've installed on my retail Moto E XT1022. I have a problem with SMS app that crashes everytime I try to open any incoming message: I can read only the preview! Is this a known issue?

Many thanks.
[Moto G 4G Android Development] lost101:
You are posting in the wrong thread.

http://xdaforums.com/moto-e/development/rom-stock-motorola-lollipop-rom-t3167111​
[Moto G 4G Android Development] eruji:
Just wanted to say that im on XT1045 optimized 1a and its been working great. This rom with xposed and gravity box makes me not miss any custom roms. Thanks!
[Moto G 4G Android Development] nantzen:
this is what I had just after installing the 5.1 optimized version reteu on my XT1039. As you can see, I have also installed Nova Launcher.

Everythings is working fine! Installation through TWRP v.2.8.7.0 (only factory reset wipe)

I installed the ROM over a retde previously installed from OTA. Also changed radio file (even if radio de and radio eu seem to be the same)
[Moto G 4G Android Development] lost101:
[MENTION=5898044]nantzen[/MENTION] - Normally the Optimized ROMs have over 500mb free RAM after first boot. I would still like a screen-shot to confirm that is also the case with these ROMs.
[Moto G 4G Android Development] nantzen:
I'm sorry. Maybe I should have been take the screenshot just after boot, before the initialization of the Google account recovery and Nova installation. If I am free during weekend I could reinstall the ROM :)
[Moto G 4G Android Development] karaflix:
How can I stop the lockscreen from rotating? It's the first rom I've seen doing that and not giving an option to disable it (besides an xposed mod)
[Moto G 4G Android Development] lost101:
It's a build.prop edit. Remove the last line.
[Moto G 4G Android Development] nantzen:
I reinstalled the reteu optimized in few minutes this morning and I took a screenshot just after the first boot. I noted more free memory but still below the expected 500MB.
[Moto G 4G Android Development] lost101:
[MENTION=5898044]nantzen[/MENTION] - It could be related to zip-aligning, and one reboot would free up more RAM.
[Moto G 4G Android Development] nantzen:
For those people that want to hide the network's name in the status bar: settings > ..more > mobile network > uncheck "Show mobile network". I don't know who to blame for that. Anyway I am glad Motorola gave us an option to kill it.
[MENTION=1006674]lost101[/MENTION] maybe this hint can be added to "Bugs" or "FAQ" in post#3 together with the one about the rotation of the lockscreen (post#511) just to avoid people to search all along this topic. Thanks!
[Moto G 4G Android Development] dog121:
Is there a retail GB untouched/ optimized ROM available I looked on main thread but can't see one listed unless I'm missing it...
[Moto G 4G Android Development] lost101:
I didn't make one because it isn't necessary. Retail EU works fine in GB - AFAIK.

Certain countries require a specific ROM / Radio Firmware to function correctly. It's a lot of work to make a ROM for every country.
[Moto G 4G Android Development] dog121:
Thanks will flash retail EU. Appreciate your work and dedication to this thread...:) :)
[Moto G 4G Android Development] lost101:
New FAQ entries added. I would not ***** at Motorola regarding 'Network name' in status bar - there are one of the few Manufacturers that even allow you to hide it.
[Moto G 4G Android Development] lost101:
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

XT1039 Retail Spain 5.1 Radio

XT1040 Retail Canada 5.1 Radio

XT1045 Retail US 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] Costandre:
Hey I installed Retail EU Optimized and it's absolutely awesome! But i have two annoyances with it:

- Google keyboard (which is a system app in this rom) doesn't learn words... The personal dictionary is broken or something :s

- There is a carrier label on the bottom of the notification tray and on the bottom of the lockscreen (which makes it so there's two carrier labels in the lockscreen) Anyone know how to remove these in any way?

I know they're minor things but I would really appreciate a reply, thank you! (:
[Moto G 4G Android Development] cushcalc:
@lost101 (or anyone else):

I have tried several time to install the 5.1 optimized on my XT1045, and each time it gets stuck right after the Welcome Screen, searching for wifi. Also the screen flicker issue is present. I can go into Settings>Wi-Fi and the toggle is grayed out.

I re-downloaded, checked MD5, still no go.

The 4.4.4 optimized flashes fine, finds wi-fi fine.

Have tried with both CWM and TWRP. Thought I had bricked it at least once, kept getting the dead Android with the red triangle. Finally was able to get out of that.

The XT1045 is the unlocked US version, with bootloader unlocked, and previously rooted running 4.4.3

Any ideas?
[Moto G 4G Android Development] lost101:
I included an updated Google Keyboard in the ROM. I will restore the stock version in future ROMs. For now you could delete: /system/app/LatinImeGoogle - Then re-download from Google Play Store.

EDIT: I just remembered deleting the Keyboard would make it hard to do a keyword search on Google Play Store. You might want to install an alternative keyboard before doing anything else.

Flash the XT1045 Radio in OP.
[Moto G 4G Android Development] cushcalc:
So, flash the radio Before flashing 5.1?
[Moto G 4G Android Development] lost101:
Yeah. Instructions are in post #2 FAQ.

EDIT: If you want to wait a while, I'm about to upload a new XT1045 Optimized ROM.
[Moto G 4G Android Development] lost101:
XT1045 Retail US 5.1 ROM (Optimized) v1.0b now available.

Changelog:

Changed: Default CPU idle speed now 300hmz

Restored: Original Google Keyboard

Fixed: DM Service | OMA Provisioning FC (hopefully)​
[Moto G 4G Android Development] cushcalc:
Thanks! Got it going now.

Would be helpful if post #1 said flash the radio first . . .

Look forward to trying new version also.

PayPal donation 04B591571W039335Y. Lift a pint for me!
[Moto G 4G Android Development] lost101:
Sorry about that. I don't own a 'Peregrine' handset; I'm depending on others to tell me what is required. With 'Falcon' Moto G, you don't need a new Radio to use Lollipop. I'll change OP now.
[Moto G 4G Android Development] Costandre:
I tried this but still no luck my friend... :( welp!
[Moto G 4G Android Development] lost101:
XT1039 Retail EU 5.1 ROM (Optimized) v1.0b now available.

Changelog:

Changed: Default CPU idle speed now 300hmz (Already done)

Restored: Original Google Keyboard

Fixed: DM Service | OMA Provisioning FC (hopefully)​
[Moto G 4G Android Development] EpiccSkillZz:
is there any point of updating from 1.0a if i have no problems with the dm service crashing?
[Moto G 4G Android Development] lost101:
It may not be crashing for you because the services have been removed. They aren't absolutely essential, but I'm still trying to get them working. I doubt you have anything to gain by updating at this time.
[Moto G 4G Android Development] lost101:
I'm not sure if it's an issue with the ROM, a bug in the latest version of Google Keyboard - or you are just not using the app correctly: https://support.google.com/nexus/answer/2842292?hl=en-GB

[MENTION=333727]cushcalc[/MENTION] - The screen flicker you mention is caused by not having the Lollipop (v41.1A) Bootloader. Turn screen off once to fix - until next reboot. I have been doing so since January of this year and no harm has been caused by remaining with an older Bootloader.
[Moto G 4G Android Development] lost101:
XT1039 Retail Germany 5.1 ROM (Optimized) v1.0b now available. Also, XT1039 Retail Spain 5.1 ROM (Optimized) v1.0c now available.

EDIT: XT1040 Retail Brazil 5.1 ROM (Optimized) v1.0c added.

Changelog:

Changed: Default CPU idle speed now 300hmz (Already done)

Restored: Original Google Keyboard

Fixed: DM Service | OMA Provisioning FC (hopefully)​
[Moto G 4G Android Development] lost101:
XT1039 Retail Brazil 5.1 ROM (Optimized) v1.0a now available. XT1040 Retail Canada 5.1 ROM (Optimized) v1.0a also available.

Changelog:

Changed: Default CPU idle speed now 300hmz

Restored: Original Google Keyboard

Fixed: DM Service | OMA Provisioning FC (hopefully)​
[Moto G 4G Android Development] gabrj3l:
hey guys, so I've tried flashing cm12 like two days ago and I had the no sim card/baseband unknown problem, so I flashed the 4.4.4 stock radio firmware and still no change. after a while I gave up so I restored it back to stock 4.4.4. so I have a question, if I flash the retail Brazil version, is it okay if I also flash the updated radio firmware from Brazil, even if the rom I'm using right is retail Latin American? if it is, do I need to flash it before or after the rom? I'm from Peru btw. thanks in advance! :laugh:
[Moto G 4G Android Development] lost101:
[MENTION=6860262]gabrj3l[/MENTION] - The Retail Brazil 5.1 Radio Firmware will probably work for you. Flash before installing the ROM.
[Moto G 4G Android Development] gabrj3l:
[MENTION=1006674]lost101[/MENTION] okay, thanks!
[Moto G 4G Android Development] lost101:
All 'Untouched' ROMs have been re-uploaded.

Changelog:

Changed: Install script due to DM Service | OMA Provisioning issue​
[Moto G 4G Android Development] gabrj3l:
hey guys! is it okay to ask for seeders, please? I've tried downloading the XT1040_Retail_Brazil_51_Optimized_v1.0c.zip with its respective radio (XT1040_Retail_Brazil_5.1_Radio.zip) but it's stuck in Connecting to Peers :confused:
[Moto G 4G Android Development] lost101:
I guess you'll have to use 'Direct Download.'
[Moto G 4G Android Development] rodsayd:
I flashed XT1040 Brazil rom 1.0c and it's working perfectly, no FC's. I had to wipe internal storage and reset twrp in order to flash it, as stated in the faq from the second post. Thank you! Amazing battery life
[Moto G 4G Android Development] MaEdCo:
[MENTION=1006674]lost101[/MENTION]

I have a XT1040 from Colombia

so I confused, which ROM should I flash the Brazilian or the Canadian?

thanks for your help ;)
[Moto G 4G Android Development] lost101:
Either will probably work. Flash the XT1040 Radio Firmware if you experience Network / WiFi problems.
[Moto G 4G Android Development] MaEdCo:
thanks everything working so far, the strange thing is that whit the flip cover the screen have some line up and down , I think is beause the magnet...
[Moto G 4G Android Development] lost101:
The following has been added to the FAQ in post #2:

Why does my screen ripple | flicker?

This is due to compatibility issues between KitKat Bootloader and the Lollipop Kernel. Turn screen off once to fix. Upgrade Bootloader easily with: Bootloader Upgrader Tool​
[Moto G 4G Android Development] Scarlett25:
No worked with CWM?
[Moto G 4G Android Development] polytek:
This has been much discussed in this thread already. CWM will work (I used it), but the OP recommends TWRP. Read the thread for details.
[Moto G 4G Android Development] Artvaro:
Hi I just flashed the XT1039 Retail Spain 5.1 ROM (Optimized) v1.0c perfectly but when i try to flash the L radio firmware XT1039 - Retail Spain the instal its aborted. So when i reboot wifi and data is not working.

How do i proceed? Just Solved it!!

Thanks
[Moto G 4G Android Development] mike102871:
Can you share how you solved?
[Moto G 4G Android Development] MaEdCo:
lol and yesterday I ask a refund to my seller :D, now its fixed, thanks
[Moto G 4G Android Development] rodsayd:
Hey [MENTION=1006674]lost101[/MENTION] I have a question, this is the only rom where 4g works for me, on any other custom rom 4g doesn't connect. You know what the problem might be? With XT1040 Brasil rom is the only one where it did work for me.
[Moto G 4G Android Development] lost101:
Have you flashed the XT1040 Retail Brazil 5.1 Radio Firmware?
[Moto G 4G Android Development] rodsayd:
I have.. I don't have to reflash it every time I flash a new rom right? 2g and 3g works fine besides..
[Moto G 4G Android Development] lost101:
No, you should not need to reflash. I'm not sure what to suggest - maybe try the following commands after flashing another ROM:

fastboot erase modemst1

fastboot erase modemst2​
[Moto G 4G Android Development] rodsayd:
I've tried everything that came to my mind, that's why I'm finally asking. I don't know what difference this stock rom might have with the other custom rom but it only worked here. Thank you for your help.
[Moto G 4G Android Development] coltonbauman:
So I'm back, and I've just been having a lot of issues with trying to flash this. I'm wondering if I could flash the rom found in the link below, which should bring me back to stock, and then just see if the OTA update happens. It should happen shouldn't it? Is there a way to make my phone totally stock to force it to happen?

http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-kitkat-rom-t3160127
[Moto G 4G Android Development] lost101:
[MENTION=5186731]coltonbauman[/MENTION] - Last time you posted you where having problems getting fastboot to work. Did you succeed? These where my instructions:

http://xdaforums.com/showpost.php?p=62027647&postcount=427​
[Moto G 4G Android Development] coltonbauman:
Oh Thanks, I didn't see that. I'll try this out when I get a chance. As a side note, how do i post said log. Do I just copy and paste everything that happens?
[Moto G 4G Android Development] coltonbauman:
Thanks, I'll be reporting back soon!

Edit: I did what you said, putting them in a different folder, and so far, everything works great! It all went like it should, and I'm happy it's working!
[Moto G 4G Android Development] lost101:
XT1040 - Retail Latin America 5.1 Radio Firmware added to OP.
[Moto G 4G Android Development] lost101:
Added to OP:

Updated Google Dialer (Flash in custom Recovery)​

Note:

This Dialer includes new icon and 'search nearby places' feature. (Thanks [MENTION=5573353]VitaTaf[/MENTION] for the modified apk)​
[Moto G 4G Android Development] DeX1009:
Why is it not included in the rom?
[Moto G 4G Android Development] lost101:
It was only just created.
[Moto G 4G Android Development] Pupet_Master:
What the new Google Dialer change or fix?
[Moto G 4G Android Development] lost101:
I'm not sure if I follow you. This Dialer was previously not working with Stock 5.1 - but has now been modified to fix this.
[Moto G 4G Android Development] Pupet_Master:
Oh i wasn't aware it wasn't working. Thanks :)
[Moto G 4G Android Development] mike102871:
Try to flash xt1045 radio and it fails.
[Moto G 4G Android Development] lost101:
You must use Fastboot to flash the Radio Firmware. See FAQ in post #2.