yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the DECEMBER '21 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

Note:

The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently.

Note

: The

Nov. 02 Pico version

(approx. 184 MB), can be installed without issues. Compare newer PICO version sizes (up to rom build date or earlier, only) to it. If they are approx. the same size, there is a good chance you will be able to install them. Refer to post # 384 for a fuller explanation re: the recent Open Gapps size issues and a

potential solution

...

Note

: Requires

Full Clean Flash

when installing rom for 1st time I.E., coming from 14.1 (official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly

format

Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.

Very Important

: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.

Note

: Encryption is not working fully - If you need it, check out the 14.1 rom -

Note

: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended).

You will not lose any data

. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

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

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:
For those of you wishing to update to the JANUARY '22 Security Patches, I've uploaded one of my unofficial builds that is based off the latest build files available with the most recent posted security patches added (I know there are a number of members who for one reason or another are unable to or unwilling to build it themselves).

Note:

The recent security updates have been large and together with the increased Open Gapps file sizes may require a smaller version of Open Gapps than you've been installing, the removal of some apps or, as a last resort, resizing the system partition. Pico is the recommended version of Open Gapps, currently.

Note

: Once again some members are experiencing issues with installing the latest versions of Open Gapps Pico. I have tested this one dated June 10 '21 and it installed with no issues for me. So give it a try if you run into an install problem:

Link

: open_gapps-arm-9.0-pico-20210610.zip

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

Note

:

Requires

Full Clean Flash

when installing rom for 1st time I.E.,

coming from 14.1

(official or unofficial), etc. - in TWRP wipe Cache, Dalvik cache, System and importantly

format

Data > Yes before flashing the rom and appropriate Open Gapps (pico) - reboot, then in TWRP install preferred root (latest Magisk version recommended). I do not recommend the Xposed framework that's available for pie as it is closed-source.

Very Important

: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.

Note

: Encryption is not working fully - If you need it, check out the 14.1 rom -

Note

: it appears that 15.1 and lower versions are no longer receiving Google security and OS updates.

If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, reboot to recovery & install preferred root (latest Magisk recommended).

You will not lose any data

. I do not recommend the Xposed framework that's available for pie as it is closed-source, i.e., you really don't know what you're installing).

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

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] Brent.M:
Thanks for the releases past/present, everyone.

Android flasher noob here...

@sdembiske

I'm struggling to install Gapps (pico). I haven't got a clue what all these different ones are, other than you said to use "The

Nov. 02 Pico version

(approx. 184 MB)"... Which one specifically is that?

I tried 'open_gapps-arm-9.0-pico-20211102.zip' 108.83MB and get an Error Code: 70

Insufficient storage space available in system parition[...]

Edit: Log:

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

As no one else has reported this issue of late, the issue most likely resides in your flashing method.
[Moto G 4G Android Development] Brent.M:
Yeah, I'm probably being a noob. I've tried several times though.

I'm on 3.6.0_9-0 TWRP.

Wipe>Advanced Wipe>Check: Dalvik / ART Cache, Cache, System>Swipe To Wipe.

I've also tried selecting 'data', 'internal storage'.

Go back.

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

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

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

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

Specifically which one did you use?

Thanks for the reply.
[Moto G 4G Android Development] sdembiske:
Try this one, it's smaller: https://sourceforge.net/projects/op...open_gapps-arm-9.0-pico-20211102.zip/download

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

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

PS: Don't forget the 'Like' button when members are trying to help.
[Moto G 4G Android Development] Brent.M:
I'll be installing Linux Deploy (for Pi-hole) once in the OS. The only .apk that shows up in TWRP is Magisk anway.

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

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

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

Edit:

Steps:

-'Wipe': Dalvik / ART Cache, Cache, System

-'Format Data'

-Reboot to recovery?

-Install ROM

-Install GApps: open_gapps-arm-9.0-pico-20211102.zip (109MB)

fail. Error Code: 70.
[Moto G 4G Android Development] sdembiske:
OK - my apologies. I just did a Full clean flash and tried to install the same Open Gapps version with the same issue you have experienced..

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

Link

: open_gapps-arm-9.0-pico-20210610.zip

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

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

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

Thank you very much.
[Moto G 4G Android Development] Brent.M:
I've noticed the screen randomly goes black, and it's as though the system refreshes. 'phone is starting'. It would do it when the phone was locked too, causing the screen to light up, I'd see it when in bed. Then sometimes my router doesn't show up.

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

It seems ok so far. A few days will give me a definite answer.
[Moto G 4G Android Development] sdembiske:
Not something I've experienced with this rom with any of the latest uploads, nor has it been reported by other members of late.

The most common reason for this is usually a 'launcher' issue. I use the 'Apex' launcher and the other one I would suggest to try is the 'Nova' launcher which many members seem to prefer.

This can also occur when a Full clean flash is not done when transitioning from stock or 14.1 or an app you're installing is interfering with the system in some way.
[Moto G 4G Android Development] Brent.M:
I think I noticed it very early on (possibly even without any third-party apps [I can't remember]) but thought it might just be a one-off. Even afterward I only had Xfolder, Linux Deploy and Magisk installed.

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

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

Thanks.
[Moto G 4G Android Development] Mac23:
I just flashed your latest ROM (clean install) and so far I had only one issue. After entering my wifi credentials during setup the screen went dark and after some seconds the first setup screen appeared again. Wifi was enabled/connected and this time the setup finished without any issues.

I am wondering if the ROM has support for exfat? Exfat worked with the previous installed official Lineage (14.1) but now the phone reports an issue with the SD card.
[Moto G 4G Android Development] Brent.M:
Possibly the same problem I noticed. The screen would go blank and resume. Once in the OS, it'd do the same. (Read my previous post.)
[Moto G 4G Android Development] sdembiske:
The exfat supprt issue is well known - see my post # 111 written before I started posting and maintaining my builds for other members use here. I'll look into this when I have a bit more time.

Re: The black screen issue, I suspect as I have mentioned before, it may be a 'launcher'' issue. Trebuchet seems to be a possible culprit. Suggest you try a different launcher, e.g., 'Nova' or 'Apex'.

The black screen wifi issue does sound like it's launcher related but if not you could always go to Settings > under Wireless & Networks, tap ... More > Mobile networks > Access point names (apn's) - check the latest apn's from your network provider on their site and add them in, if different than what is shown.

You could also try the 'Network settings reset' under the 'Wireless and networks' header and see if that helps if in fact it is not a 'launcher' issue.
[Moto G 4G Android Development] Ale-Ale:
How did you manage to do that on android?
[Moto G 4G Android Development] Ale-Ale:
Ok I found the article...

For anyone interested:

How to Install Linux and Pi-hole to any Android Device

Instead of turning your old smartphone into e-waste give it new life as a network level ad-blocking device.

medium.com
[Moto G 4G Android Development] Brent.M:
or ready-made: https://github.com/DesktopECHO/Pi-hole-for-Android
[Moto G 4G Android Development] Ale-Ale:
thank you for the update @sdembiske! Flasing now :D
[Moto G 4G Android Development] Ale-Ale:
This seems very cool! Everything already done in an .apk instead of having to install another full system from the playstore, as the tutorial I previously found.

Is there a topic on XDA for that as well?
[Moto G 4G Android Development] saturn1955:
I recently got a Moto XT1039 as a present from my son. Cause I only want to phone with that device, I wanted to upgrade from the installed lineageos 14 peregrine to lineageos 16 peregrin, wihich I downloaded from here. But when trying to flash it, I got the message in the twrp, that this version doen t work with my phone. Can anybody help me with this prob?
[Moto G 4G Android Development] sdembiske:
First things first:

- Did you do a FULL Clean Flash as per the instruction in the download post - including 'format data > Yes'? Are you running the latest TWRP version for Motorola Peregrine? If the answer is No to either or both of the questions, suggest you do those first and then try again.

If the answer was Yes to both, then you may have to remove the 1st 'Assert' line in the rom 'updater scrip't: It is there for a reason, to prevent one from installing the wrong rom on their phone and avoid the possibility of hard bricking it. So ..if you're positive your phone is an XT1039 Peregrine, then proceed ...

Refer to this post:

How to remove the Assert line

:
[Moto G 4G Android Development] saturn1955:
Thanks for your reply. I acted on your advice and the installation was made without any probs.
[Moto G 4G Android Development] philippetig:
Hello sir,

Motorola XT1039, lineage-16.0-20220215-UNOFFICIAL-peregrine

I can't secure the phone.

Security parameter ends with "parameter stops systematically"

Battery consumption is twice as high as with lineage-14.1-20200407-UNOFFICIAL-peregrine.

Thank you for your answer and your work
[Moto G 4G Android Development] sdembiske:
When you say you can't secure the phone, exactly what do you mean? What are you trying to do? Try to be more specific.
[Moto G 4G Android Development] philippetig:
Simply I go to security and localization parameters, screen lock ; from settings.

Excuse me, i wrote parameter because i am french.:oops:
[Moto G 4G Android Development] sdembiske:
Refer to this post:

Remove /Bypass Lockscreen With Recovery​

delete any of the files highlighted shown in the TWRP photo - they won't all be available in your phone - the relevant one is most likely: locksettings.db

When you reboot, re-enter your pin etc.

P.S. - Learn to use the 'Like' button at the bottom left of the post. It's a long-time XDA courtesy, learn to use it and show support for the members who take the time to share their work or give their assistance to you. @philippetig
[Moto G 4G Android Development] philippetig:
Hello Sir,

Thanks for your reply and the link.

I found a script that does the job under TWRP

https://xdaforums.com/attachments/resetscreenlock-zip.5395565/

Best regards :giggle:
[Moto G 4G Android Development] sdembiske:
Please note the updated Magisk app bug fix I've added in the post above (# 430). Credit to @aoleary
[Moto G 4G Android Development] philippetig:
Hello sir,

Motorola XT1039, lineage-16.0-20220615-UNOFFICIAL-peregrine

Mistake with Magisk 24.3 and Superuser choise

"No apps have asked for Superuser permission yet"

Although applications such as: greenify, terminal, adb and others ask for them.

Thank you for your answer and your work
[Moto G 4G Android Development] sdembiske:
Well, because I have not had any issues in this regard and no other members have reported anything similar, I think we can conclude that the problem most likely lies with your installation method. Please read the post in full again and make sure you understand it fully.

Most likely causes:

1) You did not follow the Magisk installation instructions properly with respect to (re-)patching the boot image and re-flashing it. Refer to the Magisk github site and follow the install instructions there, exactly.

2) You came from 14.1 or have corrupted app data on your phone. If that is the case, you will need to do a

FULL

clean flash and more importantly, format data > Yes.
[Moto G 4G Android Development] philippetig:
Hello Sir,

Thanks for your reply and suggestion.

The problem isn't lies with installation method.

I flashed Magisk (24-313) from an update (I guess it's a beta channel).

The issue was resolved by re-flashing Magisk v24.3 from the GitHub site.

Another thing I use Lsposed instead of Xposed.

Best regards.:)
[Moto G 4G Android Development] y4q9c:
Hi all,

First off, thank you everyone for the work on this rom. It is amazing to see my old phone running modern Android again. However, I was wondering if there is any chance of building Lineage 17 for Peregrine, as there are a few features from Android 10 that I would really like. Moto Falcon has Android 10, and I think a while back one of the maintainers was talking about managing to build it, but not having space for Gapps? I don't use Gapps, so this is not a concern for me.

Does anyone have any pointers for me getting this to work? Thanks in advance
[Moto G 4G Android Development] djibe89:
Hi, after so many years, noone did and I don't think Android 10 will ever show on this phone.

Maybe some apps would suit your needs ?
[Moto G 4G Android Development] y4q9c:
Here is what I was thinking of.

Thanks, sadly apps won't do it as I want things such as Mac randomization and gesture navigation
[Moto G 4G Android Development] sdembiske:
@y4q9c @djibe89

As the ability to increase the system partition size has proved insurmountable to date (leading in my case to a hard-brick which, fortunately, I was able to recover from), I'm not willing to provide the roomservice file at this point if Open GApps cannot be installed - that is what the majority of users require for full functioning of their phone.

If any members can prove to me that you have successfully increased their system partition size with LineageOS 16.0, fully functional with gapps after the partition re-size, I will perhaps reconsider.
[Moto G 4G Android Development] djibe89:
Tried Full screen gesture app ?
[Moto G 4G Android Development] SirRGB:
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...
[Moto G 4G Android Development] 2urtle:
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.
[Moto G 4G Android Development] sdembiske:
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:

The Best Free MP3 Players for Android

We help you find the perfect alternative music player app for your Android smartphone.

gadgets360.com
[Moto G 4G Android Development] xyel:
I wasn't able to flash this last update. I got the twrp error " E3004: This package is for device: peregrine; this device is . "

- using twrp 3.1.1.0; XT1040 peregrine ; 41.1A bootloader.

your latest 14.1 rom (november update) worked just fine.
[Moto G 4G Android Development] sdembiske:
I'm assuming since you indicated you flashed the November update that your device is definitely peregrine and you haven't tried to flash another different rom in-between.

First thing I would try is updating your TWRP to the newest version:

twrp-3.7.0_9-0-peregrine.img	9.1M	2022-10-09 18:51:52 UT

Failing that you may want to do a complete 'Clean' install, i.e., formatting data > 'Yes' (after doing a backup of your data), in the event something has gotten corrupted or you're trying to flash over 14.1 (it is stated in the install instructions if you read carefully, that a full 'clean' install is required when coming from 14.1).
[Moto G 4G Android Development] xyel:
correct, 100% peregrine. I was able to flash all your older v16 monthly updates without a problem!. It's just this last one.

I just prefer twrp 3.1.1.0 because I was able to make work encryption + 16.0. (well, at least it says 'encrypted'.. I would like to know how to check data it's ACTUALLY encrypted though..)

thanks for all your time!
[Moto G 4G Android Development] sdembiske:
Try the full 'clean' install with formatting data > 'Yes', if you want to try using TWRP 3.1.1.0 then. One way around this is to do a TWRP backup of your last good install of 16.0, then do your wipe including formatting data, restore your 16.0 backup and then install the latest 16.0 update. You won't run into any of the same issues in that case.