yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] pok1yoyo:
Hi,

I have a custom build, but every few minutes the screen becomes black, unresponsive, and the system seemingly restarts. Then I am presented with the lock screen and any app that was in foreground is killed.

Any idea what could be wrong? I am not too good with low level stuff. I have already recompiled and reflashed the OS, cleared cache, but the same thing happens.

Logcat shows this to be fatal:

10-14 15:21:37.151 29391 29793 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 29793 (Loc_hal_worker), pid 29391 (system_server)
10-14 15:21:37.581 2496 2496 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-14 15:21:37.582 2496 2496 F DEBUG : LineageOS Version: '16.0-20201011-UNOFFICIAL-peregrine'
10-14 15:21:37.582 2496 2496 F DEBUG : Build fingerprint: 'motorola/peregrine_reteu/peregrine:5.1/LPB23.13-17/18:user/release-keys'
10-14 15:21:37.582 2496 2496 F DEBUG : Revision: '0'
10-14 15:21:37.582 2496 2496 F DEBUG : ABI: 'arm'
10-14 15:21:37.582 2496 2496 F DEBUG : pid: 29391, tid: 29793, name: Loc_hal_worker >>> system_server <<<
10-14 15:21:37.582 2496 2496 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
10-14 15:21:37.582 2496 2496 F DEBUG : Cause: null pointer dereference
10-14 15:21:37.583 2496 2496 F DEBUG : r0 00000000 r1 9ca79900 r2 ab07ac49 r3 fffffffe
10-14 15:21:37.583 2496 2496 F DEBUG : r4 00000000 r5 9ca79b00 r6 9ca79a00 r7 9ca79900
10-14 15:21:37.583 2496 2496 F DEBUG : r8 944d9edc r9 944d9edc r10 944d9eeb r11 944d9eeb
10-14 15:21:37.583 2496 2496 F DEBUG : ip 9583df40 sp 9e37f8b0 lr 958365e1 pc 958365c4
10-14 15:21:37.602 2496 2496 F DEBUG :
10-14 15:21:37.602 2496 2496 F DEBUG : backtrace:
10-14 15:21:37.602 2496 2496 F DEBUG : #00 pc 000035c4 /system/vendor/lib/liblocationservice.so
10-14 15:21:37.602 2496 2496 F DEBUG : #01 pc 000035dd /system/vendor/lib/liblocationservice.so
10-14 15:21:37.602 2496 2496 F DEBUG : #02 pc 0000754f /system/vendor/lib/libloc_eng.so (LocEngReportXtraServer::proc() const+318)
10-14 15:21:37.602 2496 2496 F DEBUG : #03 pc 0000346d /system/vendor/lib/libloc_core.so (loc_core::MsgTask::loopMain(void*)+84)
10-14 15:21:37.602 2496 2496 F DEBUG : #04 pc 0000dc67 /system/vendor/lib/hw/android.hardware.gnss@1.0-impl.so (threadFunc(void*)+6)
10-14 15:21:37.602 2496 2496 F DEBUG : #05 pc 00064b43 /system/lib/libc.so (__pthread_start(void*)+22)
10-14 15:21:37.602 2496 2496 F DEBUG : #06 pc 0001e051 /system/lib/libc.so (__start_thread+32)
[Moto G 4G Android Development] sdembiske:
What do you mean by 'custom build'? Have you added some code or cherry picked something in addition to the build instructions I've posted previously? If so, what have you added and what were you trying to accomplish?
[Moto G 4G Android Development] pok1yoyo:
roomservice.xml is the one in your build instructions:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="sdembis/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="lineage-16.0" />
<project name="sdembis/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="lineage-16.0" />
<project name="sdembis/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="lineage-16.0" />
<project name="sdembis/proprietary_vendor_motorola" path="vendor/motorola"
remote="github" revision="lineage-16.0" />
<project name="LineageOS/android_system_qcom" path="system/qcom" remote="github" revision="lineage-16.0" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" revision="lineage-16.0"/>
</manifest>

Lexer file can be found in your repository: https://github.com/sdembis/android_kernel_motorola_msm8226/blob/lineage-16.0/scripts/dtc/dtc-lexer.l

The 42 is the line number. Sorry if it was confusing.

Edit: It appears that I have added, not removed the 'extern' from the lexer.
[Moto G 4G Android Development] sdembiske:
#include "dtc.h" This appears to be missing from the line above YYLTYPE yylloc in what you provided. It is in the original. Did you remove it for some reason?

#include "srcpos.h"

#include "dtc-parser.tab.h"

I'm not sure why you added the extern in front of YYLTYPE yylloc other than you were failing in the build process.

I would use a process of elimination;

- backup in TWRP your build that you're having problems with and download my build and test it- see if the problem arises still? If it does then it may be a result of the partition shrink you did in the data partition. If not then ...

- run a clean build again WITHOUT any of the additions/deletions (including the 'extern' you added) in the build you're having problems with. Test it, if no problems, then it's definitely one or more of your additions/deletions.

- then add your MicroG additions, test it and see if the problem arises. If it does ...

- Try these commands from your PC or with terminal emulator:

adb shell

su

pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE

Please remember to use the 'Thanks' button.

-
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the NOVEMBER '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).

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

https://mega.nz/file/8eJABBbS#TABRXUeRJ8qu4Kd3csfjLhwjFrUtGTYF1UgyCFgotug

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 [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] djibe89:
Hi [MENTION=6302635]sdembiske[/MENTION], thanks a lot for your work.

Don't you ever have launcher crashs and screen wakeups ?

What do you think of creating a Docker image for automatic Peregrine builds ??

i'd like to build but have no time.

Docker seems awesome for Lineage building
[Moto G 4G Android Development] sdembiske:
I haven't experienced launcher crashes on this phone but have on my LG G4 at one point with my preferred launcher, Apex. It was I think due to an update for the launcher - a removal and reinstall seemed to help, but failing that I would do a Full clean install of the rom (as per my notes in all the updated rom download posts).

As for screen wakeups, very few. I use the donation version of Greenify on 16.0 and on 14.1 I use the donation version of Amplify together with Power Nap to minimize screen wakeups in addition to Greenify.

Refer to: ✭[GUIDE][26-07-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭

In both 14.1 and 16.0, I do the following:

- In your phone. go to Settings > Security & Privacy > Trust > Privacy guard -- when in Privacy Guard click on the 3 vertical dot menu at top right of the screen > Advanced > horizontal scroll over to 'Device' and turn off the Keep Awake setting in Google Play Services & Google Services Framework and on all your User apps that you do not need to be active at all times - also turn off, i.e., ignore Start at Boot & Run in background on those User apps that you do not need instant access to on boot-up etc. There is no impact to their functioning when you need to actually use them.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the DECEMBER '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).

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-20201215-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] djibe89:
Hi @sdembiske,

thanks for Greenify.

With Settings:

- Smart hibernation > Enabled

- Light hibernation

- Aggressive sleep

- Automatic hibernation

Screen wakeups are very rare.

Well done
[Moto G 4G Android Development] perambulate123:
Does this room include exfat sd card support? So far roms installed based on Android 10, installed on different phone have all had exfat support, but lineage 14,15,16 have not. Perhaps impossible.
[Moto G 4G Android Development] sdembiske:
Supports NTFS which has no file-size or partition size limits - it's newer than exfat.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the JANUARY '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

: This is a very large update 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-20210110-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] MobiRob:
Excellent, many thanks.
[Moto G 4G Android Development] @irtime:
Thanks for this, i flashed it yesterday without issues, keep them coming
[Moto G 4G Android Development] sdembiske:
While I appreciate your Thanks, what I appreciate more is clicking the "Like" button at the bottom right of the update post - it's available when you're logged in.
[Moto G 4G Android Development] kukkiz:
Proxy in WiFi advanced option (HTTP and PAC) does not work.
[Moto G 4G Android Development] sdembiske:
Check out these two posts for a workaround and see if they help:

https://xdaforums.com/t/proxy-auto-config-pac-file.570384/post-18526298

https://xdaforums.com/t/proxy-auto-config-pac-file.570384/post-19588771
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the FEBRUARY '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

: This is a very large update 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-20210206-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] djibe89:
@sdembiske

February update works with your Gapps or we need resize ?
[Moto G 4G Android Development] Francesco Libera:
I had pico gapps and the update did amazingly without resize
[Moto G 4G Android Development] sdembiske:
It is somewhat dependent on what else you have installed, i.e., number of apps, etc. So, some might have to while others may not.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the MARCH '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-20210306-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] djibe89:
Hi all, I had problems with screen wakeups and freezes.

Installing BitGApps R13 gives a far smoother experience.

Just wanted to share.

Thanks @sdembiske
[Moto G 4G Android Development] sdembiske:
Refer to post # 343 for suggestions that could help with the issues. Failing that I would do a clean install (following exactly AS OUTLINED in the update post), and then follow the suggestions.
[Moto G 4G Android Development] djibe89:
Hi,

Yep good post.

Peregrine is far better with BitGApps. You tried ?

Thx for the builds
[Moto G 4G Android Development] inkognito357:
@sdembiske thank you for the building instructions, I've just compiled my first LOS 14.1 build. But I wonder if there is any chance I can build Android 10-based LOS for peregrine ? Is it possible?

Regards.
[Moto G 4G Android Development] sdembiske:
No, I haven't tried it yet. Just checked it out - it looks interesting but I haven't tried it out - I may do so.
[Moto G 4G Android Development] sdembiske:
I haven't tried to build 10 myself. Given the issues with some newer phones (e.g., LG G4) that some developers/builders have had in getting it fully operational, I think you'll find that the odds are against you. I give it a low probability of success for daily use but no harm in trying if you want to give it a shot.