yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
When I started this thread, people would have reported such an issue. So at time of release, it did not exist. Consider other factors. Are you using an SDCARD? What happens if you don't use it? Maybe it needs formatting or is faulty. Maybe issue is due to changes in Android over the years - Google's software infrastructure is not the same as it was when these ROMs were released.
[Moto G 4G Android Development] Brian D:
Now we are getting somewhere. There are issues cropping into the device and maybe you are correct. But I think that maybe a larger warning on the 1st post that these issues are beginning to appear might deter someone from doing this update and then not being happy. I have since downgraded my XT1045 back to the original version, however there is still the issue of the flicker. Yes, there is a work around, but a work around is not a solution. Right now, there does not seem to be a solution.

Again, I am not pointing fingers nor accusing anyone of wrong doing. Just that these issues are appearing and it is disheartening to have a perfectly fine phone stop being perfectly fine. The phone still works, data work, wifi works, I can make and receive calls. So other than kicking myself in the behind for not letting sleeping dogs lie, I kicked the dang dog and now regret it.
[Moto G 4G Android Development] lost101:
Please stop compressing together different issues just to support your own world-view. The vast majority of people greatly benefit from customization of Stock and AOSP ROMs, that is why this forum exists.

You are incorrect in your previous assertion that running any version of Android other than pure OEM Stock will be problematic. I have many years of experience with Motorola handsets and personally always run optimized Stock with no issues.

Regarding the 'optimizing apps' message; You could try deleting the following file in the optimized ROMs:

system/etc/init.d/darky_zipalign​

Secondly, downgrading of Bootloader is extremely dangerous and usually impossible. You have correctly identified the Bootloader is causing your screen to flicker with certain Kernels. This is something that can be permanently resolved with a Kernel created to address the problem.
[Moto G 4G Android Development] Brian D:
Wow, you are taking this way too personal.
[Moto G 4G Android Development] IronTechmonkey:
Huh? The replies to you were analytical, descriptive, offered a workaround/solution, and did not seem personal at all.

You seem to expect that your passage through this software universe be guaranteed from the start to have no future issues. Little in life is like that, no less software development. If you don't like the meal, then don't pull up to the table, or even better, pull up to the stove and cook us up something that you think is better ;).
[Moto G 4G Android Development] lost101:
Apologies if my tone was too strong. My only intention was to try to help.
[Moto G 4G Android Development] Brian D:
And it was my intent to only advise what issues were now visible, not to point fingers at anyone. We must now agree to disagree. But so you know, the ROM did work other than the issues I reported and they were

not

caused by your work.
[Moto G 4G Android Development] IronTechmonkey:
IMO Your tone was just fine and in particular that point had to be made. I've been using custom ROMs on 2 Peregrine devices for years to better effect than stock firmware, as has been the case for 5 years across 6 other Moto devices as well. Now I'll get out of here before I continue typing and make this worse. Thanks for giving us this firmware option.
[Moto G 4G Android Development] Shaileshkr:
Thanks,

Shailesh Kr.
[Moto G 4G Android Development] Brian D:
I have since reloaded the 5.1 firmware and and have figured out the problem with the "optimizing..." issue. As long as I do not upgrade SuperSU from 2.46 (the version found in the ROM) then my XT1045 works as advertised. It seems that every time I did any kind of SuperSU upgrade, or tried to back out of the upgrade the phone would do the "Optimizing..." every time after a reboot.

So, for ME, the answer was to not allow SuperSU to upgrade. Took me many times loading and testing before I narrowed it down. This was tested with SD card in and out and the results were the same.

This is just an FYI if anyone is having the "Optimizing..." issue at boot.

Summary: For my XT1045, "Optimizing..." at boot was being caused by an upgrade of SuperSU 2.46 to any version.

Again, thanks for the 5.1 ROM.

added: I tried to upgrade SuperSU via the TWRP method and the normal method. The results were the same. I am wondering if flashing SuperSU img file might result in a different outcome?
[Moto G 4G Android Development] Adilshah055:
please give me moto xt1090 flash file

please give me moto xt1090 flash file
[Moto G 4G Android Development] 90Ninety9:
EU Radio Firmware not updating on penegrine

OK . I picked out my old Moto G X 1039 Penegrine . It has been sitting in a box for years since I had stopped using it after a flash went wrong .

Basically the phone has an unlocked bootloader and has TWRP 2.7.1.0 installed .

I have since installed the 5.1 official untouched EU rom using the ADB sideload method . ( TWRP would not read/detect my external SD ) .

Now I am back to my original problem , the radios on the phone don't work . I have tried flashing the radio firmware multiple times but this gives me the same error every time

I would really like to use this phone , can anyone advise me , please post or send PM

[EDIT]

Despite the error , I just restarted the phone and it works !

Now im getting a weird random 'boot into recovery mode ' on its own !
[Moto G 4G Android Development] Rob...:
from which android version do you come.
[Moto G 4G Android Development] 90Ninety9:
I think it was 4.4 but , the phone was stuck on "unlocked bootloader" screen, so am not 100%.

I think the SU application is forcing restart , so may have to reflash without the SU app , I guess . Ideally I want to lock the bootloader , as the atm/banking apps wont work . I am guessing the bootloader locking is done separately ?
[Moto G 4G Android Development] Rob...:
if you come from android 4, you have to upgrade the bootloader. flash stock android 5.1 for your device, should upgrade the bootloader. maybe someone knows how to flash only the bootloader.

forget everything, my mistake
[Moto G 4G Android Development] Sofiane omega:
what dose it mean (Partially 'Stagefright' Patched) in the xt-1039 untouched ROM
[Moto G 4G Android Development] J0hnick:
Is it no longer possible to do an OTA update from official stock Kitkat to Lolipop ?. My wife's old Moto G 4G is still on 4.4.4, I was gonna root it and put lineage on it but wanted to update it first so the radio firmware is OK, but it keeps telling me the phone is already up to date (when it obviously isn't).
[Moto G 4G Android Development] roton:
I just solved my error 7 (on Peregrine) using this - https://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793/

It seemed to be the only way to make it work.
[Moto G 4G Android Development] joey000:
I have a peregrine phone which can make phone calls and send & receive texts, and connect to wifi, but which does not seem to do anything with cellular data.

A few weeks ago I tried upgrading this phone from an "unbloated" version of Android 6 to a LineageOS version of Android 7.1.12. And immediately this problem began, even though I've been told that upgrading a ROM has no bearing on the radio partitions.

Does anyone have any tips or suggestions? I can't remember what all I tried to do to fix this situation, but nothing seemed to work. I think I tried flashing the radio firmware that is mentioned at the beginning of this thread, but if I did I did not take notes on what exactly I did and what exactly happened.

I've also got TWRP v.3.2.3-0 and Fastboot v.41.1a on this phone.

Thank you for your time and compassion. :)
[Moto G 4G Android Development] nachogl1:
Lollipop update stopped

Hello,

I have an XT1039 (MotoG) which I have previously updated to lollipop from kitkat using Motorola update services. However I came back to this today after a few months and when I try to update an XT1039 the Motorola update scheduler states 'All Software Up To Date'. Does anyone know if Motorola have pulled lollipop for the XT1039 and if so is there an alternative service

Thank you.
[Moto G 4G Android Development] IronTechmonkey:
As this thread is specifically about a particular custom ROM called Lineage OS 14 and your question seems to be about stock ROM updates this is not the most appropriate or productive place for your question. That being said, here is some information which may help.

It sounds like you are still on the stock ROM in which case it is normal to reach a point where there are no more updates, especially for a device and Android version this old. Motorola, in cooperation with the various service providers, will keep the device updated for some time but that is not endless, usually just a year or two. First the major updates stop and the security updates continue then the security updates stop as well.

You should be able to learn more by searching the internet about stock updates to the device.
[Moto G 4G Android Development] Rachid.Ala:
It's a feature

You can disable it in Wi-Fi settings
[Moto G 4G Android Development] vinimdi:
I forgot to tell that is set to keep the wifi always turned on. Let me change in the original post
[Moto G 4G Android Development] lost101:
These ROMs cannot be flashed with Stock Recovery

.

I'm not sure what happened in your case, but I suspect the ROM is only installed partially or not installed at all.

I get numerous issues reported about the Stock Optimized ROMs and it's almost always nothing to do with the ROM. User has either not flashed correctly, used a bad recovery or has not done a factory reset in custom recovery and / or not wiped /data (userdata).
[Moto G 4G Android Development] vinimdi:
Thanks for the answer.

Even the stock roms(untouched) cannot be flashed with stock recovery? oO

I followed a tutorial. I flashed the stock 4.4.4 of XT1040 using mfastboot commands, then following the tutorial I rebooted on fastboot mode and flashed the 5.1 stock (zip archive) using the stock recovery, finished the installation I did the wipe. I don't know where I did wrong. Sorry I'm a little noob at this.
[Moto G 4G Android Development] J0kker:
You need to flash a custom recovery before flashing 5.1.

Twrp for exemple.
[Moto G 4G Android Development] bkr32:
trying to flash XT1040 untouched version onto my XT1040 canadian carrier device and it fails, do i have to wait for the canadian veriant?
[Moto G 4G Android Development] vinimdi:
This means I gonna have to unlock the bootloader right?

Thanks for the answer

Enviado do meu XT1040 usando XDA Forums Pro.
[Moto G 4G Android Development] cpvm:
Try to update the recovery.

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] DeX1009:
Hi, I see in 1.0a we have "original dialer restored"... that means we had a customized dialer in optimized 1.0? Is it the stock Lollipop dialer or Motorola customized it? Thanks, I'm simply curious :)
[Moto G 4G Android Development] cpvm:
Lost101 modify the dialer but it was broken so he restored the Motorola's original dialer in v1.0a

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Yes. Unlocking Bootloader is essential if you want to live life to the max.

In v1.0, I added a Stock Dialer that included a search nearby function. While it worked on Moto G Falcon, Peregrine was another matter. v1.0a replaces that Dialer with the one that is included in the 5.1 Stock Firmware image.
[Moto G 4G Android Development] ChriZz13:
i have the xt1040 and i flashed the xt1040 stock rom using twrp, i was on cm12.1 btw. I also flashed the radio firmware for it but when it boots i get "unfortunately dmservice has stopped working" and it won't recognise the sim. what should i do?
[Moto G 4G Android Development] lost101:
Maybe there are still some left over files from CM12.1. Try formatting /data. This will wipe internal storage entirely, including any app data, photos, music etc.
[Moto G 4G Android Development] rhaamo:
Wiped data, system, cache and dalvik and got (XT1039) :

Any ideas ?
[Moto G 4G Android Development] lost101:
Please read all of post #2: http://xdaforums.com/showpost.php?p=61529011&postcount=2
[Moto G 4G Android Development] rhaamo:
Already read it, restarting recovery doesn't change anything, wiping many times too, still can't finish install...
[Moto G 4G Android Development] lost101:
How have you wiped? Have you actually formatted /data? This is not part of a normal Factory Reset.
[Moto G 4G Android Development] rhaamo:
Wipe -> Advanced Wipe -> selected Dalvik Cache, Data, Cache and System and swiped to execute.

I just seen that Wipe -> Format Data seems different... and seems to fix (and wipe the sdcard, yay ...)
[Moto G 4G Android Development] DeX1009:
Thanks. That means Motorola slightly customized the stock Lollipop dialer?
[Moto G 4G Android Development] cpvm:
I have the same problem and I fix it by updating the recovery.

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] lost101:
Yes, rebooting or updating recovery are both alternative solutions.
[Moto G 4G Android Development] nestul:
I have flashed 4.4.4 ROM using mfastboot method, but my xt1039 continues not recognizing my kingston 32GB class10 microsd, so i think issues weren't really fixed. If you know about a solution, please let me know. Thanks.
[Moto G 4G Android Development] flivon:
Hi. How do I update the bootloader of my phone to lolipop if I install the 5.1 stock rom?

Thanks
[Moto G 4G Android Development] nestul:
You can use this tool to upgrade bootloader, but you won't be able to downgrade to older bootloaders than 41.18 afterwards, someone correct me if i am wrong.
[Moto G 4G Android Development] lost101:
You are correct. More to the point, doing so is extremely dangerous. If something goes wrong, the phone is dead and may be impossible to revive.

I recommend never touching the Bootloader unless you have a really good reason.
[Moto G 4G Android Development] nestul:
What happens exactly if you do

mfastboot flash motoboot motoboot.img

being this motoboot.img version 41.1x<41.18? What happens is motorola's pupose or a bug?
[Moto G 4G Android Development] lost101:
That is the command to flash the bootloader file (motoboot.img) - if the file is newer than current Bootloader, then obviously you will be upgraded. Flashing the wrong motoboot.img can have serious consequences.

Moto G (Falcon) uses the Bootloader numbering system: v41.13 (KitKat), v41.18 (Lollipop), v41.19 (Lollipop)

Moto G 4G (Peregrine) uses a different numbering system: v41.1A (Lollipop)
[Moto G 4G Android Development] flivon:
I need help. I installed the xt1039 optimized version, the sim and wifi werent working and I got the smd whatever service force close.

So I did the update of the radio firmware and the wifi started working but the sim chip has not.

I tried everything... Wiped cache, data, dalvinik... still nothing makes the sim card work

I even tried going back to KK and reverting the radio firmware but even in KK the sim chip is not being recognized anymore.
[Moto G 4G Android Development] lost101:
Update recovery to latest TWRP. Also try Wipe -> Format Data (wipes internal storage and possibly SDCARD)
[Moto G 4G Android Development] flivon:
I am using the latest version of Clockwork, TWRP does not work on my phone.

I dont know what happened, but this issue happened when I flashed the new radio firmware and I have tested 3 different ROMS and in everyone the sim is not being recognized (It says there is no sim card inserted.)

Maybe I broke the sim card contacts by accident?

I just want to fix this issue

Is there a way to downgrade to the KK radio firmware?
[Moto G 4G Android Development] lost101:
Download the XT1039 KitKat Factory Firmware Image from here: http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619

Extract firmware zip and 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] flivon:
The phone still has the problem... I am now hopeless.
[Moto G 4G Android Development] lost101:
Try formatting /data in whatever custom recovery you have. Wipe > Advanced Wipe. Warning this will erase internal storage, and possible sdcard.
[Moto G 4G Android Development] flivon:
I did. Still has the problem...
[Moto G 4G Android Development] lost101:
It could be a damaged SIM, maybe try another. Unlocking phone can be done cheaply via ebay if necessary.

It could be that custom recovery is buggy and not actually wiping properly.

I'm not sure what problem is with TWRP, other people use it on Peregrine - it has to work on your phone.
[Moto G 4G Android Development] flivon:
Its not the sim card. Tested on my other phone and works fine.

TWRP does not work... It starts but a few seconds later it 'fades' and I cant do a thing.

Maybe if I upgrade bootloader I can load the recovery?
[Moto G 4G Android Development] nestul:
Ah didn't know about the different numbering system, thanks!

But I knew that is the command to flash the bl, but i want to know what happens if i run it let's say to go from 41.1A to 41.18 or to 41.16, whether i would be shown an error message or would it downgrade or bricked or what. I supposed we only know about this by experience of others, right?

By the way, thanks for your useful threads, lost101! :good:
[Moto G 4G Android Development] lost101:
Sometimes formatting /data fix custom recovery issues. Try TWRP again now.

41.13 and 41.18 are 'Falcon' Bootloaders. Do not flash them. Fastboot is not user-friendly, and you can easily destroy your phone.
[Moto G 4G Android Development] flivon:
I managed to install recovery TWRP-v2.8.3.0, the latest peregrin build that I found in this forum.

Made a full wipe, factory, data, you name it.

After this I installed android 4.4.4 via fastboot

using the steps in this thread

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

And still no network. Wifi and gps works just fine, but no sim is detected.
[Moto G 4G Android Development] lost101:
Rather than keep making changes to your phone, I suggest you get a brand new SIM card. Also, if your issue persists, please start a thread in Q & A - others who have had the same problem can help you there.
[Moto G 4G Android Development] Winterspawn:
Hi, I just need confirmation.

I have unlocked bootloader, XT1039, updated via OTA to 23.21.17.peregrine_reteu.reteuall.en.EU reteu which is 5.1 Lollipop for EU.

I've deleted some system files and can't get them restored.

Can I flash Retail Spain 5.1 ROM (Untouched) from #1 post to my device without bricking it and deleting user data?
[Moto G 4G Android Development] lost101:
Yes. If you encounter flashing error, it's the recovery bug mentioned in post #2.
[Moto G 4G Android Development] lost101:
XT1039 Retail EU 5.1 (Untouched) and XT1039 Retail Germany 5.1 (Untouched) are now available. Also their respective Radios have been added to OP.

NOTE:

Due to now very limited ISP monthly bandwidth allowance, I cannot continue to use XDA's own file server. Large files frequently fail seconds before completing.​
[Moto G 4G Android Development] wurstel:
guys, i've just tried to dirty flash the rom over my retal_de OTA updated phone: AND it works!!! i erased system to debloat the rom, and so i have a beatufully streamlined slim-stock-rom, without the need to wipe data!
[Moto G 4G Android Development] lost101:
XT1039 Retail EU 5.1 Optimized ROM v1.0 and XT1039 Retail Germany 5.1 Optimized ROM v1.0 are now available.
[Moto G 4G Android Development] redavenger:
hey guys

i might ask, since im kinda new to this stuff.

with the firmware thats posted on the first page Retail EU 5.1 ROM (Untouched) (532mb)

does this include the original motorola moto g logo (that appears when you turn the phone on?

also to install this firmware, do i just copy the .zip file to the root path of the internal or external sd card?

and do i need to have a unlocked bootloader?

reason why i ask is few days ago i unlocked the bootloader (was going to go back to 4.4.4). anyway since then the logo has changed to the unlocked bootloader warning. anyway i managed to lock the bootloader and flash back up to lollipop with the XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip file but obviously the logo is still the warning.

so i was thinking of dumping this Retail EU 5.1 ROM (Untouched) on the sim card and flashing again?
[Moto G 4G Android Development] lost101:
The 'Untouched' ROMs have everything present in the Stock Firmware Images - including the Motorola Boot Animation.

A Custom Recovery (TWRP, CWM) is required to flash any ROM zip. Original Post (OP) contains flashing instructions. Bootloader status is irrelevant.

EDIT: To remove the 'warning' screen, you simply need to flash original logo.bin included in the Retail EU Firmware Image.
[Moto G 4G Android Development] redavenger:
right, and to install a "A Custom Recovery (TWRP, CWM)" you need to unlock the bootloader again right?

so i presume you use this custom recovery, however after flashing it (sd card method) the bootloader will still be unlocked right?

and the bootloader will still be the custome one? and not the motorola one?

and lastly i will still have that warning message because the bootloader is unlocked?
[Moto G 4G Android Development] lost101:
I've edited my previous post.

Bootloader needs to be unlocked to flash a Custom Recovery. Flashing one of these ROM zips changes nothing regarding the Bootloader. There are no custom Bootloaders for Moto G. 'Warning' screen will always remain until you flash the original logo.bin found in the Stock Firmware Image.
[Moto G 4G Android Development] redavenger:
sorry im getting confused now.

ok so to flash the phone with Retail EU 5.1 ROM (Untouched) (532mb) in the first post, i need to unlock the bootloader right?

1) Download ROM to Internal storage or External SD.

2) Boot into Custom Recovery (TWRP, CWM) ..so this means i will have to install one of these custom recovery right?

3) Factory Reset (System, Data, Cache, Dalvik)

4) Flash ROM and reboot.

so i presume i will still have a unlocked bootloader with the warning message logo after this flash?
[Moto G 4G Android Development] lost101:
The only thing that matters is that you have a custom Recovery (TWRP, CWM.)
[Moto G 4G Android Development] redavenger:
right...but to install custom recovery (twrp, cwm) i would have to unlock the bootloader right ? (resulting in the warning message).

then after flashing using twrp, the bootloader will still be unlocked right?
[Moto G 4G Android Development] lost101:
Once you unlock the Bootloader on Moto G, it is forever unlocked. You will always see the 'warning' - unless you do what I said. The 'fastboot oem relock' method does not remove this warning. The Moto G hardware is permanently changed by unlocking the BL.

To flash a custom Recovery you need an unlocked Bootloader.
[Moto G 4G Android Development] redavenger:
hmm ok, so even after i did the flash using fastboot with the file XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip

the bootloader is still unlocked? but it says in the status "locked" code 2

doesnt that mean that the bootloader is locked? but with a indication that it was unlocked before?

i also did flash the logo.bin from the file XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip, however that shows the warning message logo
[Moto G 4G Android Development] lost101:
[MENTION=6810105]redavenger[/MENTION] - The people in this thread can better help you on this subject: http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619