yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Iv given instructions on how I built the official twrp although I used the omni 7.1 source

What you need to do I imagine is create or edit these files to point to the right location

omni_cedric.mk

AndroidProducts.mk

vendorsetup.sh

My source code for official 32bit twrp is (see the read me file for repos I used)

https://github.com/Theitfixer85/android_device_motorola_cedric

You would need to git clone the appropriate device tree kernel & vendor repos or create your own

If you look in the twrp64 xml of the repo you posted the link to it shows you what repos need to be cloned for that particular recovery - how it was built I don't know - you will have to ask the creator if you are unable to build from it
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] CodeZero:
New Build [15/04/2018] Is Up!

Changelog

:-

April security patches

build using sdclang

added some qcom HALs

addressed some denials

Updated to KPTI patched time blobs

Used O-MR1 based display and media blobs

Used O-MR1 based GPS blobs

Kernel source is upstreamed to linux stable release 3.18.105

Other source changes and bugs fixes and for detailed changelog check my git

Download Link

:-

As usual link of rom is updated in op

Clean Flash recommended

Note :-

Mindthegapps are recommended if you flash opengapps you might face fc

and im sry for rolling out the update late .. i was working on project treble i got it booted almost everything is broken will fix it one by one

Regards,

CodeZero
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Ramonms98:
Running PHH-Treble Vanilla, hows that possible?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
He said he got project treble working, that picture is showing that.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Ramonms98:
I I flash the rom it will give Project Treble? Or it'll be released later?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
The rom update is "normal", treble is still in development and not available yet.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Ramonms98:
Ty
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hordesoflocusts:
Camera is broken with this build?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Update from Feb build

Hello,

thanks for providing further update to this ROM. I use it as a daily driver and it really works for me.

I am on version from Feb2018 with related TWRP3.1.1.0. Now I try to upgrade to the build released yesterday. With a dirty flash I get err7 related to device name not being cedric or something. Also with clean flash I can not get the zip installed.

Do I need to update TWRP first? If yes how to update (the new TWRP version does not show in my SD card once I boot into recovery)?

May be not the smartest of questions and sorry for taking up bandwith.....
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Hi, try this TWRP version!

https://androidfilehost.com/?fid=673956719939821589
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
succeeded with your help

Hello Fedray,

thanks for pointer, both TWRP and LOS now went as a breeze.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] freaky_beeky:
I dirty flash upgraded, but yeah, all the tricks I use to get the camera aren't working. Simply cannot get camera to connect.

On the plus side, it fails fast, which makes me feel like there's something really wrong (e.g. completely mis-configured), as opposed to the "normal" camera problem.

Hope someone has a fix soon. (Happy to logcat if it helps). :good:

EDIT: Still having the issue where some notifications take the phone out of vibrate mode, and back into full "ring" mode.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kare_meesner:
with the new build VoLTE doesn't work anymore (with the build from 20180316 it worked), I did a clean install (wipe dalvik/cache/data/system) but restored data-partition.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Just use footej camera app...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hordesoflocusts:
Same thing, probably something broken at API level or a driver issue, i guess
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Oh right...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
I have no problems with footej on 15/04 build, try clean flash like codezero recommended
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Yeah that's what I thought coz every ROM I've tried the footej camera app work great!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] freaky_beeky:
If it was just the camera, I'd be fine, but I have a number of apps that need to scan QR codes (e.g. whatsapp web, RSA token, bank token etc...)

I might have to bite the bullet and clean flash. (Hours of configuration to be lost :crying:)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kadorna1:
Have you tried the multiwindow trick? WhatsApp web works that way (put the app that needs to scan the QR in multiwindow on the top half)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] freaky_beeky:
Yeah, it works when the camera is working at all, but currently after dirty flashing the last build, I can't get the camera to work in anything at all.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Same camera problem

Have to report the same problem. I did dirty flash to latest Apr2018 version from Feb2018 one. No camera app working (incl. Footej). Problem seems indeed to be different from "traditional" Oreo one.

Could try clean flash but will have to re-do a lot of config detail:crying:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hordesoflocusts:
Try this; flash latest gapps, flash new build, wipe Dalvik & cache, reboot

---------- Post added at 03:40 PM ---------- Previous post was at 03:37 PM ----------

Try this; flash latest gapps, flash new build, wipe dalvik&cache, reboot
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ben16w:
Wanted to say [MENTION=5982915]CodeZero[/MENTION] thank you giving us this custom LineageOS rom! It's ace!!

Also want to report I'm having the same camera issue and that I did a dirty flash (don't fancy starting from scratch again)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
If you guys are dirty flashing then don't report camera issues, always is recommended to clean flash because sometimes there are major changes that if you dirty flash they don't work properly.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] christianix:
I've choosen to stick with Omnirom 7.1 as prepared by [MENTION=5982915]CodeZero[/MENTION]. I was able to build it as described. I basically just forgot to put the additional repos in the local_manifest. I could have found that myself ... :-/

So bad news: No new version from me, sorry. :( However, Omnirom seems to be a good choice to learn building Android systems. I just won't find time to work through all of it :(

I just don't understand one basic thing: What is the connection of Omnirom and TWRP? The system and the application? OSMC and Kodi?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] freaky_beeky:
Surely it's okay to report the camera issue, as long as you also mention that you didn't follow the instructions and dirty flashed (as a warning to others thinking the same). I don't think any of us were under any illusion that it was anything other than our own fault, nor were we expecting a fix.

I tried this just now, and still had the exact same camera problem.

I'm going to wipe the System partition only and follow the above again later today to see how it goes.

---------- Post added at 09:47 AM ---------- Previous post was at 09:19 AM ----------

So I wiped the System partition only, flashed the new build, flashed the latest (mind the) gapps, (flashed magisk), wiped Dalvik & cache, rebooted.

Still got the camera issue... Will consider doing a "full" wipe later.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Clean flash ok

Hello, camera problems with dirty flash were highlighted by me before. Last night I did clean flash and all working perfect now. One small question from a non initiated guy: why is now mindthegapps needed, why does openGapss no longer work ok?

Thanks again for good work with new update!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] freaky_beeky:
What did you wipe, just the standard TWRP wipe (data, cache, dalvik) + system?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mister-XY:
Hello, i have a small problem withe the New Image, a clean flash an mindthegapps.

The Moto G5 will be bootloop. I will only see the Lineageos logo (i let it boot for about 45 min). Without install the mindgapps, the new LineageOS will be start without Problems.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Hello, I also flashed the internal storage folder (for good measure).
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hordesoflocusts:
All is working great here, with a dirty flash, i've flashed gapps on current rom( not mindthegapps), flashed new buid, wiped Dalvik&cache and reboot
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] thevinialmeida:
Trying to Flash Latest Release in my cedric, got a TWRP Error:

"Updayer process ended with error: 7

Error installing zip File /external_sd/lineage-15.1-20150415-UNOFFICIAL-cedric.zip"

[MENTION=309187]edit[/MENTION]: says that rom is for cedric and for cedric_retail and my device is .

What does this mean?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Download latest twrp from link at first post
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kaiomatico:
I had the same Problem on my moto G4 with lineageos 15.1. I solved it by only doing a normal twrp wipe, install rom and gapps , reboot to System( does not Matter if it hangs)) ,reboot to twrp,do a normal wipe, install rom and gapps again, and then a normal reboot to System should work! So not format data , sd data or internal manually, only using the normal twrp wipe is the key
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Metalbuster:
Wich version of gapps did you use?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] BigBadBassMan:
Hi there,

something with the latest build 2018-04-15 is off: is does not boot (at least on my XT1676) with installed gapps (no matter which gapps package used: OpenGapps Full/Pico or MindTheGapps, both 8.1 ARM64).

Just clean flashing the rom alone without gapps leads to a bootable system.

I gave it plenty of time to finish booting (20-50 minutes), tried several times, clean-wiped (including internal storage, just for testing), something does not like the gapps.

Interestingly enough: opengapps pico complains that "Stock GApps" was installed, but keeps installing its own apps.

So, after messing around with the latest build withoud luck I did a clean flash of the 2018-03-16 build including mindthegapps and will try a dirty flash upgrade to the new one later.

(Would there have been a way to grab some logs of the failed/stuck boot attempts? I reconed, that adb was not yet ready, since the boot was still ongoing...)

EDIT: dirty flashing the april build ontop of the march one worked in so far as that it boots successfully. But, and this is a huge blocker for me, no camera app works at all.(tried footej, the bundled snap camera, Motorola camera and opencamera) At least the moto camera used to work for me, albeit only in its basic photo mode.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kaiomatico:
At that time on the g4 I installed nightly unofficial opengapps, but my guess is that this procedure also applies to mindthegapps
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] christianix:
Navigation keys not working

I'm currently trying your latest Image on my Moto G5. I found two things strange and I'm wondering it anyone else has the same problems:

Navigation keys (left and right of fingerprint scanner) are not working

Notification light (for missed calls/messages) is blinking with an irregular frequency
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mister-XY:
And it's run with nightly opengapps?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
1. Did you set them on Moto Actions menu?

2. That also happens on every Nougat custom rom.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

is there a working combo at the moment?

I tried ROM of 20180213 (com.android.phone is stopped) and 20180415 (stuck in bootlogo), both with gapps MindTheGapps-8.1.0-arm64-20180320_011441.

20180213 without flashing Gapps also leads to com.android.phone is stopped.

20180415 without flashing Gapps works, but then I don't have Gapps :(

What is the right way?

thx,

D.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mister-XY:
The same problem here.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] BigBadBassMan:
20180316 from earlier in this thread (search for it, not built by codezero, but based on his trees) worked for me with mindthegapps and opengapps.

Once installed, 20180415 could be dirty flashed ontop, but it broke all camera functions, including torch.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

tried the 20180316 with MindTheGapps-8.1.0-arm64-20180320_011441, doesn't work. Device boots up, a minute or two bootlogo, then it reboots into recovery.

Which GApps (version) have you used?

I also tested Lineage 14.1 with Gapps to see if anything inmy workflow or the device isn't ok, but this works like a charm.

So still no idea what's going wrong here.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] BigBadBassMan:
I did a clean flash of the 20180316 version with the latest mindthegapps, the one you used. I Wiped everything and formated /data (which was probably overkill, but I tried to get the april build with gapps to work, no luck there).

Before, I came from lineage 14.1 too, and dirty flashed the march build with opengapps 8.1 arm64 full, this worked too, at least for me. Only motoactions was not working this way. That's why I tried to get the April build to work.

Greets,
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

I also wipe everything and delete /data, just to be save. No luck. Now also tested the March-15.1 with Open GApps, same as above.

One thing I discovered: when flashing Open GApps after Lineage the installer gives a warning *Stock ROM GApps currently installed*, but installs anyway.

Could this point to the problem?

D.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] redfox5:
First things first Thanks for the continued development of this ROM.

To the above posters, are you clearing the system partition before flashing. TWRP>Wipe>Advanced tick System & also then do the standard Wipe (Factory reset) too.

I have the April ROM running with latest opengapps with no problems and it runs beautifully. The only thing I did differently was that one extra step.

I also noticed someone mentioned about being kicked back to recovery from the system, this happened to me too. Just ignore it and boot back again and everything should work just fine.

Good Luck :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

yes, I also clean the system partition additionally to the "normal" wipe. And I changed the type of the filesystem for system and data, just to test out everything.

What should be the correct filesystem for them? f2fs, ext4, anything other? Same for system and data?

Which version of twrp are you using?

thx,

D.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] redfox5:
The TWRP version I am using is 3.2.1 (64-bit cedric) MD5: a90d93ab2829d92d3eff94c0ef7d578a.

system: ext4

data: f2fs

Hope that helps.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

this is what I use. No way.

I tried another Oreo-ROM: PixelExperience https://xdaforums.com/g5/development/rom-pixelexperience-t3756673

One big difference between Lineage and this one is that PixelExperience has the GApps built-in. Works well, the only issue is that you have to remove the 2nd SIM for the first boot-up, with both SIM you'll get the com.android.phone issue.

I've no idea why Lineage15 won't boot up on my cedric :(

D.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] redfox5:
Out of interest what opengapps did you flash, I used the stock option arm64 android 8.1
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DavidKirsch:
Can someone upload for me the files "camera.msm8937.so" "camera.vendor.msm8937.so" from the folder "/system/lib/hw"? I kind of deleted both files trying to get api2 to work.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DeMixx:
Hi,

open_gapps-arm64-8.1-nano-20180414

D.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] christianix:
I've looked at the Moto Actions menu. But all I could find was related to the fingerprint reader itself. I meant the navigation touch buttons left and right of the fingerprint reader.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
You need to set them there. Set swipe left, right, and single tap.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Exxam:
I have testet the last build. With clean install.

The camera work with stock app and with footej, but not with other apps like phototan.

Snapchat doesnt allow the login.

Now i am back on the build from 2018-03-05.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Natanji:
I'm having a problem with the Camera app. Photos work fine, but I recently discovered that it *looks* like a video file is being recorded, in the end there is not a single recorded video file present. So the recording doesn't actually save the file. It's a really weird problem, I do find issues for CyanogenMod/LineageOS that this happened on way earlier versions but was supposed to be fixed. Anyone else having this problem and a potential fix?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheArtistSpud:
Is the voLTE bug fixed? Or is there a fix? Also anyone know a rom where voLTE works?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kare_meesner:
for me VoLTE works with the Build from 20180316
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] BigBadBassMan:
Thanks for the info, I specifically did not do this, as I was under the impression, that the update (it says "patching system image unconditionally" after all) overwrites everything in /system.

Will try again later. But, and thats a huge but: if this is works, and /system needs to be cleared manually, than either the build is broken (because it finds stuff it cannot deal with in /system, which hinders booting *with* gapps), or something within the first-boot-wizard along with the gapps modifications is. (or maybe its just the update-script, since it clearly did not flush all unneeded files from system - than one would have to inquire with LOS, where the culprit is)

[MENTION=5982915]CodeZero[/MENTION]: how can we be of assistance in nailing this one (btw: thanks for your great work - after all your way faster than lenovo)?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] colonho:
Very good rom, i've issues with the camera, dont work frontal camera in facebook n i can't sync whith whatsapp web. Thanks, cheers!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PhilDsT:
After way to much googeling I figured out how to enable Google Assistent (again).

Add 'ro.opa.eligible_device=true' to the build.prop reboot and enjoy.

Sorry if this was common knowledge - but took to long to figure out what was missing for not share it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
New build 20180424

First of all - thanks to CodeZero

This is a personal build which I'm sharing here, CodeZero bears absolutely no responsibility!

As usual for now use footej camera for video recording, photos are fine with stock cam and have also better quality with high settings.

Dirty flash should be fine but I always recommend clean - it's up to you.

Changelog:

- Kernel version 3.18.106

- Stock Camera is now Snap instead of AOSP Camera2, it doesn't suffer from dark photos bug and has a lot of features (but capturing videos is still broken due to missing stock oreo blobs)

- LineageOS source updates

- Many little changes under the hood in kernel tree

https://drive.google.com/file/d/1d0WkbvGsZiddhNt3a2YlqO6icnD0HAMl/view (578.1 mb)

md5sum: 27df481fbd2c591c009219459e6d668d lineage-15.1-20180424-UNOFFICIAL-cedric.zip

For video recording: https://www.apkmirror.com/apk/semaphore-inc/footej-camera/

Sources are same as in OP, all credits go to CodeZero (thank him, not me!!!)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Finn10111:
Hi Zokhii,

thanks for your effort to make this ROM better, I am always glad to see some progess. But I am afraid changing the camera app could be a problem:

That is a nice try to deal with the camera bug but what is the license of this app? Is it really wise to include this app? I am using LineageOS (without Google) because of its free license and I think this is only a temporary solution?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kare_meesner:
one question:

did you try VoLTE?

in the Screenshot the point 4 (translated maybe: advanced 4G LTE Mode), if I activate it, I can't get Calls
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
[MENTION=2643240]Finn10111[/MENTION]

Don't worry, it is a part of LineageOS source. Maintainers can decide which camera app they want to integrate in the rom-build process by changing a line in device tree makefile - Camera2 or Snap. Snap is optimized for qualcomm snapdragon devices and we can benefit from this.

https://github.com/LineageOS/android_packages_apps_Camera2

https://github.com/LineageOS/android_packages_apps_Snap

[MENTION=9012388]kare_meesner[/MENTION]

I don't know, I don't use 4G at all.

Unterstützt Telekom überhaupt VoLTE? :D
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kare_meesner:
Yes it does, it worked on my Phone until the Update of 20180415
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
Hmm... unfortunately I don't have an idea why it is not working (anymore), maybe the brain behind this rom [MENTION=5982915]CodeZero[/MENTION] can help - I am only the guy who compiles it. Can someone with volte carrier confirm this behavior?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kare_meesner:
Tried your build: stuck in LOS Boot anmiation, made a clean installiert, tried with mind the gapps, also with open gapps, back to 20180316 is working
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Finn10111:
Thank you for clarifying this, I didn't know that.

I dirty flashed your build over a clean installed build from 20180415 but I could not find any camera app. Also double clicking the power button seems trying to start the camera app but the phone gets stuck on a white screen. After a few tries and clearing the dalvik cache again I reverted to the 20180415 build using a backup.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
Then, I guess, a clean flash is needed :confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Latest builds need clean flash because some major changes has been made to camera, you will not see any improvement on camera, is just some source side changes that were needed. There is a high chance that if you dirty flash then camera will not work.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] leobragatti:
Anyone is having problem trying to scan the QR Code on WhatsApp web page? The scan area is freezing
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Renee.Souza:
Other perfect ROM! I'm loving! Has one bug, video calls on WhatsApp, the other person does not receive my audio, but it is possible to use normally! Calls working fine and fingerprint gestures is working fine. Thank you so much for the ROM!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] blaze_me:
Its showing TWRP error: 255 while flashing the ROM file. Please do help!

Update: Solved. Flashed the twrp given in the description.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] blaze_me:
Only Volte Bug is there, or am i the only 1 facing the bug?