[ROM][PEREGRINE][5.1][STOCK] Stock Motorola 4G Lollipop ROM Collection

Search This thread

lost101

Inactive Recognized Contributor
May 30, 2008
7,417
9,305
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.
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.
 
Last edited:

IronTechmonkey

Recognized Contributor
Feb 12, 2013
10,061
18,137
Wow, you are taking this way too personal.

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 ;).
 
Last edited:

Brian D

Senior Member
Feb 18, 2014
236
40
Oceanside, Ca
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.
 

IronTechmonkey

Recognized Contributor
Feb 12, 2013
10,061
18,137
Apologies if my tone was too strong. My only intention was to try to help.... 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.

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.
 
  • Like
Reactions: mervluk

Brian D

Senior Member
Feb 18, 2014
236
40
Oceanside, Ca
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?
 
Last edited:
  • Like
Reactions: lost101

90Ninety9

Member
Jun 29, 2015
40
2
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

Erasing modemst1...
assert failed: format ("raw" "EMMC", "modemst1", "0", "/modemst1")
E:Error executing updater binary in zip '/data/media/0/sideload.zip'
Updating partition detals...

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 !
 

Attachments

  • IMG_20181011_012122.jpg
    IMG_20181011_012122.jpg
    242.6 KB · Views: 268
Last edited:

Rob...

Senior Member
Mar 28, 2016
105
35
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 !
from which android version do you come.
 

90Ninety9

Member
Jun 29, 2015
40
2
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 !

from which android version do you come.

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 ?
 
Last edited:

Rob...

Senior Member
Mar 28, 2016
105
35
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 ?
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
 
Last edited:

J0hnick

Member
Feb 13, 2013
49
2
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).
 

roton

Member
Mar 4, 2010
42
2
I have a problem with the radio, signal loss problem. I tried many roms (like 5), it won't work with any.
Tried to flash the radio firmware here, it's impossible with TWRP (no modemst1 error 7), but without errors with mfastboot (however it's very quick doing it).

Any solution?

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.
 

joey000

Member
Sep 7, 2014
8
1
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. :)
 

nachogl1

New member
Jan 31, 2020
3
0
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.
 
Last edited:

IronTechmonkey

Recognized Contributor
Feb 12, 2013
10,061
18,137
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.

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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 84
    Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.


    Stock Motorola 4G Lollipop ROM Collection

    Lollipop Bootloader not required

    All ROMs are based on Stock Firmware Images. Each zip contains ROM and Kernel only.​

    First boot can take a while, don't panic.​

    Untouched Version:
    Nothing removed, nothing added. Pure Stock.​

    Optimized Version:
    Stock Kernel | Debloated | Zipaligned | Rooted | Busybox | init.d Script Support
    OTA Updates Disabled | Non-essential Motorola Services removed | More RAM available
    Deodexed | 'Cast Screen' Enabled | Post-install zipaligning (Darky / Fly-On Mod™)
    MultiROM Compatible | Improved Battery Life | Lock-screen rotation​

    How to flash:
    1) Boot into latest TWRP and Format Data (Wipe > Format DATA > Yes) - This step is essential, and will wipe Internal Storage (Downloads, Music, Photos etc, **backup important files**)
    2) Transfer ROM to SDCARD or Internal Storage. This may be done in Windows via MTP, or using adb sideload or adb push ROM.zip /sdcard/
    3) TWRP > Wipe > Factory reset and flash ROM.
    4) Reboot.
    5) Call / WiFi issues can be solved by flashing 5.1 Radio Firmware (Below) for your Model.​

    Miscellaneous: -= Flash via TWRP =-
    Updated Google Dialer
    XT1039 Stock 5.1 Dialer | Messenger (Clear Dalvik Cache after flashing)
    XT1045 Stock 5.1 Dialer | Messenger (Clear Dalvik Cache after flashing)
    Full Stagefright Patch (Dec 2015) - [Download]


    XT1039

    Retail EU 5.1 ROM (Untouched) (543mb) [Download] (Partially 'Stagefright' Patched)
    Retail EU 5.1 ROM (Optimized) v1.0a (315mb) [Download]
    Retail EU 5.1 ROM (Optimized) v1.0b (314mb) [Download]
    Retail EU 5.1 ROM (Optimized) v1.1 (324mb) [Download] [Mirror]

    Retail Germany 5.1 ROM (Untouched) (539mb) [Download] (Partially 'Stagefright' Patched)
    Retail Germany 5.1 ROM (Optimized) v1.0a (315mb) [Download]
    Retail Germany 5.1 ROM (Optimized) v1.0b (310mb) [Download]
    Retail Germany 5.1 ROM (Optimized) v1.1 (324mb) [Download]

    Retail Spain 5.1 ROM (Untouched) (543mb) [Download] (Partially 'Stagefright' Patched)
    Retail Spain 5.1 ROM (Optimized) v1.0b (315mb) [Download]
    Retail Spain 5.1 ROM (Optimized) v1.0c (314mb) [Download]
    Retail Spain 5.1 ROM (Optimized) v1.1 (324mb) [Download]

    Retail Brazil 5.1 ROM (Untouched) (532mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.0 (313mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.0a (312mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.1 (324mb) [Download]

    XT1040
    Retail Canada 5.1 ROM (Untouched) (531mb) [Download]
    Retail Canada 5.1 ROM (Optimized) v1.0 (313mb) [Download]
    Retail Canada 5.1 ROM (Optimized) v1.0a (312mb) [Download]
    Retail Canada 5.1 ROM (Optimized) v1.1 (324mb) [Download]

    Retail Brazil 5.1 ROM (Untouched) (533mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.0b (312mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.0c (312mb) [Download]
    Retail Brazil 5.1 ROM (Optimized) v1.1 (324mb) [Download]

    Retail Latin America 5.1 ROM (Untouched) (541mb) [Download]
    Retail Latin America 5.1 ROM (Optimized) v1.0a (331mb) [Download]


    XT1042
    US Cellular 5.1 ROM (Untouched) (546mb) [Download]
    US Cellular 5.1 ROM (Optimized) v1.0 (336mb) [Download]


    XT1045
    Retail US 5.1 ROM (Untouched) (534mb) [Download]
    Retail US 5.1 ROM (Optimized) v1.0a (314mb) [Download]
    Retail US 5.1 ROM (Optimized) v1.0b (312mb) [Download]
    Retail US 5.1 ROM (Optimized) v1.1 (323mb) [Download]


    Lollipop Radio Firmware:
    Phone must be in Bootloader Mode.

    [Android 5.1]
    XT1039 - Retail Brazil: [Fastboot] [Fastboot Mirror #1]
    XT1039 - Retail EU: [TWRP] [TWRP Mirror #1] [Fastboot] [Fastboot Mirror #1]
    XT1039 - Retail Germany: [Fastboot] [Fastboot Mirror #1]
    XT1039 - Retail Spain: [TWRP] [Fastboot] [Fastboot Mirror #1]
    XT1040 - Retail Canada: [Fastboot] [Fastboot Mirror #1]
    XT1040 - Retail Latin America: [Fastboot] [Fastboot Mirror #1]
    XT1040 - Retail Brazil: [TWRP] [ [TWRP Mirror #1] Fastboot] [Fastboot Mirror #1]
    XT1042 - US Cellular: [Fastboot]
    XT1045 - Retail US: [TWRP] [Fastboot] [Fastboot Mirror #1]



    XDA:DevDB Information
    Stock Motorola 4G Lollipop ROM Collection, ROM for the Moto G

    Contributors
    lost101
    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.4.x
    Based On: Stock Motorola 4G Lollipop Firmware Images

    Version Information
    Status: Stable

    Created 2015-06-25
    Last Updated 2017-12-05
    28
    ROM Release Log:
    02/02/16 - Added Stock 5.1 Dialer | Messenger flashable zips (All models)
    31/01/16 - Added XT1040 Retail Latin America 5.1 (Optimized) v1.0a (Changelog)
    10/01/16 - Added XT1040 Retail Latin America 5.1 (Optimized) v1.0 (Changelog)
    09/01/16 - Added XT1040 Retail Latin America 5.1 (Untouched)
    09/01/16 - Added XT1042 US Cellular 5.1 (Optimized) v1.0
    08/11/15 - Added XT1042 US Cellular 5.1 Radio Firmware
    08/11/15 - Added XT1042 US Cellular 5.1 (Untouched)
    11/10/15 - Added XT1039 Retail Spain 5.1 (Untouched) with Stagefright Patch
    11/10/15 - Added XT1039 Retail Germany 5.1 (Untouched) with Stagefright Patch
    11/10/15 - Added XT1039 Retail EU 5.1 (Untouched) with Stagefright Patch
    01/09/15 - Added XT1045 Retail US Radio Firmware (custom Recovery flashable)
    01/09/15 - Added XT1039 Retail Spain Radio Firmware (custom Recovery flashable)
    30/08/15 - Added XT1045 Retail US 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1040 Retail Brazil 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1040 Retail Canada 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1039 Retail Brazil 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1039 Retail Spain 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1039 Retail Germany 5.1 (Optimized) v1.1 (Changelog)
    30/08/15 - Added XT1039 Retail EU 5.1 (Optimized) v1.1 (Changelog)
    01/08/15 - Added XT1040 Retail Canada 5.1 (Optimized) v1.0a (Changelog)
    01/08/15 - Added XT1040 Retail Brazil 5.1 (Optimized) v1.0c (Changelog)
    31/07/15 - Added XT1039 Retail Brazil 5.1 (Optimized) v1.0a (Changelog)
    31/07/15 - Added XT1039 Retail Spain 5.1 (Optimized) v1.0c (Changelog)
    31/07/15 - Added XT1039 Retail Germany 5.1 (Optimized) v1.0b (Changelog)
    31/07/15 - Added XT1039 Retail EU 5.1 (Optimized) v1.0b (Changelog)
    31/07/15 - Added XT1045 Retail US 5.1 (Optimized) v1.0b (Changelog)
    27/07/15 - Added XT1040 Retail Brazil Radio Firmware (custom Recovery flashable)
    27/07/15 - Added XT1039 Retail EU Radio Firmware (custom Recovery flashable)
    23/07/15 - Added XT1040 Retail Canada 5.1 (Optimized) v1.0
    23/07/15 - Added XT1040 Retail Canada 5.1 (Untouched)
    23/07/15 - Added XT1040 Retail Canada 5.1 Radio
    23/07/15 - Added XT1045 Retail US 5.1 (Optimized) v1.0a (Changelog)
    23/07/15 - Added XT1040 Retail Brazil 5.1 (Optimized) v1.0b (Changelog)
    23/07/15 - Added XT1039 Retail Spain 5.1 (Optimized) v1.0b (Changelog)
    23/07/15 - Added XT1039 Retail Germany 5.1 (Optimized) v1.0a (Changelog)
    23/07/15 - Added XT1039 Retail EU 5.1 (Optimized) v1.0a (Changelog)
    23/07/15 - Added XT1039 Retail Brazil 5.1 (Optimized) v1.0
    22/07/15 - Added XT1039 Retail Brazil 5.1 (Untouched)
    22/07/15 - Added XT1039 Retail Brazil 5.1 Radio
    22/07/15 - Added XT1045 Retail US 5.1 (Optimized) v1.0
    22/07/15 - Added XT1045 Retail US 5.1 Radio
    22/07/15 - Added XT1045 Retail US 5.1 (Untouched)
    06/07/15 - Added XT1039 Retail Germany 5.1 (Optimized) v1.0
    06/07/15 - Added XT1039 Retail EU 5.1 (Optimized) v1.0
    06/07/15 - Added XT1039 Retail Germany 5.1 (Untouched)
    06/07/15 - Added XT1039 Retail EU 5.1 (Untouched)
    06/07/15 - Added XT1039 Retail Germany 5.1 Radio
    06/07/15 - Added XT1039 Retail EU 5.1 Radio
    28/06/16 - Added XT1040 Retail Brazil 5.1 (Optimized) v1.0a (Changelog)
    28/06/16 - Added XT1039 Retail Spain 5.1 (Optimized) v1.0a (Changelog)
    25/06/15 - Added XT1039 Retail Spain 5.1 (Optimized) v1.0
    25/06/15 - Added XT1039 Retail Spain 5.1 (Untouched)
    24/06/15 - Added XT1040 Retail Brazil 5.1 (Optimized) v1.0
    24/06/15 - Added XT1040 Retail Brazil 5.1 (Untouched)

    Recommended Settings:
    All Animations speed: 0.5x (Changed via Developer options)
    Wi-Fi Sleep policy: Never. (Changed via Settings > Wi-Fi > Advanced) - Check Battery stats occasionally | some Apps will force Wi-Fi to be always on​

    Bugs:
    When flashing, I get the following: "E:Error executing updater binary in zip"
    This is a custom recovery bug. Try restarting recovery and flashing again. Alternatively you may need to:

    TWRP > Wipe > Format Data > Yes​

    Note: This will delete anything on internal storage - photos, music, videos etc.

    Calls, Data or WiFi not working?
    These ROMs require the latest Radio Firmware included with Lollipop. See instructions in FAQ below and OP for new Radio files.

    Xposed Framework and Android 5.1
    I cannot provide support for the use of Xposed Framework. It is still a highly experimental work-in-progress MOD with no official release.

    The thread for reporting issues related to Xposed is here: [UNOFFICIAL] Xposed for Android 5.1

    Frequently Asked Questions:
    What is this Collection?
    All of these ROMs are created from the Motorola 4G Factory Firmware images. A pure source, unlike a dump of an OTA Updated system; the upgrading process patches, moves or deletes system files. The result is possibly bugs being introduced, and files being left over. These ROMs are completely clean, and any bugs you find are genuine Android issues.

    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

    How do I update to the Lollipop Radio Firmware?
    Note: Phone must be in Bootloader mode.

    Update your current Radio Firmware by downloading and extracting the correct file from OP, and using the following mFastboot commands: (Simply put all files together in same folder - SDK not required) (USB Drivers (Windows))
    mfastboot flash modem NON-HLOS.bin
    mfastboot erase modemst1
    mfastboot erase modemst2
    mfastboot flash fsg fsg.mbn​

    Related: Minimal ADB and Fastboot

    How to hide the Network | Carrier name in the status bar?
    Settings > More > Mobile network > Show mobile network​

    How to turn off Lock-screen rotation?
    This setting is a built.prop edit. Use a text editor with root access to open: /system/build.prop - remove the last line, or change to 'false':
    lockscreen.rot_override=true​

    What is 'Zipaligining' | Post-install zipaligning?
    Zipaligining
    It makes app use less RAM. Longer answer.

    Post-install zipaligning
    Newly installed apps are zip-aligned after reboot. This process occurs only once per app, as a database exists in /system/usr. When an app is updated, the new apk will also be zip-aligned and added to the database.​
    13
    Here is a flashable zip to fully patch Stock ROMs for all currently known Stagefright exploits. Test with Stagefright Detector. The files originate from a Falcon 5.1 Stock Firmware, but I expect they are compatible with these ROMs. Do a nandroid backup just in case. Feedback appreciated.
    8
    Right now I'm preparing a new method of flashing ROMs. I will build some new ROMs when I manage to sort that out, but it takes time. Maybe this weekend I will make substantial progress.
    6
    XT1039 Retail EU 5.1 Optimized ROM v1.0 and XT1039 Retail Germany 5.1 Optimized ROM v1.0 are now available.