yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sdembiske:
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 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 updates have been large and 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.

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

File on MEGA

mega.nz

I've uploaded my copy of the Jan. 17th '20 Open Gapps ARM Pico 9.0 here as it appears to be no longer available for download from the Open Gapps site: https://mega.nz/file/QShAkSqL#U20D_i2CI1VxtnblLKrSzwDNK4AAxxdGTb-KTT_iYlU

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.
[Moto G 4G Android Development] sifriday:
This is working fine for me, even using a download straight off OpenGApps for arm/9/pico - so maybe they have fixed their site. Thanks - I am using a Peregrine a friend gave up on, because the UK network operator abandoned it on Android 4.4. It would have gone to landfill, but Lineage has allowed me to keep it going and it is now running Android 9 via your Lineage 16 build, seemingly just fine.
[Moto G 4G Android Development] sdembiske:
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 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 updates have been large and 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.

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

File on MEGA

mega.nz

I've uploaded my copy of the Jan. 17th '20 Open Gapps ARM Pico 9.0 here as it appears to be no longer available for download from the Open Gapps site: https://mega.nz/file/QShAkSqL#U20D_i2CI1VxtnblLKrSzwDNK4AAxxdGTb-KTT_iYlU

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.
[Moto G 4G Android Development] edward636:
Thank you very much for the contribution of this ROM, I have had failures with the WIFI, it does not detect the hidden networks already saved, and very low detectability of the signals
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the JUNE '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 updates have been large and 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.

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) - 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 14.1 and lower versions may no longer be 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). 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-20210612-UNOFFICIAL-peregrine.zip

File on MEGA

mega.nz

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.
[Moto G 4G Android Development] sdembiske:
I'm assuming you followed the install instructions exactly in the update posts I upload, including doing a 'Full Clean Flash' if upgrading from 14.1 or coming from stock? In particular, this means doing 'Format Data -> yes". If not, do it.

If you have followed the install instructions exactly as they're outlined, go to Settings > under Wireless & Networks, tap ... More > Mobile networks > Access point names (apn's) - check the latest apn's from your network provider 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.
[Moto G 4G Android Development] edward636:
Yes, I formatted all the partitions and did a clean installation, the problem is that it does not detect WiFi networks with hidden SSIDs.
[Moto G 4G Android Development] sdembiske:
Delete the wifi apn network you're trying to connect to. Add it back in but before entering your password and saving it, under 'Advanced', check mark the hidden network box, then proceed with entering password and saving it.

If it's not available, try unhiding your SSID, connect to the network, than re-hide it on your router/modem and see if it helps.

Please learn to use the 'Like' button at the bottom of the members posts that you receive help from or download roms from.
[Moto G 4G Android Development] edward636:
Thanks, Solved
[Moto G 4G Android Development] synistron:
I'm trying to build following instructions on post #230, and when I get to the "brunch peregrine" command, I get this error:

[477/1067] including packages/apps/LockClock/Android.mk ...
packages/apps/LockClock/Android.mk:20: error: FindEmulator: find: `packages/apps/LockClock/src': No such file or directory
15:35:45 ckati failed with: exit status 1

#### failed to build some targets (17 seconds) ####

And indeed, it seems that there is no such file. Prior to the build when I pulled everything from git, my had HDD filled up and I got an error, but I made room and ran the command again successfully. What should I do now?
[Moto G 4G Android Development] sdembiske:
For future reference, the next time you get an error, that you can't figure out on your own: at the top of the command prompt app, go to 'Search' (top bar) and search for 'Failed', let it run and when finished find the relevant 'Failed' paragraph (it will have 'Failed' at the very start of the relevant paragraph), copy it and post it to pastebin.com, get the link (no expiry) and post the link here in the thread.

Now, with that said, if the error occurred in the 'Packages' folder in the rom build folder, delete the 'Packages' folder and run the 'repo sync --force-sync -c -j1' command again (use -j1 even if you have more than 2 cores). Once complete, run the 'brunch peregrine' command again.
[Moto G 4G Android Development] synistron:
Thank you sdembinske, I will try rebuilding and see how it goes.

I was unable to load any of the Open GApps on the default phone (even the smallest one) because there was not enough internal memory, so I used BitGApps as djibe89 recommended above.

However - and I'm not sure this has anything to do with BitGApps - something in the phone will crash at random, even when I'm not using the phone. The screen will go black (still light coming from the screen, so it's on all the time), then after a few seconds it will come back to the lock screen. This happens when using or not. I installed a logcat reader to attempt to pinpoint the issue, but at this stage I may just redo it without BitGApps and see how it goes. I added an SD card so hopefully it can be used early on in the process.
[Moto G 4G Android Development] sdembiske:
"Do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps/BitGApps, reboot to recovery & install preferred root (latest Magisk recommended)."

This should be done EVERYTIME you install a new version over an older version. You will not lose any Data. If you run into the same problem, you will have to do a 'Full clean flash', i.e., the above but 'Format Data > Yes' before rebooting and installing Magisk. You will lose Data in this case, so back it up beforehand.
[Moto G 4G Android Development] rah2501:
There is not enough space for the latest pico Open GApps, specifically open_gapps-arm-9.0-pico-20210715.zip:

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 | 225872 | 225872
Remove | Existing GApps | + 0 | 225872
Remove | Obsolete Files | + 0 | 225872
Remove | cmsetupwizard | + 0 | 225872
Remove | extservicesstock | + 52 | 225924
Remove | extsharedstock | + 24 | 225948
Remove | packageinstallerstock | + 8668 | 234616
Remove | provision | + 0 | 234616
Install | Core | - 223832 | 10784
Install | calsync | - 2548 | 8236
Install | dialerframework | - 12 | 8224
Install | googletts | - 30892 | -22668
Install | packageinstallergoogle | - 8348 | -31016
| Buffer Space | - 9216 | -40232
------------------------------------------------------------------
Additional Space Required | 40232
------------------------------------------------------------------

But I managed to get Open GApps installed through recovery by removing the following package directories using "adb shell" from my workstation in between installation of the Lineage OS ROM .zip and the Open GApps .zip:

/system/priv-app/Gallery2/

/system/priv-app/WeatherProvider/

/system/priv-app/Recorder/

/system/priv-app/FMRadio/

/system/priv-app/VpnDialogs/

/system/priv-app/WallpaperCropper/

/system/app/Email/

/system/app/WallpaperPicker/

/system/app/Exchange2/

/system/app/Calendar/

/system/app/LiveWallpapersPicker/
[Moto G 4G Android Development] sdembiske:
Well known .. Pico is the recommended version if you're using Open Gapps. A little more searching of the posts on this thread and you would have discovered that.
[Moto G 4G Android Development] sdembiske:
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 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 updates have been large and 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. The June 10 '21 Pico version appears to be the last one (to-date) that can be installed without issues. See post # 380 for a download link or search the older versions on the Open Gapps site for this particular version download.

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) - 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 14.1 and lower versions may no longer be 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). 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-20210715-UNOFFICIAL-peregrine.zip

File on MEGA

mega.nz

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.
[Moto G 4G Android Development] rah2501:
Sorry, I meant pico. The latest pico version can't be installed. I've updated my comment to reflect this.
[Moto G 4G Android Development] sdembiske:
"Do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps/BitGApps, reboot to recovery & install preferred root (latest Magisk recommended)."

This should be done EVERYTIME you install a new version over an older version. You will not lose any Data.

If you run into the same problem, you will have to do a 'Full clean flash', i.e., the above but 'Format Data > Yes' before rebooting and installing Magisk. You will lose Data in this case, so back it up beforehand.
[Moto G 4G Android Development] rah2501:
I did that. There isn't enough space to install pico GApps. I repeat: there isn't enough space to install this Lineage OS release and the latest pico Open GApps, specifically open_gapps-arm-9.0-pico-20210715.zip. You seem resistant to this idea and I'm not sure why.
[Moto G 4G Android Development] sdembiske:
As this issue has not been posted by anyone else with respect to this current security updated rom, the problem seems to reside with you at this point.

Given your first post, it appears you still had the stock GApps in your rom, so I'm thinking you didn't do a full clean flash to start with when you first transitioned from your stock rom to this one. If that is the case, your only option is to do what is suggested in all the rom upload posts, i.e., do a full clean flash, i.e., format Data > yes in addition to wiping cache, dalvik cache and system. If you have backed up to your Google account you will get most of your data back and you can use some free apps on Google Play Store to back up calls, messages, etc.. If you're storing pictures etc., on your system partition copy them over to your PC. You should be using your SD card as portable storage and storing any pictures, videos there.
[Moto G 4G Android Development] rah2501:
O_o

To be clear: in my view, there is no problem to be solved at present.

What makes you think that?
[Moto G 4G Android Development] sdembiske:
@bweston6 @rah2501

The problem does not reside with the rom but is a function of the increased size of the newer versions of Pico Open Gapps. The version that I was using was dated June 10 '21. I tried installing 3 later versions, up until the latest (July 24 '21), doing a Full clean install with Format Data > Yes as well as a regular clean flash (no data format) and they would not install due to the increased size issues. If you check the size of the June 10 Open Gapps version vs the later dated versions, you will see the size differences.

So, with that said, I am uploading here my copy of the June 10th version for any of you experiencing these issues. You should be able to do a regular clean flash with this version.

open_gapps-arm-9.0-pico-20210610.zip

https://mega.nz/file/4XpE0KzJ#p8wCqZTc50mCuKUkUzypeNrTrXQvnjiVwoz0WqwiLDs

That should solve your problems. Your individual apps will be updated etc., by Google Play Store, as always.
[Moto G 4G Android Development] ThePiGuy:
Ok. Just created a new gerrit request here (https://review.lineageos.org/#/c/LineageOS/android/+/228439/) ;)

Edit: it's going to be in lineage.dependencies now
[Moto G 4G Android Development] sevenrock:
Hi, updated my post based on todays repos, upstream merged some topics and created

new feature patch series, also FMRadio works again.
[Moto G 4G Android Development] edualuis11:
waiting for the update for our peregrino:). falcon updated to 9/17
[Moto G 4G Android Development] key-ancel:
waiting for the update for our peregrine x2. :D
[Moto G 4G Android Development] sevenrock:
Hi,

updated build instructions based on todays repos and gerrit patches:

Changelog:

updated local_manifest: kernel/motorola/msm8226 now uses RenanQueiroz/android_kernel_motorola_msm8226 which contains all patches from my repo

updated gerrit patches

removed vold reverts, not needed anymore

18/10/02: added qcom build fix

Today I formatted the sdcard as internal and encrypted the phone

without any problems. Updating the ROM with TWRP only worked

with "adb sideload" however.
[Moto G 4G Android Development] sevenrock:
Currently I am still using cm-14.1 as ROM for daily usage.

LineageOS 16.0 is tested on my spare peregrine phone.

To fully switch to LineageOS 16.0 these features are lacking:

- TWRP decryption -> I can not backup the phone

- Superuser - > TitaniumBackup does not work due to this

Are there alternatives to backup/restore the whole phone, like TWRP,

and all apps separately, like TitaniumBackup?

- Privacy Guard

Does "Settings, Apps & Notifications, Advanced, App rights" replace Privacy Guard?

But then some AppOps like "Start on boot" are missing.
[Moto G 4G Android Development] sevenrock:
Updated build instructions based on todays repos and gerrit patches.
[Moto G 4G Android Development] sevenrock:
LineageOS 16.0 will get one-hand-mode:

https://review.lineageos.org/#/q/topic:p-display-shrink

You can add this topic at the end of the topic list of my build script.
[Moto G 4G Android Development] Allstargaurav:
Moto G is very small device and people still want one hand mode
[Moto G 4G Android Development] sevenrock:
Small update based on todays build:

After encrypting my phone including adopted storage with a pin

for several builds TWRP asked for a pattern to decrypt the device,

today it asked for a pin and it decrypted the phone :) I could save

a backup on the sdcard and update the ROM based on a zip file

stored on the sdcard instead of "adb sideload".

Maybe the problem was solved with this patch:

https://review.lineageos.org/231354

https://review.lineageos.org/#/q/topic:pie-su adds root to the

ROM again :) TB, Greenify and catlog are working again.

Working with this patch series:

https://review.lineageos.org/#/q/topic:pie-privacy-guard
[Moto G 4G Android Development] huwg1:
Dear [MENTION=4977500]sevenrock[/MENTION], from what I read your build seems really functional with (almost) everything running.

Do you think you could upload a built ROM so I could try it on my peregrine? In case, which TWRP version should I use?

Thanks in advance, many regards,

huwg