yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rahimali:
up to you if you wish to upgrade from Nougat but you will be disappointed if you use the camera a lot. too many camera issues in Oreo and Pie...

I have a backup of all the ektus builds if you wish to use any of his old builds...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Natanji:
Oh, what Camera issues are there? The threads with the roms always listed the Camera as "working", so that'd be of interest to me. I remember that on the 7.1.2 build I was on, the Camera did have issues of its own (video recording only working in footej, not the official camera, for example). Do you remember around which time that was fixed in the Nougat builds?

Alas, even with the Pie build here, I get the exact same problem I tried to fix once I restored /data from a TWRP backup. So I guess my problem wasn't with the ROM in the first place, but with my /data being broken/corrupted somehow.

The phone will boot within the Motorola logo, then switch to the LOS logo boot animation, and then reset after 3-4 minutes, show the Motorola logo and boot straight to recovery.

Is there any way to debug this? Any way to get log files from the previous (failed) boot, for instance? I'm assuming most log files aren't written to /data so I'm **** out of luck.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I do have all of these, too, just not on my dropbox (space restraint). I've also got most of the older builds by wzedlare.

I've been upgrading successfully for the past two years, using most (if not all) of the builds from this thread. I can't prove that there are no errors. but I'd say it's more likely there was a corrupt file or setting involved in your case.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] spandan888:
Thank you. This works good without gapps as well!! Lightweight and fast!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Panino Manino:
I intended to stay on stock 7.1, but because circumstances that don't matter I ended updating to 8.1.

While more granular control of permissions is good I'm not satisfied, I feel that I didn't really received an improvement while the system uses more resources, so now I considering installing a Custom ROM.

But the last time I did this was so many years...

What are the thoughts?

This Lineage based on 7.1 with less Google bloat is worth it?

1.Everything in the phone is working as it should?

2.I'll be able to have the default Motorola Camera app?

3.I.'ll be able to have the Motorola Actions to get rid of the navigation buttons and use fingerprint sensor gestures instead?4.

4.I'll be able to maintain or improve the battery life (I feel it worsened with the update despite the system putting the background programs to sleep often).

5.As a bonus, will I be able to install a tweaked Google Cam with less contrast/crushed shadows and maybe Night Sight?

I first need to make my mind if it's worth, but was I said I have no idea how to do it.

Unloacked bootloader? It may be locked? How I unlock?

I think I can install Custom Recovery with something that I get from the Play Store but... I need root?

Seriously, I'm totally lost, completely out of the scene and with a lot of fears of bricking the phone.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with August 05, 2019 security patches

https://www.dropbox.com/s/3jl7zfjwlic1bui/lineage-14.1-20190813-UNOFFICIAL-cedric.zip?dl=1

As always, use at your own risk. Basic QA test passed: I've just installed it on my own device, it's up and running again :)

Due to space restrictions in my dropbox, only the recent 3 builds can stay online.

Regards

Ektus.

---------- Post added at 10:28 ---------- Previous post was at 10:13 ----------

If you can't afford losing your phone, don't mess with it.

To install a custom ROM, you've got to unlock the bootloader by sending a request to Lenovo. This will void the warranty (if any).

Installation instructions are in the first post, basically install TWRP, immediately boot into TWRP to avoid it being overwritten upon system boot, then install LOS, OpenGAPPS (if needed) and addonsu (if needed).

You've got to wipe the phone (factory reset), any data not in your backups will be lost.

Any shortcomings are described some place or other here in the thread. Some users (including me) have trouble with USB tethering, the FM Radio doesn't work properly, but most everything else should work.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
Is it possible to flash this over OREO Stock firmware or do I have to flash NON-HLOS.bin firmware from Nougat?

Thanks for keeping this up :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
RE: YES, I have to :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I can't help here, I've never been on Oreo or beyond.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
USB-Tethering is working on latest build lineage-14.1-20190813-UNOFFICIAL-cedric :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
hey buddy i'm planning on downgrade from carbon pie to this los nougat.

Since i screwed fp sensor when i updated, i came here aware of related details.

Could you please instruct me on how i can do what you said? and anything else i should be aware to do this downgrade?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
I needed to flash modem binary from Nougat Stock Rom, which includes firmware for 'biometric' sensors aka fingerprintsensor and since I had no sound I downgraded dsp too.

Backup your ESP with twrp, just in case

reboot into bootloader from carbon's reboot menu or via adb reboot bootloader and flash:

fastboot flash modem NON-HLOS.bin

fastboot flash dsp adspso.bin

( ... don't do a 'fastboot erase modemst' - command ! ... )

then you can boot to twrp and flash Nougat custom rom

To revert this just flash Oreo files (NON-HLOS.bin and adspso.bin)

PIE custom roms need Stock Oreo firmware base

NOUGAT and OREO custom rom need Stock Nougat firmware base
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
ty mate. did that and now i am happy again with my multitasking.

guess andropie is not bad, it's just that developers should fit its new so many rules
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with September 05, 2019 security patches

https://www.dropbox.com/s/kypi5htyl8zpqmi/lineage-14.1-20190912-UNOFFICIAL-cedric.zip?dl=1

It's getting late, so untested yet. As always, use at your own risk.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
Hey guys just screwed my cam and flash on this rom and after blaming hardware and everything i discovered the culprit was Magisk safety patch module.

Right now i can reproduce the behavior: Enable module, camera and flashlight stops working. Disable module (and reset), both comes back to life. Did it a couple of times so i am sure of it.

Have you guys any tip about what is the relationship and how could i get both working?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I don't have this device anymore but I never used a safety patch module

To pass cts profile I just changed the device fingerprint to a working moto g5 one

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228//

Read the instructions in the above post and run the command in a terminal emulator app & follow prompts to change device fingerprint
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
Worked easily and perfectly mate!

Thanks!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
All tiny bugs are gone, very good update :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Which ones are gone? For me, the fm radio still doesn't work any better. I've done nothing to improve the build, any fixes come from the official LOS repo.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] girishjangir7:
Yeah be specific i haven't noticed anything:confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
On August build my camcorder forced close when stopping video record, Moto Camera too.

On mtp connection, I could write on internal and external storage, but I could not copy from both storages to PC, tried on Windows 10 and Linux and different USB ports

Sometimes .flac audio stopped working (music was playing with no sound, not muted ;) ) tried both: headset and speaker

... but as I mentioned, those tiny bugs are gone now with September build :good:

(I don't use any magisk stuff or xposed)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I've been using open camera only (ever since I got the phone), so never encountered that error.

That one I've had, too, mostly only browsing the phones directories from the PC would work, but not copying of files. This is working for me now, too :)

I don't have .*flac files, just mp3, and with those I haven't had any problems.

I've got the lineage root installed (linked from first post).

Wer'e getting better :cool:

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
A-GPS not enabled in this ROM, how to get it working?

Hey all, I recently learned about A-GPS (Assisted GPS), which drastically shortens the time needed to get an accurate GPS position, called Time To First Fix (TTFF). Without A-GPS, TTFF can be up to twelve minutes, with A-GPS this can be shortened to mere seconds. Now it appears that A-GPS is disabled in this ROM, the file /etc/gps.conf seems to be a template with everything commented out and no real world values in the AGPS server settings section. Indeed, it usually takes my phone minutes to get an accurate position, unless I'm near wifi networks and microG's UnifiedNlp resolves my location based on them.

I'm surprised there's no talk about this in this thread. How did you guys solve this? Maybe after installing GAPPS A-GPS is enabled? I don't use GAPPS though. Anyone has a working /etc/gps.conf they want to share? Any help would be greatly appreciated!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
and what about VoLTE mates? On Lineage16 it works perfectly but back in 14 don' t.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I just tried on my phone with the app SatStat from f-droid. That one has a button to trigger renewal of AGPS data, and the time to fix was around a minute.

I do have GAPPS (pico) installed, but don't know if these do anything to alter the A-GPS behaviour. I don't use GPS much on the phone, as I have a 8" tablet that's better for navigation (larger screen). I used to use trackbook to log my daily walks, and mostly had to wait a minute or two for a fix, but not longer.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Doesn't SatStat also display a notice saying it doesn't and cannot know whether the OS actually uses the injected A-GPS data?

A minute or two for a fix sounds like normal GPS behaviour. A-GPS would reduce that to 10 seconds or so.

Would you mind sharing your /etc/gps.conf file? I would be interested to know if it is altered by GAPPS.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mr Whimpy:
Thank you

Ektus, I flashed your latest image today and it works flawlessly. Thank you for your commitment!

Danke.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
The file is attached. If A-GPS should be configured there, could those data just be inserted in the file (with root privileges) or in the build?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Thanks. That file is identical to the one that comes with this ROM, so it hasn't been affected by GAPPS.

The question is if A-GPS is still being configured there. All the information I found is from 2013/2014, and a lot of the time people don't seem to fully know what they're doing. I couldn't find any official documentation from the AOSP itself.

It's possible that apart from gps.conf there are other files needed as well. It's also possible configuration has moved elsewhere, or it's all done in the GPS hardware - but in that case it doesn't work in this ROM. The G5 specs say the phone's hardware does support A-GPS.

I installed one of the gps.conf files I found online, but so far it didn't seem to make a difference. TTFF after not using GPS for a night and walking a few kilometers from where I last used it was still about 100 seconds with clear weather, as it was before.

I wonder what TTFF people get with the official firmware. If anyone has used it and knows, please share. It would also be interesting to see the gps.conf from the official ROM.

Ah, I still want to test A-GPS injection with SatStat. I tried it one time while my phone was already looking for a fix and it got a fix within seconds after that, whereas normally I would've expected it to take a bit longer. I need to test this again sometime after not using GPS for a while.

Another GPS app from F-droid that has the option to 'inject XTRA data' (which as I understand it is A-GPS data) said 'this ROM doesn't support this' when I tried it.

Edit: Tried getting a fix this morning while using 'Reload A-GPS data' in SatStat. It was cloudy and it took 5 to 10 minutes (didn't time it precisely) to get a fix. So no luck... we need someone with more knowledge here.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
Hello? Anyone there? I need a lot this mates :crying: please help!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I don't know if any of my SIM cards supports this, so unfortunately I can't help there. I can phone with both cards, but I suspect it's just plain GSM.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with October 05, 2019 security patches available

https://www.dropbox.com/s/qc9d83kre4q5qz8/lineage-14.1-20191023-UNOFFICIAL-cedric.zip?dl=1

As always, use at your own risk. I've installed it on my phone together with today's OpenGapps pico, it did boot up again but hasn't undergone any more testing.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] MadeInSwitzerland:
Installed immediately and it's running smooth and without any problems - as all your builds! Thanks a 1000 times!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Spliff85555:
Better late than never: Thanks very much!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with November 05, 2019 security patches available

You're welcome. And barely in time, the new update with patches of November 5th, 2019 has just completed uploading :cool:

https://www.dropbox.com/s/89kidy492yt05i5/lineage-14.1-20191115-UNOFFICIAL-cedric.zip?dl=1

As always, use at your own risk. I haven't installed it yet, so completely untested.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] x_berzerker:
Any progress with GPS mate?

Using strava to hist my runs/walks, but the crazy GPS behavior makes all measures go wrong. Looking for some fix...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Nope, I stopped trying to get A-GPS to work since then. Apart from that my GPS works well once I have that first fix, so you seem to have a different problem...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
The End

I can't find an official statement by Google, but according to the Wikipedia page on Android Nougat it stopped receiving security patches this month. This is supported with a link to the November 2019 Android Security Bulletin that indeed doesn't list version 7 under Updated AOSP versions, whereas it does in previous security bulletins. The Wikipedia-contributor that updated the page commented Google has stopped the support for all Android 7 versions since November 2019.

So how did you make a build with November 5 security patches if there were no security patches for Android 7 [MENTION=8478827]ektus[/MENTION]? :confused:

Without security patches, I guess I'll have to start looking into making the switch to Android 8 or 9 / LineageOS 15 or 16. Which involves going back to stock first in order to update the firmware if I'm correct... o well, I guess I'll figure it out somehow. Thanks for keeping this ROM alive for this long Ektus!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
https://github.com/LineageOS/android_build/blob/cm-14.1/core/version_defaults.mk#L134 says that the security level is of November 5th, 2019. All I ever do is a "repo sync" (sometimes with force-sync) followed by "brunch cedric".

I really can't tell what's going on there or if there are backports of the fixes.

You're welcome.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Quote https://lineageos.org/Changelog-22/ (March 1, 2019):

Okay, so someone is backporting the security fixes?

All I can find here is a monthly commit that updates the security level string, not the implementation of the actual fixes:

https://github.com/LineageOS/android_build/commits/cm-14.1

Also not here:

https://github.com/LineageOS/android/commits/cm-14.1

Where are the fixes applied? If they're not applied in AOSP, they must be somewhere in the LineageOS codebase.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
If you want to test to make sure that all security patches have been applied use the following app

https://play.google.com/store/apps/details?id=de.srlabs.snoopsnitch
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Thank you TheFixItMan, you answered my next question before I asked it :)

I installed ektus' November build and ran SnoopSnitch' patch level analysis, but alas, it doesn't seem to have tests yet for the latest patches? Last it shows is 2019-09...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I haven't got a device with the latest security patch to test

Mine has May security patch but only shows tests up to April

I would assume its up to date in terms of tests available as the app was updated a few weeks ago but there's no change log so who knows

Wait until the next set of patches are released & the app is updated & test it again

The inconclusives are probably down to the custom rom not having all the proprietary drivers
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
I think it pulls in the tests from their server, instead of their availability being linked to the version of the app, since the app isn't updated that often (changelog).

What's weird is that the Play Store serves version 2.0.10 (November 14th), whereas their repository, F-droid and their website (downloadable APK) serve 2.0.9 (April 4th) as the most recent version. Their website never mentions a version 2.0.10. Anyway, I tried both with the same result.

I'll try again some other time if I don't switch to a different ROM before then! :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
There's a status page: https://review.lineageos.org/q/topic:%22n-asb-2019-11%22+(status:open+OR+status:merged) . It shows the patches that have been applied, and the corresponding page for December is https://review.lineageos.org/q/topic:%22n-asb-2019-12%22+(status:open+OR+status:merged) (posted by user [MENTION=3865771]fidoedidoe[/MENTION] in the Samsung Galaxy Note 8 forum today).
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Nice! I asked about it on Github on the same day and was given the same links. Good! Guess I'll stay on this ROM for a bit longer :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with December 05, 2019 security patches available

https://www.dropbox.com/s/ldt2jmcosps5w02/lineage-14.1-20191223-UNOFFICIAL-cedric.zip?dl=1

Untested yet, I'll be updating my own device later today. As always, use at your own risk.

Due to space limitations, any builds prior to August, 2019 are no longer stored in my dropbox.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] KBeng:
Good news everyone! [MENTION=8499091]icantlogin[/MENTION] Thanks for investigating. [MENTION=8478827]ektus[/MENTION] Thanks for the new build. Merry Xmas!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
Does this rom encrypt my data by default?

No - I needed to format /data, coming from stock ^^
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with January 05, 2020 security patches available

https://www.dropbox.com/s/wesydm6aa30ajne/lineage-14.1-20200203-UNOFFICIAL-cedric.zip?dl=1

Untested yet, and as always: use at your own risk. Due to space constraints, builds older than September, 2019 have been removed from my dropbox.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
New build with February 05, 2020 security patches available

https://www.dropbox.com/s/eq4k8nfhi7nik1f/lineage-14.1-20200214-UNOFFICIAL-cedric.zip?dl=1

Untested yet, and as always, use at your own risk. Due to space constraints, builds older than October, 2019 are no longer stored in my Dropbox.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Bayerisch:
Danke schön.

Thank you very much. I think it's great how you get involved.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Thanks ektus. I tried to build it myself just a few days ago, but I stranded on an out of memory error again 2½ hours in on my third try.

Try increasing heap size with java option '-Xmx<size>'.

...will be the thing I'll research next. I already have the line

export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"

in my .bashrc file. Maybe I should change it to 8G? It annoys me that I have to tell the thing how much memory it can use, instead of it just using all the available memory like any other application! O well...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I recall struggling with that myself, the history is somewhere in this thread. You need at least 5GB of free RAM to build, IIRC, and have to set one or two related variables.

export LC_ALL=C

being among them.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
Yeah I had already found your notes, they were helpful! Tried a build today with -Xmx8G and it didn't run out of memory anymore. Indeed the Jack server process seems to use close to 5 GB whenever I look. (For anyone interested, I'm using a laptop with 8 GB of RAM and an 8 GB swap partition.)

This time the build failed after 3½ hours because I cloned the android_packages_resources_devicesettings repository to the wrong location (I didn't use the code from your post but created a local manifest file per instructions I found elsewhere so the additional repositories are also synced everytime I run repo sync). Fixed the path, so hopefully on the next try the build process will succeed!

Edit: It worked! I can now build this ROM myself! Awesome :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shubhmg:
Late to the party

Hey guys, i recently got my g5 (dont ask me how), it had the latest oreo stock firmware, i rooted it, flashed twrp64 bit and flashed lineage 17.1 , now i want to downgrade to this rom, what will be the process?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rahimali:
You would need to flash back to stock Nougat first, then flash TWRP, wipe and then flash this ROM.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shubhmg:
I have two questions

1. In order to flash stock nougat, can i use twrp flashable stock nougat rom?

2. If yes , will i be able to flash it from the twrp64 bit recovery or should i first flash normal twrp, then flash stock nougat from it and proceed?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rahimali:
i already linked you to twrp flashable stock in my prior post. you can just go ahead and flash that from current recovery
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shubhmg:
Thanks bro :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rahimali:
Do backup your EFS from TWRP to preserve IMEI etc.as a precaution prior to doing any flashing.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zitronenmelissa:
Does somebody notices the notification led is flickering like a disco light? Mine has an "irregular rhythm" ^^ it is working on other roms, so no hardware error