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

Search This thread

SirRGB

Senior Member
Jun 29, 2019
390
126
Google Nexus 5
Samsung Galaxy S5 Mini
Since the partition table is signed on moto devices it is near impossible to resize the partitions without another device of the same generation, that has the same keys used and larger partitions. In addition there is no way to check if the keys match except trying which can lead to a hard brick.
The Moto G2 has A10 roms, which exclude a lot of system apps like the keyboard, telephone, sms,... app to provide as much partition space as possible, so that might be an option too...
 

sdembiske

Senior Member
Jan 4, 2015
1,365
1,842
For those of you wishing to update to the JULY '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: If you run into an issue where the installation of this updated rom stalls out totally, it may be because Magisk is still installed, even after wiping 'System', 'Cache' & 'Dalvik cache' which I believe creates a signature verification issue with the rom install. You may not be able to uninstall Magisk through the app itself as it will indicate that 'Data' can't be unmounted. The solution is to rename the latest Magisk apk to uninstall.zip (as per the Magisk info on it's github site) and flash it in TWRP, then wipe Cache, Dalvik cache and System, reboot to recovery and install the newly patched rom & Open GApps, reboot to recovery and flash the latest Magisk .apk renamed to .zip before rebooting the system. I don't know if this will be a one off situation at this stage or not.

* Weird Magisk bug has been 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-07-14 UNOFFICIAL-peregrine.zip

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

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:

2urtle

Member
Nov 15, 2010
11
1
I love this Rom.
I am intending to use the old moto g as an mp3/ m4b player. I have an issue where if I have audio fx on the headphones don't work. If I turn it off they work but when I turn it back on I get a kind of squealling.
Does anyone have a suggestion for n mp3 app that will play an album with as few as possible clicks?
I am planning on giving one to an old guy (I think he is 80+) as I just found ot he is still listening to cassette tapes as he has just bought new walkman. So it needs to be straight forward. I have removed everything apart from the music app widget off the homescreen.

I did not flash Gapps either.
 

sdembiske

Senior Member
Jan 4, 2015
1,365
1,842
For those of you wishing to update to the AUGUST '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).

Best way to install latest Magisk:
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-v25.2.apk changes to Magisk-v25.2.zip).

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-08-08 UNOFFICIAL-peregrine.zip

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

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

sdembiske

Senior Member
Jan 4, 2015
1,365
1,842
I love this Rom.
I am intending to use the old moto g as an mp3/ m4b player. I have an issue where if I have audio fx on the headphones don't work. If I turn it off they work but when I turn it back on I get a kind of squealling.
Does anyone have a suggestion for n mp3 app that will play an album with as few as possible clicks?
I am planning on giving one to an old guy (I think he is 80+) as I just found ot he is still listening to cassette tapes as he has just bought new walkman. So it needs to be straight forward. I have removed everything apart from the music app widget off the homescreen.

I did not flash Gapps either.

Few things you might try:
- turn off Bluetooth
- clean your headphone jack with rubbing alcohol and blow out any debris in your jack port.
- install gapps and see if any improvement. Put only the mp3 player app on the home screen for ease of access for the fellow you're trying to help.

Check out this link for mp3 players:
 
  • Like
Reactions: 2urtle

sdembiske

Senior Member
Jan 4, 2015
1,365
1,842
For those of you wishing to update to the SEPTEMBER '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).

Best way to install latest Magisk:
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-v25.2.apk changes to Magisk-v25.2.zip).

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-09-12 UNOFFICIAL-peregrine.zip

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

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.
  • 5
    For those of you wishing to update to the SEPTEMBER '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).

    Best way to install latest Magisk:
    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-v25.2.apk changes to Magisk-v25.2.zip).

    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-09-12 UNOFFICIAL-peregrine.zip

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

    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.
  • 35
    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.