yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sevenrock:
Several days ago I switched to LineageOS 16.0 as my daily driver and I am quite happy with it.

Unfortunately no, my private builds are heavily patched beyond the patches I mentioned here.

For example all languages I do not need are removed, lots of Google stuff from opengapps is

prebuilt into the ROM etc. So my images are not allowed for public distribution, see also

https://xdaforums.com/showpost.php?p=62605087&postcount=3769

Also I do not want to take the burden to provide public support for my ROM due to lack of time.

As a personal compromise I consider my build instructions a valuable return to the community

so others can pick up from that point and build/provide ROMs if they want to.

https://eu.dl.twrp.me/peregrine/twrp-3.2.3-0-peregrine.img.html works fine here, it even decrypts the phone.

In the coming days I will update my build description but in the meantime I would like to

mention some important patches I needed to apply in the last days:

- compass fix:

https://github.com/sevenrock/androi...mmit/d73156a410a038492a1f049b7a35601a898fd23a

- fix downloads hanging in Google Play Store (pre-installed):

https://github.com/sevenrock/androi...mmit/ef71968ca0fa3186c809524504522fa89691399f

https://github.com/sevenrock/androi...mmit/63d6fd741614178b6efefa228f518074f26b2b02

- display got too dark:

https://github.com/sevenrock/androi...mmit/ddbe4af5574b199ce80e6043d66240e6dd4d150e

- gestures are working again:

https://github.com/sevenrock/androi...mmit/d5999c55920cbd85d1a31fd9974c9d5f010cbffc

https://github.com/sevenrock/androi...mmit/a30104c8019c552f7117ae29ee5c0c307e0655e5

https://github.com/sevenrock/androi...mmit/165bf60d9eb466f7e07dc74b7f7612e4b440e760
[Moto G 4G Android Development] huwg1:
perfect, thanks!
[Moto G 4G Android Development] wagmic:
Awesome thanks
[Moto G 4G Android Development] lucastracq:
are tethering and hotspot working for you?
[Moto G 4G Android Development] sevenrock:
hotspot does not only switch on but i could connect to it from another device, did not test tethering
[Moto G 4G Android Development] lucastracq:
i tested usb and bluetooth tethering, i can switch them on but connecting from another device fails.

hotspot switches off by itself, like you said, but in my case the other devices can't see the network and trying to connect to invisible network didn't work. how did you do to connect?
[Moto G 4G Android Development] sevenrock:
No, I said "hotspot does not only switch on", but you are right as well,

hotspot is broken. Now that I tested again I fully understand the bug

now which was not the case yesterday due to the fact that I never

really used the hotspot function...

Reading https://t.me/MotorolaG/25977

I thought the problem was that hotspot never turns on which is not

the case, it turns on but does not stay activated after you enable

wifi client. So you can either activate wifi client or wifi hotspot, but

not both at the same time, so yes, I can confirm that hotspot is

still broken :(
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the AUGUST '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

June 10 '21 Pico version

appears to be the last one (to-date) that can be installed without issues (thanks to @rah2501 for pointing out and @bweston6 for confirming the latest Pico Open Gapps size installation issues). See post # 380 for a download link or search the older versions on the Open Gapps site for this particular version download.

UPDATE

: 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 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).

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-20210806-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] Tiki Thorsen:
In theory, this should work on a Falcon, right?
[Moto G 4G Android Development] sdembiske:
Can't confirm - you run the risk of bricking your phone. When asked previously on an XDA forum, the answer was 'No'.
[Moto G 4G Android Development] sdembiske:
@rah2501 @bweston6

One solution to the Open GApps too-large size issue:

Yesterday, when I was in the Older Releases section (see attached screen shot) in the Open GApps site, comparing total download sizes between the June 10 '21, the August 06 '21 (the make date of the last uploaded rom), and the August 20 '21 Pico 9.0 Arm versions, I noted then that there were, in most cases, of the same date version, multiple choices ranking in size from the low 100 MB to the mid-to-high 300 MB download range.

Now, what I discovered is that when you simply click the Download Button (the red arrow pointing down on the attached Open GApps screen shot, it can be a crapshoot as to what size version you end up getting, most likely the last one that was uploaded. Before you download/save the particular Open GApps version,

check the Total Download Size

of the zip file download itself. IF, it is significantly larger than ~180 MB size range then the ....

Solution

: Go the the

Older Releases section

, open it, choose a date (the same as or earlier than the rom make date), open that and examine all the appropriate version sizes. When I was looking yesterday, there were sometimes 3 different download sizes of the same version for the same date. Today, there seemed to be just the lower size available. Go figure. Welcome to the Open GApps download crapshoot.

View attachment 5390565
[Moto G 4G Android Development] hrincon:
First of all, thank you for such an amazing job porting this ROM to our beloved peregrine.

I just wanted to ask, does this install from any TWRP version or do I need a specific version? Some other ROMs require a specific version and wanted to be on the safe side.

Once again, thank you all involved for your job.
[Moto G 4G Android Development] sdembiske:
The latest version for the particular device is normally your best bet. The Team Win official site lists all the supported devices of which the Moto G LTE is one:

Motorola Moto G 2013 LTE

Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...

twrp.me

Thank you for your 'Thank you' but, for future reference, please use the 'Like' button at the bottom left of the post (when logged in), where you have downloaded an updated rom that a member has taken the time to upload or when you have received help from them. It's an XDA courtesy and too many people, particularly newer members, seem to be missing this accepted XDA courtesy. Thanks.
[Moto G 4G Android Development] PhunkyBob:
Hello,

I've installed this custom ROM and it works almost fine.

I have 2 problems :

- First, there is problem with the speaker / headphone. At first, the speaker worked fine but not the headphone.

After some tweaks in the internal mixer (the embeded app not removable) it made the headphone work, but the speaker doesn't work anymore :(

I have to reboot make it work again.

- Sometimes, the screen turns black and for 30 seconds I can do nothing.

The device seems to be to short in RAM to run this OS correctly. I can listen to my podcast (the only purpose of my device) but I can't have several applications running at the same time.

Spoiler content hidden.
[Moto G 4G Android Development] sdembiske:
@PhunkyBob

Check out the Lesser AudioSwitch app on Play Store - see if it might help the audio switching issues you're experiencing. You are the first to have reported the issue as far as I know.

Black screen could be a result of a data corruption or an incompatible app. Not usually present when a Full Clean Flash is done as you have indicated you have done. The black screen issue has not occurred with my phone. Suggest doing it (i.e. Full Clean Flash), again. No need to wipe data if you format data > yes. The audio files in LineageOS 16.0 are the same as what was in 14.1, from what I can see. Did you have that problem in 14.1 or did you not try it? The 14.1 version was the last 'Officially' supported version by the LineageOS team.

This phone was not designed to handle the increased demands up from the original stock android roms so naturally it will be reflected in the ram demand. to some extent. Your solution in that case is to get a newer phone.
[Moto G 4G Android Development] PhunkyBob:
Thank you for the suggestion of Lesser AudioSwitch. I will give it a try.

EDIT : Lesser AudioSwitch does nothing on the device.

:(

The "black screen" problem is not related to audio. I notice sometime just after the "black screen", I have an error message "Trebuchet crashed".

I didn't tried LineageOS 14.

I was in Kit Kat, but since my radio and podcast moved on TSL 1.2, I wasn't able to listen to them anymore. That's why I tried this upgrade since it was the latest.
[Moto G 4G Android Development] sdembiske:
Trebuchet is a launcher app. Try a different one. I use APEX but many members prefer Nova - many different ones available on Play Store. Check out a few reviews and choose a couple to try out. You can always uninstall what you don't like.

Note

: Please remember to use the Like button (bottom left of post when you're logged in), when a member helps out or when you download one of the roms they upload for your use. It's an XDA courtesy.
[Moto G 4G Android Development] PhunkyBob:
I "liked" your post at the same time I read and answered it.

I don't get why this comment...
[Moto G 4G Android Development] Tiki Thorsen:
I tried to install it but it does not allow me, says that "your device is falcon, this is for peregrine"

Is there a way to bypass that restriction in TWRP?
[Moto G 4G Android Development] sdembiske:
In order to bypass that restriction (error 7 in TWRP), one has to remove the 'assert line' in the 'updater script' in the rom zip file. 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.

Refer to this post:

How to remove the Assert line

:

... if you're willing to take the risk of hard bricking your phone.
[Moto G 4G Android Development] SirRGB:
Just update twrp if it is an older version
[Moto G 4G Android Development] sdembiske:
Updating TWRP will not remove the Assert line in the rom zip. It is not the correct answer for his particular issue. The Assert line is a check built into the rom zip to prevent flashing an incorrect version on one's phone - it has nothing to with the recovery.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the SEPTEMBER '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

June 10 '21 Pico version

appears to be one of the last ones (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. The size of the June 10 '21 version is ~126.9 MB. Compare newer PICO version sizes 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 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).

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-20210919-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 OCTOBER '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

June 10 '21 Pico version

appears to be one of the last ones (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. The size of the June 10 '21 version is ~126.9 MB. Compare newer PICO version sizes 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 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).

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-202110-10-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 NOVEMBER '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 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).

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

[https://mega.nz/file/8fgWxRgL#YxV_-0Gw7PvNcqkmf1HH4bZmWwYjjIGPqAXS7MFIvkw

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] MobiRob:
Thanks for keeping my trusted Peregrine alive!