yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sdembiske:
I'm thinking it's a data corruption or a an app that's giving you grief. Failing those two things, it could be a battery issue if it's more than 2 years old or it's a hardware issue.

Try doing a total clean flash again and when it boots up - set the phone up as new, i.e., don't copy your data over from Google's cloud or another phone and don't restore any data or install any other apps until you've tested it for awhile.

Use some other means to back up your data and

if

you do not have the reboot issue after setting it up new and testing it, restore your apps one at a time and test them for a bit before installing another one and do the same with restoring your data, i.e., bit by bit, testing after each restore.

If you have the reboot issues after setting it up new, before restoring any additional apps and your data, try a new battery.

If still no luck see if you can manage to get a logcat of the issue when it occurs, seeing if something particular you are using or doing at the time is precipitating the issue. Paste the logcat in Pastebin and provide the link in another post here.
[Moto G 4G Android Development] Lighto97:
well is indeed old batery but doesnt happen with lineageos 14. i dont restore my data from backups i always download them manually from play store. and i always set up the phone as a new one so i dunno why that's happening with that specific OS. welp, I will follow your recommendations and if the issue persists i will make a logcat. thanks for the assistance
[Moto G 4G Android Development] MobiRob:
LOS 17.1 ?

Thanks for all the hard work. Have you ever tried building a LOS 17.1 for Peregrine?
[Moto G 4G Android Development] MobiRob:
I'm trying and learning. However, early in the build process, I find two files missing: vendor/lib/libbccQTI.so and vendor/lib/libscale.so.

I've extracted several official ( Motorola_XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_CID7.zip) and LineageOS official ( lineage-14.1-20190207-nightly-peregrine-signed) ZIPs, but have not been able to find these files. Where did you get them from?
[Moto G 4G Android Development] fneuf:
I'm hesitant on which ROM to flash on my currently stock Peregrine. I saw there are available:

an old-ish Official 14.0

an UnOfficial maintained 14.0

and this Unofficial 16.0

I don't think I have a particular use-case. My Peregrine is mostly used this day as remote for my LIFX bulbs. I'm just looking to hard-proof it a bit more, security wise. Should the case arise, I still expect him to be plain functionnal (if someone breaks or lost his phone, he might still see some real-life reuse).

Can someone help me on the pros & cons of each of those 3 ROMs solutions? On which criterias my choice should be built upon?
[Moto G 4G Android Development] sdembiske:
Oldish Official 14.0 is not up-to-date with all the Google security updates and LineageOS and AOSP updates.

The Unofficial 14.0 build that I post (check the latest posts for the most recent update) on the [ROM][OFFICIAL][Peregrine][7.X] LineageOS 14.1 thread is based off the Official build files and is up-to-date with all the latest Google security updates and LineageOS and AOSP updates. It is more stable than the unofficial 16.0 build that I post in this thread.

Basically, comes down to a personal choice between the Unofficial 14.1 vs the Unofficial 16.0 versions..

---------- Post added at 04:38 PM ---------- Previous post was at 04:36 PM ----------

No and I have no intention to try to build it. You can only push older phones so far ...

---------- Post added at 04:43 PM ---------- Previous post was at 04:38 PM ----------

Refer to post # 230 for the full build instructions.

I have never run into the problems you're experiencing. Make sure you have copied the roomservice.xml file exactly as I've posted in the how-to thread and have followed ALL the build instructions EXACTLY.
[Moto G 4G Android Development] MobiRob:
I tried again, starting from scratch. Following this: https://wiki.lineageos.org/devices/peregrine/build:

I extract the proprietary blobs from a Motorola XT1039 running your lineage-16.0-20200607-UNOFFICIAL-peregrine.zip :

running .../Android-build/android/lineage/LOS16_Peregrine/device/motorola/peregrine/extract-files.sh, the output is perfect, except:

./extract-files.sh | grep -i not

!! vendor/lib/libbccQTI.so: file not found in source

!! vendor/lib/libscale.so: file not found in source

A "brunch peregrine" ends in: ninja failed, because the two files above are missing.

Would you mind making those two files available? Thanks again.
[Moto G 4G Android Development] passtim:
I think you may have gone too far with the standard build instructions. Once you have configured GIT you start following the instructions in post #230, with the repo for 16.0 (not 14.1 as in the standard instructions).
[Moto G 4G Android Development] sdembiske:
There is no need to extract the proprietary blobs - they're included when the roomservice.xml file is repo synced. If you've included them, delete them & repo sync again before building.

Just follow the instructions I've posted - use the Build for peregrine instructions ONLY for setting up your PC with the proper programs to get started.

If you're building on any Linux system based on Ubuntu 20.04 (e.g., Linux Mint 20.0), you will be unable at this point in time to build for LineageOS (at least in my experience to-date) - still some things to be worked out it seems. Ubuntu 18.04 based systems (e.g., Linix Mint 19.3) and lower versions should be used for now.
[Moto G 4G Android Development] passtim:
It might help those of us who don't know a great deal about such things to state exactly how far to go in the general build instructions. Is it where I said - just to the 'Configure git' section and no further?

I haven't tried to build since upgrading to 20.04. I'll try it myself sometime.
[Moto G 4G Android Development] MobiRob:
#### build completed successfully (02:11:06 (hh:mm:ss)) ####

Debian Testing, today

Thanks a lot, I made my life much more difficult than necessary!

Thanks for all the hard work!
[Moto G 4G Android Development] sdembiske:
So noted and added now to the build instructions for both 14.1 & 16.0 versions.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the JULY '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); LineageOS 15.1 (LG G4) and LineageOS 16.0 (Moto G LTE Peregrine & LG G4) when they're posted, before they are merged and uploaded 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-20200712-UNOFFICIAL-peregrine.zip

https://mega.nz/file/lGAkyK4C#OnPeZqy29oEUn5vz_v1-XHERkPwhBgrZzupeDe3o-5U

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] passtim:
As you said, the build on ubuntu 20.04 (focal) fails. On mine it says:

" File "libcore/annotations/generate_annotated_java_files.py", line 34

print '// Do not edit; generated using libcore/annotations/generate_annotated_java_files.py'

^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print('// Do not edit)?

[ 0% 204/72761] host C++: aapt <= frameworks/base/tools/aapt/Main.cpp

ninja: build stopped: subcommand failed.

11:39:51 ninja failed with: exit status 1

#### failed to build some targets (01:10 (mm:ss)) ####"

And also:

"SyntaxError: invalid syntax

[ 0% 194/72761] target Java source list: ims-common

File "build/make/tools/normalize_path.py", line 25

print os.path.normpath(p)"

It looks like python 3 has a different syntax for the print statement. So those who wish to build on ubuntu should use earlier versions than 20.04 :(
[Moto G 4G Android Development] sdembiske:
Some different but somewhat similar errors show up on different builds. I ran into problems on LOS 14.1, 15.1 & 16.0 on 2 different phones, ended up reverting back to Linux Mint 19.3. It appears to be an issue with the combination of python and java versions used in 20.04 with the new Linux kernel.
[Moto G 4G Android Development] passtim:
I'm running the 7th June 2020 version, and I'm very happy with it.

However, since installed the mobile has very occasionally (just 3 or 4 times) spontaneously rebooted whilst sitting on my desk doing nothing. It's not a serious issue for me, but I was wondering whether there is any way I could diagnose what's happening.
[Moto G 4G Android Development] Lighto97:
yeah it does hat even if i follow the install instructions i installed 14.x its really stable. What got into me is the fact that the rom rebooted while i was using two times. i have a theory that this rom will reboot few times until idk, it gets stable after some time using. Maybe i install it again and ry to use for a week, android 9 features are really cool
[Moto G 4G Android Development] sdembiske:
Check out this thread for a possible solution: [SOLVED] Random Reboots

It's very difficult to track these type of issues. I haven't experienced it myself in testing and frankly prefer 14.1 for it's stability.

Some things I always do (battery saving, etc) - see if it helps.

- In your phone's 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.

- Install Greenify and in it's settings make sure you have enabled 'Aggressive Doze (experimental)' and turned on 'Automatic hibernation'.
[Moto G 4G Android Development] Lighto97:
ye i've tried but no sucess, it di dreboot two times in a row while i was using. i dont know what causes this since other models or the same model wont reboot, i'm sure i'm doing the process how it is recommended, so i will stick to 14.x.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the August '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); LineageOS 15.1 (LG G4) and LineageOS 16.0 (Moto G LTE Peregrine & LG G4) when they're posted, before they are merged and uploaded 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-20200807-UNOFFICIAL-peregrine.zip

https://mega.nz/file/FehQhCYT#YTCUeGEylHEGYIAVQ5IVsaIjwDZdYFnmLzovXpNPPAA

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] sdembiske:
After reverting back to Linux Mint 19.3 in my dual boot Linux partition, I thought I'd try installing Linux Mint 20.0 which has the Ubuntu 20.04 version as it's base in VirtualBox in my Windows 10 partition for testing only.

To get around all the errors I encountered I had to do the following:

In the "Software Manager" confirm all the following are installed to check your installation method

- openjdk-8-jdk

- openjdk-8-jdk-headless

- openjdk-8-jre

- openjdk-8-jre-headless

with no environment path or any other path you might have set for Java.

Use the Switch Manager command to set Python2 as the default version (refer to this how to - https://linuxconfig.org/ubuntu-20-04-python-version-switch-manager)

Insert LC_ALL=C in, save it and source it for the /.bashrc file.

That should get you going to successfully build for LineageOS on Ubuntu 20.04
[Moto G 4G Android Development] passtim:
My ancient (by mobile standards) Moto G4 is on its last legs (battery, overheating, seizing up, etc.) so I've had to retire it. 6 years isn't so bad for a relatively cheap mobile - no complaints. I now have an up-to-date Android 10 device so I won't be using lineageOS again for a while.

Thanks for all your help, and goodbye.
[Moto G 4G Android Development] key-ancel:
Camera HDR crash in any app of camera :(
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the SEPTEMBER '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-20200911-UNOFFICIAL-peregrine.zip

https://mega.nz/file/cWpl1R4Q#PszUj-mlMQHVsSBKEcyd1F2lJH7evZFuw0zFG0FyVzw

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:
Thx a lot !!!

Latest OpenGapps don't work ?

F2FS works well ?

See you
[Moto G 4G Android Development] sdembiske:
Haven't tested the latest Open GApps but for awhile on 9.0 - there were numerous reported problems initially with installing versions after January 17, so that is why I uploaded the Jan. 17th version at the time. I haven't had any problems with the newer versions of late on 14.1.

Haven't tested F2FS - Trend Micro had reported previously that it can lead to memory corruption in mobile phone systems and is vulnerable insofar as "a virtual disk could be embedded into apps and serve as an infection vector". I don't know if these vulnerabilities have been overcome in the latest

mobile

linux kernel versions. The vulnerabilities were rectified in Desktop & server versions.
[Moto G 4G Android Development] sdembiske:
For those of you wishing to update to the OCTOBER '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-20201008-UNOFFICIAL-peregrine.zip

https://mega.nz/file/UHpgnYaT#feXr2o1BU1vNbqoZTHN5xK-kc6bKkYSqFa9w-EMmc3A

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] MobiRob:
Thanks for that. For some reason, building my own failed.
[Moto G 4G Android Development] sdembiske:
The next time you build and it fails, do not close the command prompt. Instead, search for 'Failed' in the whole of the output, copy from where it starts with 'Failed' and paste that section in pastebin.com (no expiry) and post the link in a reply to my post here. We'll see if we can get it figured out for you as to why it is failing and how to solve it. I'm assuming you have followed my build instructions that is linked in the posted security patch update.