[ROM][UNOFFICIAL][9.0] LineageOS 16.0 [PEREGRINE]

Search This thread

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
For those of you wishing to update to the DECEMBER '21 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

Note: The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently. Note: The Nov. 02 Pico version (approx. 184 MB), can be installed without issues. Compare newer PICO version sizes (up to rom build date or earlier, only) to it. If they are approx. the same size, there is a good chance you will be able to install them. Refer to post # 384 for a fuller explanation re: the recent Open Gapps size issues and a potential solution ...

Note
: Requires Full Clean Flash when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.
Very Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.
Note: Encryption is not working fully - If you need it, check out the 14.1 rom - Note: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended). You will not lose any data. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

Download Link for lineage-16.0-202112-17-UNOFFICIAL-peregrine.zip

I give full credit to the author of this thread @Allstargaurav and in particular to @sevenrock and @RenanQueiroz for their excellent work in getting this rom to this point. Those of you who have not been building this rom for themselves but using the last posted upload by the author of this thread will notice some substantial improvements and should be relatively pleased with how it performs now. After flashing let the rom settle in for a number of hours to start to see the improvements and reap the full benefit.

I do, however, recommend you learn to build it yourselves: refer to post # 230 for the full build instructions.
 
Last edited:

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
For those of you wishing to update to the JANUARY '22 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent posted security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

Note: The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently. Note: Once again some members are experiencing issues with installing the latest versions of Open Gapps Pico. I have tested this one dated June 10 '21 and it installed with no issues for me. So give it a try if you run into an install problem:

Link:
open_gapps-arm-9.0-pico-20210610.zip
https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

Note: Requires Full Clean Flash when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.
Very Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.
Note: Encryption is not working fully - If you need it, check out the 14.1 rom - Note: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended). You will not lose any data. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

Download Link for lineage-16.0-2022-14-UNOFFICIAL-peregrine.zip

I give full credit to the author of this thread @Allstargaurav and in particular to @sevenrock and @RenanQueiroz for their excellent work in getting this rom to this point. Those of you who have not been building this rom for themselves but using the last posted upload by the author of this thread will notice some substantial improvements and should be relatively pleased with how it performs now. After flashing let the rom settle in for a number of hours to start to see the improvements and reap the full benefit.

I do, however, recommend you learn to build it yourselves: refer to post # 230 for the full build instructions.
 
Last edited:

Brent.M

Member
Jul 7, 2015
27
3
Thanks for the releases past/present, everyone.

Android flasher noob here...

@sdembiske

I'm struggling to install Gapps (pico). I haven't got a clue what all these different ones are, other than you said to use "The Nov. 02 Pico version (approx. 184 MB)"... Which one specifically is that?

I tried 'open_gapps-arm-9.0-pico-20211102.zip' 108.83MB and get an Error Code: 70
Insufficient storage space available in system parition[...]

Edit: Log:

Code:
# Begin Open GApps Install Log
------------------------------------------------------------------
            ROM Android version | 9
                   ROM Build ID | lineage_peregrine-userdebug 9 PQ3A.190801.002 eng.steve.20220114.064738 test-keys
          ROM Version increment | eng.steve.20220114.064738
                ROM SDK version | 28
        ROM/Recovery modversion | 16.0-20220114-UNOFFICIAL-peregrine
                Device Recovery | TWRP 3.6.0_9-0-60642f05
                    Device Name | peregrine
                   Device Model | peregrine
                    Device Type | phone
                     Device CPU | armeabi-v7a,armeabi
          Device A/B-partitions | false
             Installer Platform | arm
                   ROM Platform | arm
           Display Density Used | 320
                   Install Type | Clean[Data Wiped]
Google Camera already installed | Clean
              VRMode Compatible | false
       Google Camera Compatible | true
      New Camera API Compatible | false[force_api]
          Google Pixel Features | false
          Current GApps Version | No GApps Installed
          Google Camera version | Legacy
       Installing GApps Zipfile | /sdcard1/moto g/open_gapps-arm-9.0-pico-20211102.zip
       Installing GApps Version | 20211102
          Installing GApps Type | pico
                    Config Type |
             Using gapps-config | Not Used
      Remove Stock/AOSP Browser | false[NO_Chrome]
       Remove Stock/AOSP Camera | false[NO_CameraGoogle]
       Remove Stock/AOSP Dialer | false[NO_DialerGoogle]
        Remove Stock/AOSP Email | false[NO_Gmail]
      Remove Stock/AOSP Gallery | false[NO_Photos]
     Remove Stock/AOSP Launcher | false[NO_GoogleNow/PixelLauncher]
      Remove Stock/AOSP MMS App | false[NO_Messenger]
     Remove Stock/AOSP Pico TTS | false[default]
         Ignore Google Contacts | false
           Ignore Google Dialer | true[NoRemove]
         Ignore Google Keyboard | false
Ignore Google Package Installer | false
          Ignore Google NFC Tag | true[NoRemove]
          Ignore Google WebView | false
         Total System Size (KB) | 1112708
         Used System Space (KB) | 906312
        Current Free Space (KB) | 206396
 Additional Space Required (KB) | 69584   << See Calculations Below
------------------------------------------------------------------
# End Open GApps Install Log

INSTALLATION FAILURE: Your device does not have sufficient space available in
the system partition to install this GApps package as currently configured.
You will need to switch to a smaller GApps package or use gapps-config to
reduce the installed size.

NOTE: The Stock/AOSP NFC Tag is not available on your
ROM (anymore), the Google equivalent will not be removed.
NOTE: The Stock/AOSP Dialer is not available on your
ROM (anymore), the Google equivalent will not be removed.
# Begin GApps Size Calculations
------------------------------------------------------------------
  TYPE  |         DESCRIPTION        |      SIZE |   TOTAL
        |         Current Free Space |    206396 |  206396
 Remove |             Existing GApps | +       0 |  206396
 Remove |             Obsolete Files | +       0 |  206396
 Remove |              cmsetupwizard | +       0 |  206396
 Remove |           extservicesstock | +      52 |  206448
 Remove |             extsharedstock | +      24 |  206472
 Remove |      packageinstallerstock | +    8708 |  215180
 Remove |                  provision | +       0 |  215180
Install |                       Core | -  234888 |  -19708
Install |                    calsync | -    2548 |  -22256
Install |            dialerframework | -      12 |  -22268
Install |                  googletts | -   29752 |  -52020
Install |     packageinstallergoogle | -    8348 |  -60368
        |               Buffer Space | -    9216 |  -69584
------------------------------------------------------------------
                      Additional Space Required |   69584
------------------------------------------------------------------

# End GApps Size Calculations

# Begin User's gapps-config

# End User's gapps-config
 
Last edited:

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774

Thanks for the releases past/present.

Android flasher noob here...

I'm struggling to install Gapps (pico). I haven't got a clue what all these different ones are, other than you said to use "The Nov. 02 Pico version (approx. 184 MB)"... Which one specifically is that?

I tried 'open_gapps-arm-9.0-pico-20211102.zip' 108.83MB and get an Error Code: 70
Insufficient storage space available in system parition[...]

Edit: Log:

Code:
# Begin Open GApps Install Log
------------------------------------------------------------------
            ROM Android version | 9
                   ROM Build ID | lineage_peregrine-userdebug 9 PQ3A.190801.002 eng.steve.20220114.064738 test-keys
          ROM Version increment | eng.steve.20220114.064738
                ROM SDK version | 28
        ROM/Recovery modversion | 16.0-20220114-UNOFFICIAL-peregrine
                Device Recovery | TWRP 3.6.0_9-0-60642f05
                    Device Name | peregrine
                   Device Model | peregrine
                    Device Type | phone
                     Device CPU | armeabi-v7a,armeabi
          Device A/B-partitions | false
             Installer Platform | arm
                   ROM Platform | arm
           Display Density Used | 320
                   Install Type | Clean[Data Wiped]
Google Camera already installed | Clean
              VRMode Compatible | false
       Google Camera Compatible | true
      New Camera API Compatible | false[force_api]
          Google Pixel Features | false
          Current GApps Version | No GApps Installed
          Google Camera version | Legacy
       Installing GApps Zipfile | /sdcard1/moto g/open_gapps-arm-9.0-pico-20211102.zip
       Installing GApps Version | 20211102
          Installing GApps Type | pico
                    Config Type |
             Using gapps-config | Not Used
      Remove Stock/AOSP Browser | false[NO_Chrome]
       Remove Stock/AOSP Camera | false[NO_CameraGoogle]
       Remove Stock/AOSP Dialer | false[NO_DialerGoogle]
        Remove Stock/AOSP Email | false[NO_Gmail]
      Remove Stock/AOSP Gallery | false[NO_Photos]
     Remove Stock/AOSP Launcher | false[NO_GoogleNow/PixelLauncher]
      Remove Stock/AOSP MMS App | false[NO_Messenger]
     Remove Stock/AOSP Pico TTS | false[default]
         Ignore Google Contacts | false
           Ignore Google Dialer | true[NoRemove]
         Ignore Google Keyboard | false
Ignore Google Package Installer | false
          Ignore Google NFC Tag | true[NoRemove]
          Ignore Google WebView | false
         Total System Size (KB) | 1112708
         Used System Space (KB) | 906312
        Current Free Space (KB) | 206396
 Additional Space Required (KB) | 69584   << See Calculations Below
------------------------------------------------------------------
# End Open GApps Install Log

INSTALLATION FAILURE: Your device does not have sufficient space available in
the system partition to install this GApps package as currently configured.
You will need to switch to a smaller GApps package or use gapps-config to
reduce the installed size.

NOTE: The Stock/AOSP NFC Tag is not available on your
ROM (anymore), the Google equivalent will not be removed.
NOTE: The Stock/AOSP Dialer is not available on your
ROM (anymore), the Google equivalent will not be removed.
# Begin GApps Size Calculations
------------------------------------------------------------------
  TYPE  |         DESCRIPTION        |      SIZE |   TOTAL
        |         Current Free Space |    206396 |  206396
 Remove |             Existing GApps | +       0 |  206396
 Remove |             Obsolete Files | +       0 |  206396
 Remove |              cmsetupwizard | +       0 |  206396
 Remove |           extservicesstock | +      52 |  206448
 Remove |             extsharedstock | +      24 |  206472
 Remove |      packageinstallerstock | +    8708 |  215180
 Remove |                  provision | +       0 |  215180
Install |                       Core | -  234888 |  -19708
Install |                    calsync | -    2548 |  -22256
Install |            dialerframework | -      12 |  -22268
Install |                  googletts | -   29752 |  -52020
Install |     packageinstallergoogle | -    8348 |  -60368
        |               Buffer Space | -    9216 |  -69584
------------------------------------------------------------------
                      Additional Space Required |   69584
------------------------------------------------------------------

# End GApps Size Calculations

# Begin User's gapps-config

# End User's gapps-config

I'm assuming you downloaded the version from the 'Older Releases' section in the official Open Gapps site. My first thought is you did not do a FULL clean flash, i.e., before flashing anything, you wiped in (the latest version of) TWRP, Cache, Dalvik cache, System and then. most important;ly, Fornat Data > Yes - following the instruction exactly in the download post. This issue can arise on a first time flash coming from stock or 14.1 official or 16.0 unofficial LineageOS. Make sure that any data (pictures, videos, etc.) on your internal partition is copied over to your PC or external drive so you can copy them back and you have used a 3rd party app to back up your messages and calls to your SD card so they can be restored.
As no one else has reported this issue of late, the issue most likely resides in your flashing method.
 
  • Like
Reactions: Brent.M

Brent.M

Member
Jul 7, 2015
27
3
Yeah, I'm probably being a noob. I've tried several times though.

I'm on 3.6.0_9-0 TWRP.

Wipe>Advanced Wipe>Check: Dalvik / ART Cache, Cache, System>Swipe To Wipe.
I've also tried selecting 'data', 'internal storage'.

Go back.

Wipe>Format Data>Yes. Back>Reboot>Recovery

Install>Select Storage>MicroSD Card>lineage-16.0-2022-14-UNOFFICIAL-peregrine.zip>add more zips>magisk-v23.0.apk & open_gapps-arm-9.0-pico-20211102.zip

Here's a video of my steps (bad angle--crappy youtube doesn't allow rotate):

It all seems to be working, just can't install GApps. I'm only using it as a Pi-hole, but it still would be nice to get it installed.

Specifically which one did you use?

Thanks for the reply.
 
Last edited:

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
Yeah, I'm probably being a noob. I've tried several times though.

I'm on 3.6.0_9-0 TWRP.

Wipe>Advanced Wipe>Check: Dalvik / ART Cache, Cache, System>Swipe To Wipe.
I've also tried selecting 'data', 'internal storage', 'system'.

Go back.

Wipe>Format Data>Yes. Back>Reboot>Recovery

Install>Select Storage>MicroSD Card>lineage-16.0-2022-14-UNOFFICIAL-peregrine.zip>add more zips>magisk-v23.0.apk & open_gapps-arm-9.0-pico-20211102.zip

Here's a video of my steps (bad angle--crappy youtube doesn't allow rotate):

It all seems to be working, just can't install GApps. I'm only using it as a Pi-hole, but it still would be nice to get it installed.

Specifically which one did you use?

Thanks for the reply.

Try this one, it's smaller: https://sourceforge.net/projects/op...open_gapps-arm-9.0-pico-20211102.zip/download

Install the rom first (Full clean flash), then the Open Gapps immediately after the rom install, reboot to recovery and flash Magisk if required, then boot system up. If this Open Gapps version doesn't work, then look for a later version (smallest one listed).

The Pi-Hole may be presenting an issue. Suggest not installing it before hand at all.

PS: Don't forget the 'Like' button when members are trying to help.
 
  • Like
Reactions: Brent.M

Brent.M

Member
Jul 7, 2015
27
3
I'll be installing Linux Deploy (for Pi-hole) once in the OS. The only .apk that shows up in TWRP is Magisk anway.

It seems you linked the same Pico I've already been trying.

I have tried installing GApps straight after the Rom many times. I of course get the Error Code: 70 every time.

I'll have to google around and see what the exact steps are because I must be doing it wrong?

Edit:

Steps:
-'Wipe': Dalvik / ART Cache, Cache, System
-'Format Data'
-Reboot to recovery?
-Install ROM
-Install GApps: open_gapps-arm-9.0-pico-20211102.zip (109MB)

fail. Error Code: 70.
 
Last edited:

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
I'll be installing Linux Deploy (for Pi-hole) once in the OS. The only .apk that shows up in TWRP is Magisk anway.

It seems you linked the same Pico I've already been trying.

I have tried installing GApps straight after the Rom many times. I of course get the Error Code: 70 every time.

I'll have to google around and see what the exact steps are because I must be doing it wrong?

Edit:

Steps:
-'Wipe': Dalvik / ART Cache, Cache, System
-'Format Data'
-Reboot to recovery?
-Install ROM
-Install GApps: open_gapps-arm-9.0-pico-20211102.zip (109MB)

fail. Error Code: 70.
OK - my apologies. I just did a Full clean flash and tried to install the same Open Gapps version with the same issue you have experienced..

We had this problem arise once before and I'm not sure whether it's a problem with the way the versions are uploaded to the Open Gapps site or the way they are constructed or simply a size issue. In post # 380 I uploaded my version dated June 10 '21 and the link is still valid - I've copied the link again here.

Link: open_gapps-arm-9.0-pico-20210610.zip
https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

It installed with no issues for me so give it a try. All your apps will update to their latest versions once you boot the system back up.
 
Last edited:
  • Like
Reactions: Brent.M

Brent.M

Member
Jul 7, 2015
27
3
OK - my apologies. I just did a Full clean flash and tried to install the same Open Gapps version with the same issue you have experienced..

We had this problem arise once before and I'm not sure whether it's a problem with the way the versions are uploaded to the Open Gapps site or the way they are constructed or simply a size issue. In post # 380 I uploaded my version dated June 10 '21 and the link is still valid - I've copied the link again here.

Link: open_gapps-arm-9.0-pico-20210610.zip
https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

It installed with no issues for me so give it a try. All your apps will update to their latest versions once you boot the system back up.
Thanks for the checking. Good to hear I wasn't being stupid too.

Yes, that works. All seems to be working here.

Thank you very much.
 
  • Like
Reactions: sdembiske

Brent.M

Member
Jul 7, 2015
27
3
I've noticed the screen randomly goes black, and it's as though the system refreshes. 'phone is starting'. It would do it when the phone was locked too, causing the screen to light up, I'd see it when in bed. Then sometimes my router doesn't show up.

Edit: I went ahead and installed lineage-14.1-20220120-UNOFFICIAL-peregrine.zip with the latest 7.1 Pico Gapps.

It seems ok so far. A few days will give me a definite answer.
 
Last edited:
  • Like
Reactions: phoenixmet

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
Not something I've experienced with this rom with any of the latest uploads, nor has it been reported by other members of late.
The most common reason for this is usually a 'launcher' issue. I use the 'Apex' launcher and the other one I would suggest to try is the 'Nova' launcher which many members seem to prefer.
This can also occur when a Full clean flash is not done when transitioning from stock or 14.1 or an app you're installing is interfering with the system in some way.
 
  • Like
Reactions: Brent.M

Brent.M

Member
Jul 7, 2015
27
3
I think I noticed it very early on (possibly even without any third-party apps [I can't remember]) but thought it might just be a one-off. Even afterward I only had Xfolder, Linux Deploy and Magisk installed.

I could try an alternative launcher... but for now, it seems nice and stable on lineage-14.1-20220120-UNOFFICIAL-peregrine.zip. The phone is currently active as a Pi-hole, so I don't want to start messing around again.

I shall try again on a rainy day and report back.


Thanks.
 

Mac23

Member
Aug 7, 2014
22
5
I just flashed your latest ROM (clean install) and so far I had only one issue. After entering my wifi credentials during setup the screen went dark and after some seconds the first setup screen appeared again. Wifi was enabled/connected and this time the setup finished without any issues.

I am wondering if the ROM has support for exfat? Exfat worked with the previous installed official Lineage (14.1) but now the phone reports an issue with the SD card.
 

Brent.M

Member
Jul 7, 2015
27
3
I just flashed your latest ROM (clean install) and so far I had only one issue. After entering my wifi credentials during setup the screen went dark and after some seconds the first setup screen appeared again. Wifi was enabled/connected and this time the setup finished without any issues.

I am wondering if the ROM has support for exfat? Exfat worked with the previous installed official Lineage (14.1) but now the phone reports an issue with the SD card.
Possibly the same problem I noticed. The screen would go blank and resume. Once in the OS, it'd do the same. (Read my previous post.)
 

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
I just flashed your latest ROM (clean install) and so far I had only one issue. After entering my wifi credentials during setup the screen went dark and after some seconds the first setup screen appeared again. Wifi was enabled/connected and this time the setup finished without any issues.

I am wondering if the ROM has support for exfat? Exfat worked with the previous installed official Lineage (14.1) but now the phone reports an issue with the SD card.
The exfat supprt issue is well known - see my post # 111 written before I started posting and maintaining my builds for other members use here. I'll look into this when I have a bit more time.
Re: The black screen issue, I suspect as I have mentioned before, it may be a 'launcher'' issue. Trebuchet seems to be a possible culprit. Suggest you try a different launcher, e.g., 'Nova' or 'Apex'.
The black screen wifi issue does sound like it's launcher related but if not you could always go to Settings > under Wireless & Networks, tap ... More > Mobile networks > Access point names (apn's) - check the latest apn's from your network provider on their site and add them in, if different than what is shown.

You could also try the 'Network settings reset' under the 'Wireless and networks' header and see if that helps if in fact it is not a 'launcher' issue.
 

sdembiske

Senior Member
Jan 4, 2015
1,330
1,774
For those of you wishing to update to the FEBRUARY '22 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent posted security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

IMPORTANT NOTE: This will be my last posted rom build here as I have now hard bricked my old MOTO G LTE, trying to re-partition the board to get more space in the system partition to allow for the increasing security update and OpenGapps sizes. Finding a replacement board has been fruitless. I managed to build LineageOS 17.1 for this device but was unable to install any OpenGapps versions due to the current system partition size and was therefore unable to test it. If any one of the members out there that has been building this rom for their own personal use, I hope you might pick up the mantle and post them here for other members use. I will send my LineageOS-17.1 roomservice.xml file by pm to the member that picks up the mantle and begins posting their builds consistently here.
Thank you to all the members who have used the 'Like' button or the old 'Thanks' button for your support - for those who haven't, it's an long-time XDA courtesy, learn to use it and show support for the members who take the time to share their work or give their assistance to you.

Note: The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently. Note: Once again some members are experiencing issues with installing the latest versions of Open Gapps Pico. I have tested this one dated June 10 '21 and it installed with no issues for me. So give it a try if you run into an install problem:

Link:
open_gapps-arm-9.0-pico-20210610.zip
https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

Note: Requires Full Clean Flash when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.
Very Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.
Note: Encryption is not working fully - If you need it, check out the 14.1 rom - Note: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended). You will not lose any data. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

Download Link for lineage-16.0-2022-02-15-UNOFFICIAL-peregrine.zip

I give full credit to the author of this thread @Allstargaurav and in particular to @sevenrock and @RenanQueiroz for their excellent work in getting this rom to this point. Those of you who have not been building this rom for themselves but using the last posted upload by the author of this thread will notice some substantial improvements and should be relatively pleased with how it performs now. After flashing let the rom settle in for a number of hours to start to see the improvements and reap the full benefit.

I do, however, recommend you learn to build it yourselves: refer to post # 230 for the full build instructions.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    For those of you wishing to update to the MAY '22 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent posted security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

    * Weird Magisk bug is occurring (reported by other members on different roms and phones as well):
    After flashing the patched boot image, on reboot if you open the Magisk app it will indicate it has to do more to install on the device. If you tell it to go ahead the issue will just keep recurring. It appears something is being retained in the Magisk app cache that isn't properly removed on the reboot after flashing the patched image.
    Best way to fix:
    After installing (regular clean flash) the latest LineageOS rom and Open Gapps while in TWRP, reboot to recovery and install the Magisk app as a zip (simply remove the .apk extension and add the .zip extension, i.e., for example, Magisk-v24.3.apk changes to Magisk-v24.3.zip). On system reboot, do not open the Magisk app, reboot the system again and then the app can be opened without the issue recurring.

    Note: The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently. Note: Once again some members are experiencing issues with installing the latest versions of Open Gapps Pico. I have tested this one dated June 10 '21 and it installed with no issues for me. So give it a try if you run into an install problem:

    Link:
    open_gapps-arm-9.0-pico-20210610.zip
    https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

    Note: Requires Full Clean Flash when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.
    Very Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.
    Note: Encryption is not working fully - If you need it, check out the 14.1 rom - Note: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

    If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended). You will not lose any data. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

    Download Link for lineage-16.0-2022-05-12-UNOFFICIAL-peregrine.zip

    I give full credit to the author of this thread @Allstargaurav and in particular to @sevenrock and @RenanQueiroz for their excellent work in getting this rom to this point. Those of you who have not been building this rom for themselves but using the last posted upload by the author of this thread will notice some substantial improvements and should be relatively pleased with how it performs now. After flashing let the rom settle in for a number of hours to start to see the improvements and reap the full benefit.

    I do, however, recommend you learn to build it yourselves: refer to post # 230 for the full build instructions.
  • 34
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    What's working :

    • Boots
    • RIL (Calls, SMS, Data)
    • Dual-SIM
    • Wi-Fi
    • Camera
    • Video Recording
    • Video Playback
    • Audio ( Record and Playback )
    • Sensors
    • Flash
    • Led
    • Offline Charging

    What's not working :
    • You tell me

    Instructions :
    • Download the latest build and gapps
    • Reboot to recovery
    • Flash the latest build and gapps
    • Reboot
    Downloads :
    Reporting Bugs
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    Phone model:
    Lineage version:
    Lineage Download url:
    Gapps version:
     
    Did you--
    wipe:
     restore with titanium backup:
    reboot after having the issue:
     
    Are you using--
    a task killer:
    a non-stock kernel:
    LineageSettings/Performance settings (other than stock):
    Dual SIM:
    other modifications:
     
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
    Credits :

    Donations :
    You don't have to but if you want so...

    XDA:DevDB Information
    Pie For Peregrine, ROM for the Moto G

    Contributors
    Allstargaurav
    Source Code: https://github.com/MotoDevelopment

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.4.x
    Based On: AOSP

    Version Information
    Status: Stable
    Stable Release Date: 2019-04-21

    Created 2018-08-28
    Last Updated 2019-04-21
    15
    Lineage 16.0 April Update
    • Fixed Black Screen Issue
    • April security patch
    • Enforcing Build
    • Fixed Lineage Offline charger
    • Other Fixes and all that ****
    Just Clean flash that's all

    Would not be possible without @RenanQueiroz I did not do anything

    Download: https://www.androidfilehost.com/?fid=1395089523397953949

    Note: If you can't flash gapps look for other alternative gapps which is smaller in size.
    10
    New LineageOS 16.0 update is out!

    Changelog:
    • Fixed Whatsapp and Instagram Issue
    • Enforcing Build
    • Many ROM side changes (Most of the features from 15.1 are back, although some switches won't work)
    • Added Snap Cam
    • Zram working again
    • Many other minor improvements
    • Lot more stuff which I am lazy to list flash and find yourself

    Download: https://www.androidfilehost.com/?fid=11410963190603869829

    Special thanks to @sevenrock it would not have been possible without him
    Also thanks to @RohanHasabe8 for server
    9
    For those of you wishing to update to the MAY '20 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves). I have been reviewing and testing these patches in LineageOS Gerrit for LineageOS 14.1 (Moto G LTE Peregrine) and LineageOS 15.1 (LG G4) when they're posted before they are merged and will be doing the same from this point on for LineageOS 16.0, before uploading for your personal use.

    Note: Requires Full Clean Flash when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps (pico Jan. 17th '20, for now - the latest uploads have been presenting problems with Pie) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source).
    Very Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.
    Note: Encryption is not working fully - If you need it, check out the 14.1 rom - it is fully up to date in my latest uploads there.

    If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

    Download Link for lineage-16.0-20200508-UNOFFICIAL-peregrine.zip
    https://mega.nz/file/MeRQlQjK#Yw4SJBvw5pz8T1OfFoT_hmOt4gS4KbtCLOgWEKdlLQo

    I give full credit to the author of this thread @Allstargaurav and in particular to @sevenrock and @RenanQueiroz for their excellent work in getting this rom to this point. Those of you who have not been building this rom for themselves but using the last posted upload by the author of this thread will notice some substantial improvements and should be very pleased with how it performs now. After flashing let the rom settle in for a number of hours to start to see the improvements and reap the full benefit.

    I do, however, recommend you learn to build it yourselves: refer to post # 230 for the full build instructions.
    9
    How to build & update this rom yourself: Updated for Ubuntu 20.04+ based systems.

    For those members wishing to build this rom for themselves and keep it updated, The following roomservice.xml file is what I've been using (forked from sevenrock's github site (https://github.com/sevenrock) - full credit to him:

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    <project name="sdembis/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="lineage-16.0" />
    <project name="sdembis/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="lineage-16.0" />
    <project name="sdembis/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="lineage-16.0" />
    <project name="sdembis/proprietary_vendor_motorola" path="vendor/motorola"
    remote="github" revision="lineage-16.0" />
    <project name="LineageOS/android_system_qcom" path="system/qcom" remote="github" revision="lineage-16.0" />
    <project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" revision="lineage-16.0"/>
    </manifest>

    * Follow the directions from here for setting up the build environment: Build for peregrine
    - * Do not go any further in setting up your build environment than the paragraph including the Configure git instructions. After setting up the git configuration, ignore the rest of the instructions posted there and follow the guide posted here.

    Note: If Building on an Ubuntu 20.04 (e.g., Linux Mint 20.0) or newer based Linux versions show the content of the following:
    To get around all the errors I encountered I had to do the following:

    In the "Software Manager" confirm all the following are installed to check your installation method

    - openjdk-8-jdk
    - openjdk-8-jdk-headless
    - openjdk-8-jre
    - openjdk-8-jre-headless

    with no environment path or any other path you might have set for Java.

    Use the Switch Manager command to set Python2 as the default version (refer to this how to - https://linuxconfig.org/ubuntu-20-04-python-version-switch-manager)

    Insert (if not already included) export LC_ALL=C and export CCACHE_EXEC=/usr/bin/ccache in, save it and source it for the /.bashrc file.

    If you haven't already done so, make sure you install the additional language packs noted in the System Reports.

    That should get you going to successfully build for LineageOS on any Ubuntu 20.04 based system.

    Recommended:
    - Seriously consider installing Linux Mint - Xfce (for example), in a dual-boot set-up before setting up your build environment. Your builds will run much faster with fewer problems versus setting up your build environment in VirtualBox!
    - add an 8GB swap file (particularly important if running low ram, e.g., 4GB).

    Once you've set up the android build environment, initialize the LineageOS source repository inside a new folder labelled, for example, LineageOS_16.0 with the following command:
    repo init -u git://github.com/LineageOS/android.git -b lineage-16.0

    To add the roomservice.xml file
    above to the .repo folder (Note: if the .repo folder is not visible in your LineageOS_16.0 folder after initializing, try Ctrl H to make it visible):
    - make a new folder inside the .repo folder and label the new folder: local_manifests
    - create an empty document inside the local_manifests folder and label it roomservice.xml
    - copy the roomservice.xml file contents exactly as above and paste it into the document, making sure you save it.

    Then, in the LineageOS_16.0 folder, open a command prompt, type the following and enter it:
    repo sync --force-sync -c -j1
    (Note: j1 can be a higher number depending on the number of cores your processor has - the default is j4 but I have had the fewest problems using j1 initially if trying to build with lower ram).

    Recomended:
    - Turn on caching to speed up your builds:
    export USE_CCACHE=1 (add the line to your ~/.bashrc file using this command, for example: sudo nano ~/.bashrc to open the file, before adding the line and saving it). Then update your environment using this command: source ~/.profile
    - In the LineageOS_14.1 folder you created open a command prompt and type & enter the following:
    prebuilts/misc/linux-x86/ccache/ccache -M 50G this will permanently set your cache to 50GB and speed up your builds hugely. Only has to be done once.
    - Configure Jack by adding this as well to your ~/.bashrc file, the same way that you set up using ccache:
    export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xms8G -Xmx8G. Then update your environment using this command: source ~/.profile. Adjust the -Xms8G -Xmx8G if trying to build with lower ram (e.g., 4GB). I'm currently running 20GB ram (shortly going to 24) and use 8GB for these particular commands.
    - Note: If running very low ram (Not recommended as you will likely have problems or fail to complete the build, but if trying to build with, e.g., 4 GB), set jack.server.max-service=1 in the .jack-server folder in /home/"user-name"/.jack-server/config.properties (open the config.properties file with a text editor, make the change and save it). The default is jack.server.max-service=4.
    * If experiencing out of memory issues/stalls etc. building with jack-server/Java and you have a swap file/partition seriously consider enabling ZSWAP with lz4 compression - refer to this excellent how-to and follow it exactly: http://grimore.org/linux/zswap

    Then to build the rom, use the following commands in the LineageOS_16.0 folder, separately in order:
    . build/envsetup.sh && croot - then, when it's completed
    brunch peregrine - where the rom build actually takes place

    Your rom zip file will be found in the out > target > product > peregrine folder in your LineageOS_16.0 folder.

    Once you've completed a successful build refer to the following to learn how to update the critical security patches by thealaskalinuxuser: How to manually update your custom rom source code with security updates - as I mentioned above in my previous post, it's not that difficult a process but you do have to build the rom again and test it to make sure all is in order.

    To do another build when a new security patch is posted, run the make clobber command in the LineageOS_16.0 folder to clean out the previous build and the ccache -c command to clean-up the ccache build-up before running the repo-sync --force-sync - c -j1 command again, then check the security patch date (in /build/core/version_defaults.mk) and, only if needed and you cannot repopick the security patch topic from the LineageOS Gerrit site, add the security additions/deletions (copy and paste the additions, removing the + signs, and delete the subtractions) to the relevant files and then run the build again with the . build/envsetup.sh && croot and brunch peregrine commands.