yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sdembiske:
Yes, I just checked the LineageOS Gerrit site, the security patches for 16.0 were merged in 2 days ago ... but ... that will not necessarily be the case every month - it varies, as I indicated. The March patches have also been merged in for LineageOS 15.1 but not for 14.1.

You're forgetting the Thanks button again ... appreciate it if you could remember it.
[Moto G 4G Android Development] passtim:
Does the date in that .mk file not indicate that the patches have been applied? If not, is there some relatively easy way to check?

I thought I had done, I know I tried, but maybe I just missed it - sorry.
[Moto G 4G Android Development] sdembiske:
Yes it indicates they have been merged-in. If they were not you would still show the Feb. '20 security patch date when you repo synced.
[Moto G 4G Android Development] passtim:
Good. That's all I need to know, for now at least :)
[Moto G 4G Android Development] shokmah:
clean flash, magisk latest and no gapps.

still got random reboot, 2 to 3 per hour. got termux on boot logging each time it started.

more looked like a crashed UI for the few time I saw it, tho. screen go black with backlit on, stay 15-20 sec maybe, then show lockscreen and all notification start poppin as they would do for a normal bootup.

I'll try my luck with lineage 14.1 , as I need more stability to run nginx on it.
[Moto G 4G Android Development] sdembiske:
I have been running the same build for 5 days now with no issues like you are describing and no random reboots.

Suggest you do a full clean flash, again, but, make sure you are using the latest TWRP version for Peregrine and you have backed up your data first.

In TWRP wipe Cache, Dalvik Cache and system - then format Data - yes.

Install the rom, then flash Open Gapps, Jan. 17th Pico version or an earlier version, only.

Reboot to system, letting the Google app updates finish.

Then, if all is good, go back into TWRP recovery and flash the latest Magisk.
[Moto G 4G Android Development] shokmah:
did an ultime clean flash, latest twrp, no gapps.

latest magisk added after having completed lineage setup process, on second reboot so.

Still the same, 2-3 random "reboot" each hour.

from UI point of view, it looks like trebuchet is restarting. but the usb link to computer is severed too so it's more like to be the last stage of boot procedure that happen again and again.

Just made a shell script that add date to a logfile after boot complete.

Thanks for the effort tho.
[Moto G 4G Android Development] passtim:
I've run both the builds from here, and then my own builds following the instructions referred to earlier, with no random reboots. I get occasional slow periods, and statements (usually on booting up) that magisk or trebuchet has stopped running, but these issues quickly clear up.
[Moto G 4G Android Development] sdembiske:
I suspect your issues are primarily directly linked to not installing Open Gapps - the one time I ran into problems with system UI and apps force closing etc., is when I forgot to install Open Gapps.

Try it ... you can always uninstall anything individually after you're up and running. I also use the APEX launcher as I like it's customizing abilities.
[Moto G 4G Android Development] key-ancel:
I have the same problem, with gapps and without gapps.

It also happens when I enter a new Wifi network, and wait a few seconds. Then the screen is black and the ui stops working.

Random reboots in my case are every 2 to 3 hours.

Install it with all the steps, clean installation, for now I will return to LOS 14.1, for more stability.
[Moto G 4G Android Development] sdembiske:
[MENTION=7337652]key-ancel[/MENTION] [MENTION=1198924]shokmah[/MENTION]

For those of you experiencing reboot issues, system UI closures, etc., I've uploaded another of my builds (with March '20 security patches), that has at least three more commits pushed through to the proprietary_vendor_motorola folder in the build process. I'm not sure it will address the issues each of you are experiencing but worth a try. A proper test includes flashing Open Gapps immediately after installing the new rom. If you don't, all bets are off ...

Do a regular clean flash if you're running the last 16.0 build: Wipe Cache, Dalvik Cache and System. Install Open Gapps Pico from Jan. 17th or an earlier date. Reboot to recovery and then install Magisk latest version. Once that's done you can boot up.

Download link

: https://mega.nz/#!0eQ2RQYR!uORsHA-ohqx7WnObLVIrJZhZpWFfjWe6kT4MR7G3ScQ

Frankly, I agree LineageOS 14.1 is much more stable and responsive. It is still being maintained unofficially by me and will continue to be for the foreseeable future (I cannot say the same for this rom). 14.1 is right up-to-date with the latest Security patches, etc.

Sometimes you can push a phone only so far with newer operating systems - that may be the case here with 16.0 on the Moto G Peregrine
[Moto G 4G Android Development] key-ancel:
Install this new ROM, following all the steps. and it really works. Bootloop no longer exists (I was using it 3 days in a row and no problem).

The only problems/bugs that persist are.:

• FX 3D effect brocken Audio

• Lag on WhatsApp stories.

• Netflix app does not open or not compatible.

The latter being the one that affects me the most since Netflix is ​​one of my favorite XD apps.

In the same way, the room now works much better!

Thanks for this ROM! :)
[Moto G 4G Android Development] sdembiske:
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 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-20200410-UNOFFICIAL-peregrine.zip

Link

: https://mega.nz/file/NaRE1KoS#YIecb6HIuAivtqQbr8pS61obkwezjJjyqFPv7mG2pNo

I give full credit to the author of this thread [MENTION=7751333]Allstargaurav[/MENTION] and in particular to [MENTION=4977500]sevenrock[/MENTION] and [MENTION=7344859]RenanQueiroz[/MENTION] 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.
[Moto G 4G Android Development] Robert Steed:
Sound playback through the headphone jack doesn't work. It does work through the phone speaker. When I try to play audio through the headphone jack I do hear the sound at first but only for a split second. I had the same fault on both lineage-16.0-20200131-UNOFFICIAL-peregrine.zip and lineage-16.0-20190422-UNOFFICIAL-peregrine.zip. Does anyone know of a solution?

---------- Post added at 03:21 PM ---------- Previous post was at 02:53 PM ----------

I've just found a solution to this which is to disable AudioFX.
[Moto G 4G Android Development] key-ancel:
Disabling audiofx is not necessary. Just set the virtualizer option to 0%.
[Moto G 4G Android Development] sdembiske:
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 [MENTION=7751333]Allstargaurav[/MENTION] and in particular to [MENTION=4977500]sevenrock[/MENTION] and [MENTION=7344859]RenanQueiroz[/MENTION] 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.
[Moto G 4G Android Development] koenichlich:
Thanks so much!

I have just dug up my old Moto G running on an older Lineage based on Android 7.1; formatted data etc as suggested, installed those GApps from January as suggested as well - and I'm amazed how well this phone still runs. It'll be used as a baby monitor :o
[Moto G 4G Android Development] Naunaud:
Hey,

Thanks for the build!

I've been trying to install it, but whenever I do, I get an error message on TWRP:

"E3004: This package is for device: peregrine; this device is ."

"Updater process ended with ERROR: 7"

I have an XT1039, is it too old for this build?

The 14.1 peregrine that you also build works just fine.

Thanks,
[Moto G 4G Android Development] sdembiske:
There shouldn't be a problem installing on the XT1039. Make sure you are doing a FULL clean flash and using the LATEST official TWRP version for Moto G LTE/4G Peregerine and the latest Magisk root version.

Read the install suggestions in the post with the download link again and follow them exactly. You will have to format data > yes.
[Moto G 4G Android Development] Javier564:
Same happened to me on my xt1040 i fixed it deleting the lines of updater-script you need to keep the "ui_print" line first in META-INF/com/google/android hope it helps and sorry for my english
[Moto G 4G Android Development] Naunaud:
Thanks Javier564, it was indeed an issue with the two asserts at the top of the update-script.

Those were not matching my phone.

Removed those two lines, repacked the zip and I was able to flash. :)
[Moto G 4G Android Development] sdembiske:
[MENTION=7585159]Javier564[/MENTION]

From: https://wiki.lineageos.org/faq.html

Installing LineageOS zips in Recovery results in “Error 7”

The most common reasons for this error are:

You are trying to install a build for a different device. You need to make sure you download the zip for the correct device *and* variant

You are attempting to migrate from an unofficial build to official LineageOS. A full data wipe is needed if you are coming from something other than an official build of LineageOS.

Your vendor/modem/bootloader is too old (or maybe too new). Flash the correct stock image for your device, before wiping data and attempting to install LineageOS again. This information should be listed on the device’s wiki page.

Your recovery is outdated. Flash the newest available version of the recommended recovery image for your device.

As this error has not been reported before before with my builds I can only surmise you have not done as I originally suggested.

i.e., either your TWRP recovery is outdated and you have not updated it or you have not done a FULL clean install: wipe Cache, Dalvik cache, system and most importantly, format data > yes. This is particularly important when coming from an official or unofficial 14.1 LineageOS or any other custom rom you might have installed previously.
[Moto G 4G Android Development] Naunaud:
Hello,

I've done a complete wipe and I have TWRP 3.3.3-1, which is the latest for peregrine (taken from TWRP's website).

So I'm not sure what's going on, but I've followed the instructions to the letter.

I had Lineage 14.1 official before, I did those steps to install your latest 14.1 unofficial, and the same steps for the 16.0 wouldn't work. :(

Kind regards,
[Moto G 4G Android Development] florstat:
A little question: what is missing to have the Official status? I see that Samsung S3 Neo ( same chipset and gpu ) has it.

https://wiki.lineageos.org/devices/s3ve3gjv/
[Moto G 4G Android Development] sdembiske:
There are a number of requirements to get to the point of "official" status. Refer to the following link:

https://github.com/LineageOS/charter/blob/master/device-support-requirements.md

Whether these builds would meet their requirements or not, I don't know and frankly it isn't that important to me to undertake it. My only interest is to have the latest security updates on a phone that performs well enough for every day use.

If any other members want to take it on and submit their builds to the Lineage team, more power to them. I don't have a problem with it.

I do this to support those in the community that still have and use their Moto 4G/LTE's for Daily use in one form or another and who, for whatever reason, do not want to or can't build and maintain it themselves for other reasons, e.g., simply don't have the computing power, hard disk storage on their laptops/Desktops to build it.
[Moto G 4G Android Development] passtim:
I'm very grateful for your efforts, and see no need for it to be 'official'.

The reason I don't build it myself very often (I have done a few times to prove I could do so) is that whilst I can do the purely mechanical aspects of building it, I am not able to inspect the lists of changes and select the ones I might need myself. I simply don't have the knowledge or understanding. I am not even sure if when I build using the manifest you supply, whether that is exactly what you have built and link to on this forum, or just a basic set of security fixes.
[Moto G 4G Android Development] sdembiske:
I take the latest github repos from the original members who contributed to the development of the rom, clone them to my Github repositories and check for any further development updates they may have posted for inclusion in the roomservice.xml file in the local_manifests folder in the repo folder used to build this rom. In addition, any LineageOS and AOSP updates posted and merged 'officially' for the rom version (16.0 LineageOS, i.e., Android 9.0 in this case) are included, then I add the google security patches, test and review them in LineageOS Gerrit. My roomservice.xml file posted in the build instructions in post # 230 contains the latest updates from the initial development contributors (if any), the LineageOS and ASOP teams

at the time one repo syncs

- the posted builds I do also include the latest Google security patches, tested and reviewed. Once these are 'officially' merged by the LineageOS Gerrit team, a repo sync includes what is currently available, i,e, it's up-to-date to the repo sync date. They are never merged until they are tested and reviewed by contributors and approved by team members authorized to merge them.

The same process takes place to get the rom approved by the LineageOS team for 'official' download status but is much more extensive, including any necessary bug fixes, coding changes to get the rom up to their own approval standards, something that isn't always possible with older phones with outdated hardware. This phone may be able to gain 'official' rom download status but I really don't feel the need to do it for myself. I know what I build and am comfortable with it.
[Moto G 4G Android Development] sdembiske:
The JUNE security update is now uploaded and linked correctly in post # 292 above for LineageOS version 16.0 (Android Pie/9.0), for MOTO G LTE / 4G Peregrine.
[Moto G 4G Android Development] :
bluetooth no funciona , todo lo demas anda perfecto

bluetooth no funciona en motog xt1040
[Moto G 4G Android Development] passtim:
Bluetooth works well on my XT1039. What functions do not work on your mobile?
[Moto G 4G Android Development] :
El problema del bluetooth lo tiene mucha gente y es específicamente en el modelo xt1040 que no funciona , el bluetooth activado se queda buscando dirección y no la encuentra , y en caso de reiniciar el celular , cuando inicia dice " el bluetooth a dejado de funcionar " .
[Moto G 4G Android Development] sdembiske:
English ONLY, please - it's an XDA requirement/forum rule. Use Google translate or something else to convert what you want to ask if you don't have much command of the English language.
[Moto G 4G Android Development] :
Blutooth doesn't work

The problem of bluetooth has a lot of people and it is specifically in the xt1040 model that it does not work, the activated bluetooth keeps looking for an address and cannot find it, and in case of restarting the cell phone, when it starts it says "the bluetooth has stopped working" .
[Moto G 4G Android Development] sdembiske:
I have an XT1040 and mine seems to be working fine. I am able to scan and find addresses and pair.

What I would suggest is that you start over. I put the recommended installation procedures in each update post.

Specifically I would do a FULL clean flash (backing up your data separately first):

"... in TWRP wipe Cache, Dalvik cache, System

and importantly

format Data > Yes (not wipe but actually format the partition) 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. "

and once you've done a full clean flash restored your data,

any further updates

should be installed doing 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).

The Open Gapps version you're using may also be making a difference if newer than Jan. 17th.

If after doing the FULL clean flash you still have issues do a logcat of the issue as it occurs and paste it with pastebin, providing the link (no expiry) in another post:

Refer to this excellent logcat guide by steadfasterX: https://xdaforums.com/g4/help/guide-providing-logcat-t3814517
[Moto G 4G Android Development] Lighto97:
i have a XT1040 and i followed the install instructions and my phone kept rebooting time to time, ah and in official gapps older builds repository i cant find the recommended version of gaps for this rom Jan. 17th. The oldest release available is jan31h for android 9, pico. i cant find anywhere andalso i'm not installing magisk cuz i dont use it
[Moto G 4G Android Development] sdembiske:
Make sure you are on the latest TWRP version for Peregrine: https://twrp.me/motorola/motorolamotog2013lte.html

- re-flash the image file, even if you are are on the latest version as a corruption may have developed.

Do a Full Clean Flash again

of the rom, making sure you format the data partition, not just wipe it (back up all your data first to your PC/USB Zip, etc., including any music, photos etc. on your SD card.

If you are rooted, use

only

Magisk latest version,

not

SuperSU which is no longer being maintained or LineageOS addon SU as it is deprecated now.

I've uploaded my copy of the Jan. 17th '20 Open Gapps ARM Pico 9.0 here: https://mega.nz/file/QShAkSqL#U20D_i2CI1VxtnblLKrSzwDNK4AAxxdGTb-KTT_iYlU

As you are the only one reporting a bootloop issue with the rom uploads, I suspect the problem resides with you and your installation method, outdated apps or your phone data is corrupted. I'm assuming you have unlocked your bootloader as you cannot flash a custom rom without having done this first.
[Moto G 4G Android Development] Lighto97:
thanks for the reply! well is not a bootloop but my phone restart after some time like one or two hours. i did cleared data partition and installed latest twrp. i will try again.
[Moto G 4G Android Development] sdembiske:
Re: Data - Not just 'wipe',

do

Format > yes after wiping Cache, Dalvik cache & System (yes, all of them).
[Moto G 4G Android Development] Lighto97:
i did exactly that installed lastest twrp recovery image ,wiped all partitions and formatted data, installed the rom and gapps (the right version this time ) but my phone still reboot after some tim of use.