• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][OFFICIAL][Peregrine][7.X] LineageOS 14.1

Search This thread

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the DECEMBER '20 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

FYI: for those of you building the rom for yourselves, the November and December updates, have been 'officially' merged in now. No changes of note to warrant another upload to the current rom download available at the link below.

Note: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20201214-UNOFFICIAL-peregrine.zip:

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

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the JANUARY '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

Note: This update is large and necessitated downgrading to Open Gapps PICO in order to fully install to the system partition.

FYI:
for those of you building the rom for yourselves, the November and December updates, have been 'officially' merged in now. No changes of note to warrant another upload to the current rom download available at the link below.

Note: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20210110-UNOFFICIAL-peregrine.zip:

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

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the FEBRUARY '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

Note: This update and the January '21 are both large and will likely require downgrading to Open Gapps PICO in order to fully install to the system partition.

FYI:
for those of you building the rom for yourselves, the January and February '21 updates, have not been 'officially' merged in yet.

Note: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20210206-UNOFFICIAL-peregrine.zip:

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

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the MARCH '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

Note: Recent updates are large and may require downgrading to Open Gapps PICO in order to fully install to the system partition.

Note
: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20210304-UNOFFICIAL-peregrine.zip:

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

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the APRIL '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

Note: Recent updates are large and may require downgrading to Open Gapps PICO in order to fully install to the system partition.

Note
: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20210407-UNOFFICIAL-peregrine.zip:

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

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
Nano just barely fits on mine. 79.3 MB free with stock dialer and Magisk 22.
I installed a Pico version from Jan. 10 and have 268 MB free in system. What I have noticed is that later versions of OpenGapps are larger in size, so one thing to do is check out older versions. There is also a new thread you could check out on XDA - BiTGApps.
You can remove system apps you don't need or want, move apps over to your SD card etc. Failing that you can try expanding your system partition with cache being the most likely place to get the additional storage from.
 

Mogster2K

Senior Member
Jun 25, 2011
339
64
I installed a Pico version from Jan. 10 and have 268 MB free in system. What I have noticed is that later versions of OpenGapps are larger in size, so one thing to do is check out older versions. There is also a new thread you could check out on XDA - BiTGApps.
You can remove system apps you don't need or want, move apps over to your SD card etc. Failing that you can try expanding your system partition with cache being the most likely place to get the additional storage from.
Personally I wouldn't recommend using an old version of Gapps since some parts (like the DialerFramework) are only available in the Gapps package and can't be upgraded thru the Play Store.

If someone wants to make some space, they could exclude individual apps. For example, Google Search can be excluded by creating a file named "gapps-config.txt" that contains the text "Search" and placing it in the same folder as the Gapps package before flashing. See here for more info:
 

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
Personally I wouldn't recommend using an old version of Gapps since some parts (like the DialerFramework) are only available in the Gapps package and can't be upgraded thru the Play Store.

If someone wants to make some space, they could exclude individual apps. For example, Google Search can be excluded by creating a file named "gapps-config.txt" that contains the text "Search" and placing it in the same folder as the Gapps package before flashing. See here for more info:
Google dialer framework can be installed with a Majisk module or as an apk from apk mirror which then allows the download and update of Google phone from Play Store.

You may also want to refer to this piece from OpenGapps: https://opengapps.org/blog/post/2016/05/13/google-dialer-for-all/ from May 13, 2016. It would appear your example may not be entirely relevant.
 

Mogster2K

Senior Member
Jun 25, 2011
339
64
Google dialer framework can be installed with a Majisk module or as an apk from apk mirror which then allows the download and update of Google phone from Play Store.

You may also want to refer to this piece from OpenGapps: https://opengapps.org/blog/post/2016/05/13/google-dialer-for-all/ from May 13, 2016. It would appear your example may not be entirely relevant.
Yes and no - that post refers to the Dialer app being available from the Play Store, not the framework.

The advisory to regularly flash an updated GApps package to update DialerFramework remains intact. It can only receive security updates if you update your Open GApps installation and not via the Play Store. Make sure to update your Open GApps installation at least once a month, after Google’s monthly security updates are added to the Open GApps repository.
TBH I'm not sure whether the framework is really needed. Maybe I'm just flashing it out of habit?
 
  • Like
Reactions: sdembiske

franchips

New member
Apr 27, 2021
3
1
I do, however, continue to recommend you learn to build it yourselves: refer to post # 1210 for the full build instructions.
Newcomer to this "ROM" world, I would like first to thank you for all your work.

Thanks to sdembiske's tutorial, I've just finished to build my first unofficial ROM (with many warnings :unsure:) on a Linux Mint fresh OS.

It lasted:
- 3h30 on a 10 years old Athlon II X3 445 cpu + 8 GB DDR3 the first time;
- 2h30 the second time (thanks to ccache ?)

I didn't manage to build it with only 4 GB DDR2... I should spend more time trying different build options (JACK toolchain options are cryptic for me)

Now, I have to flash my Moto G 4G (never done it before !).

Question1 : does someone know how long will the 14.1 branch be maintained please ?

Thank you all.
 
  • Like
Reactions: sdembiske

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
Newcomer to this "ROM" world, I would like first to thank you for all your work.

Thanks to sdembiske's tutorial, I've just finished to build my first unofficial ROM (with many warnings :unsure:) on a Linux Mint fresh OS.

It lasted:
- 3h30 on a 10 years old Athlon II X3 445 cpu + 8 GB DDR3 the first time;
- 2h30 the second time (thanks to ccache ?)

I didn't manage to build it with only 4 GB DDR2... I should spend more time trying different build options (JACK toolchain options are cryptic for me)

Now, I have to flash my Moto G 4G (never done it before !).

Question1 : does someone know how long will the 14.1 branch be maintained please ?

Thank you all.
The rom for this phone is no longer 'officially' maintained by LineageOS - it is up to contributing members to keep it updated. I took it on to post my builds based off the official for other members not able to build it for themselves or unwilling to. It will be maintained by me here for those individuals as long as the phone is still in use in our family and AOSP and Google security updates are made available for the 14.1 LineageOS version and are merged in by the LineageOS Gerrit contributors and verifiers and team members authorized the merge the updates in.
 
  • Like
Reactions: franchips

franchips

New member
Apr 27, 2021
3
1
All right, I managed to flash the ROM I built and my smartphone is now far faster than before !

The only issue I encouter now is that I can not encrypt my phone data : when I click on the "encrypt the phone" button, the Android green robot appears and then the phone immediately reboots.

Many thanks
 

Mogster2K

Senior Member
Jun 25, 2011
339
64
All right, I managed to flash the ROM I built and my smartphone is now far faster than before !

The only issue I encouter now is that I can not encrypt my phone data : when I click on the "encrypt the phone" button, the Android green robot appears and then the phone immediately reboots.

Many thanks
First, congratulations! You've taken your first step into a larger world. ;)

Second, I don't know why it would fail to encrypt, but I do think that encrypting it would remove any speed gains. The CPU does not have hardware acceleration for encryption (it's just too old.)

Third, Look in the phone settings under "About phone". What date is listed under "Android security patch level"?
 

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
All right, I managed to flash the ROM I built and my smartphone is now far faster than before !

The only issue I encouter now is that I can not encrypt my phone data : when I click on the "encrypt the phone" button, the Android green robot appears and then the phone immediately reboots.

Many thanks

Are you using the TWRP versions listed in the Security update posts?

"Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions."
 
  • Like
Reactions: franchips

franchips

New member
Apr 27, 2021
3
1
First, congratulations! You've taken your first step into a larger world. ;)

Second, I don't know why it would fail to encrypt, but I do think that encrypting it would remove any speed gains. The CPU does not have hardware acceleration for encryption (it's just too old.)

Third, Look in the phone settings under "About phone". What date is listed under "Android security patch level"?
Hi Mogster2K, thank you for your reply and for your congratulations : the security patch date is April 5, 2021.

Are you using the TWRP versions listed in the Security update posts?

"Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions."
Hi sdembiske, thank you for your reply. You are right, I used the last twrp-3.5.2_9-0-peregrine.img... It seems that I missed the post refering to this.


So I will give up encryption because now my phone is running perfectly and I don't want to break anything.

Next step : May security updates ! I hope I will not make mistakes and erase data...
 

sdembiske

Senior Member
Jan 4, 2015
1,270
1,630
For those of you wishing to update to the MAY '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

Note: Recent updates are large and may require downgrading to Open Gapps PICO in order to fully install to the system partition.

Note
: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

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, preferred root & Xposed (if required).

Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

Download Link for lineage-14.1-20210507-UNOFFICIAL-peregrine.zip:

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

RogerH63

New member
Aug 30, 2015
1
0
Maastricht
Is there any benefit from installing latest peregrine LineageOS 14.1 / Android 7.x builds? Google has stopped supporting Android 7.x more than a year ago. Unfortunately I cannot upgrade to LineageOS 16.0 due to some stability issues (despite carefully following upgrade instructions).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    For those of you wishing to update to the JULY '21 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

    Note: Recent updates are large and may require downgrading to Open Gapps PICO in order to fully install to the system partition.

    Note
    : Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

    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, preferred root & Xposed (if required).

    Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

    Download Link for lineage-14.1-20210711-UNOFFICIAL-peregrine.zip:

    I do, however, continue to recommend you learn to build it yourselves: refer to post # 1210 for the full build instructions.
    1
    First of all, thank you very much for the support you give to our moto G 4G!
    Unfortunately I have a recurring network problem. After having flashed the 20210615 ROM cleanly, the network worked fine for a few hours, but soon a network problem occurred. When I unlock the SIM it says "no service" and I can't get any network. If I put the SIM card in another phone I don't have this problem. I have already tried resetting the network settings, but this does not solve the problem. What else can I try? Am I the only one to get this problem ?
    Thank you in advance for your help!

    First thing, go to your network web site and search for their 'Access point names (APN'S) - note down all the specific info provided, in particular, MMSC, MMS proxy, MMS port, MCC, MNC, etc.

    Then in your phone, go to Settings > Mobile network > Advanced > Access point names > click on your network that's listed - click on the 3 dot sub-menu at the top right of the screen and click 'Discard' - once that is done add an APN (+) back in and enter all the information in that you got from your network provider. Make sure you save it.

    You may have a hardware issue if that doesn't help. I ran into a situation where I wasn't receiving text messages and doing the above solved it.
  • 70
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), 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)
    • Wifi
    • Bluetooth
    • Camera ( Videos And Photos )
    • Video Playback
    • Audio ( Record and Playback )
    • Sensors
    • Flash
    • Led

    Instructions :
    • Ensure your on latest twrp
    • Download the latest build and gapps if you want
    • Reboot to recovery
    • Flash the latest build and gapps(optional)
    • Reboot

    Downloads :
    Builds : https://download.lineageos.org/peregrine
    Google Apps: http://opengapps.org

    Reporting Bugs
    Grab a logcat and here 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.

    Credits
    • @LuK1337 : For being the boss :p :D
      For donating his server for our device builds and continued to support moto msm8226 devices
    • @luca020400 : As he is co-maintainer
    • Gabriele M for continued support
    • @Somcom3X : Help during development
    • @kaustubh88 and @crpalmer : Kernel Tree and Patches
    • Motorola : For providing the Kernel Source Code
    • CM Team


    Donations :

    If you have some spare bucks and want to say thanks in another way donate to these awesome people -
    LuK1337: http://forum.xda-developers.com/donatetome.php?u=5075128
    luca020400: http://forum.xda-developers.com/donatetome.php?u=5778309



    XDA:DevDB Information
    LineageOS, ROM for the Moto G

    Contributors
    Kayant, LuK1337, luca020400, skaveelicious, Somcom3X, crpalmer, Intervigil
    Source Code: https://github.com/LineageOS

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x
    Based On: LineageOS

    Version Information
    Status: Beta

    Created 2016-09-26
    Last Updated 2017-01-30
    13
    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:

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    <project name="LineageOS/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-14.1" />
    <project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" revision="cm-14.1"/>
    </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 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_14.1 with the following command:
    repo init -u git://github.com/LineageOS/android.git -b cm-14.1

    To add the roomservice.xml file
    above to the .repo folder (Note: if the .repo folder is not visible in your LineageOS_14.1 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_14.1 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).

    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 -Xms4G -Xmx4G" Then update your environment using this command: source ~/.profile
    - Note: If running very low ram (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).
    * 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_14.1 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_14.1 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_14.1 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, if needed, 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.
    13
    Just so you are aware the next nightly should provide a upgrade path for people from previous CM versions(i.e CM13 to 14.1) without the need to wipe data. Will test it tomorrow to confirm it.

    Also to note of course you will need to flash a 7.1 Gapps if you use Gapps.

    Thanks to those commits - https://review.cyanogenmod.org/#/q/topic:db-upgrade
    13
    Tip: If you want to be able to flash latest CM14.1 updates you need to update your twrp.
    ~ https://dl.twrp.me/peregrine
    13
    For those of you wishing to update to the APRIL '20 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

    Note: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. 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.

    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, preferred root & Xposed (if required).

    Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

    Download Link for lineage-14.1-20200407-UNOFFICIAL-peregrine.zip:
    Link: https://mega.nz/file/0P52nYIa#_xbF1Bwvq8ILi5oLDtPmg200TqInfW1_howzKHlt1nA

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