yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Nope not a common problem - Iv been using lineageos for a long time on this device & this is not a problem I or anyone else has reported

I also have the UK 2gb model

I suggest a full wipe including user data which will wipe everything on internal storage such as pictures music downloads etc & start again - make sure you backup anything on internal storage to sdcard or pc first

fastboot erase userdata

Go into twrp

Wipe

Advance wipe

Format system data cache art/delvik cache

Install

Select rom zip

Goto home screen

Install

Select gapps zip (I recommend nano gapps)

Goto home screen

Install

Select root addon zip

Wipe cache

Restart
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] gilesw:
Cheers I appreciate the feedback. I got into a bit of a mess due to enabling encryption. I haven't used android since the htc desire days.. but got lineage installed.

So one thing I failed to mention is I install xposed to get a back gesture. Is xposed a good idea or should i just make do with all in one gestures?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Encryption works fine as I'm encrypted - Just make sure you use latest twrp version 3.1.1-0

On my last test this version of xposed works - Iv not tested the official version

https://xdaforums.com/xposed/xposed-android-nougat-sdk-25-arm64-t3639221

Obviously xposed mods system files and can cause adverse effects so a twrp backup should be made before trying anything new

I don't use it simply because I need to be able to turn root on & off quickly to allow some apps to work & xposed would make integrity report false but everyones use is different - there's no harm in trying if you are prepared to accept it may cause some issues or it may work perfectly fine
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] gilesw:
Interesting, well I'm happy to report the phone can make calls now! And the nano version of opengapps means the phone is rapid. The only thing I miss is the google camera, it had this thing that allowed you to make a boka like effect by moving the camera after your first shot. I've tried installing some apk's but they all just crash on open.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Those who have problems about playing videos(not recording) can try this fix and tell me whether it works or not.

https://drive.google.com/file/d/0B04TdZfiVaBodGVqcVNUb3lHV0E/view
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] adrian1234a:
For my works
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Also, please test 4k video recording.Maybe that zip also affects it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] adrian1234a:
:confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Lol, I took media configs from cedric stock rom and it disabled 4k recording.Can you record 4k in stock rom?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Didn't work for me. I'm going to try again. Perhaps im done something wrong.

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Did this ROM fix the garbled metallic sound recording in videos caused by the broken noise cancellation?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Is possible activate one hand mode with navbar disabled? There is a secure setting or something that I can change by a script, an intent, or something?

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] KawaiiNeko:
It would appear so, I did some test recording and I sounded really crisp and clear.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Woot! I actually have my G5 in the box and was going to send it back. Unpacking it now and will install this rom!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
New build.Thanks to [MENTION=6201843]adrian1234a[/MENTION] for trying it.

- Issues with video recording and playing are fixed.
- Device name is removed in about phone now.(lineage_cedric is gone)
- Some unused services are disabled in ramdisk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kilkenny45:
Hi,

Can you tell me if the fast charging works on this rom

Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] jedikv:
Awesome! Good luck. Looking forward to this project progressing :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] adrian1234a:
moto g5 don´t have fast charging
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ndrewlambe:
Maybe some setting I do not have correct, but once I record a video there isnt any audio and the video itself seems to lag and seems distorted.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Where is your device from?

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ndrewlambe:
The UK
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kilkenny45:
I'm sorry but Moto G5 use the TurboPower technology.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
You should flash today's build to fix video lag issue.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I use open camera (playstore)

Any Google app should be available from the playstore
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Shooting Star Max:
Please check this: https://developer.android.com/guide/topics/media/media-formats.html

It says FLAC should be natively supported since tons of versions ago.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I know it's meant to be but doesn't mean it is

Either way it still requires the op to add the custom codec to the libstagefrighthw
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] 71n4:
Problems so far (XT1676 16/3, using latest build 2017-10-18):

I'm encountering crashes with the Google Arts & Culture app, even after a clean reflash. To reproduce, install & open said app, choose an artist on the menu (e.g. Rembrandt), scroll to the side. Always force-closes after a short time. I don't get this error with stock rom.

I also get pretty bad battery life when installing the LineageOS weather service. Don't know wether this is related to the app or rom. Standby time gets cut by roughly 30%.

Doing nothing, having no apps installed besides WhatsApp, i get a total standby time of around 36 hours tops. "Mobile standby" (good reception) contributes to around 30% total power consumption, is this normal? I never looked into this specifically before. This only shows while not really using the phone. When using a lot of apps the phone lasts me a whole day, like it should. Putting it in "aeroplane mode" eliminates this issue completely. Maybe it's just me, but I got a feeling somethings not right here regarding battery life in standby. My last Samsung phone would last me for 2-3 days without a recharge when using it only occasionally. Installed stock today for comparison - will report.

Notification LED seems to also draw a lot of power and is not flashing regularly, more like random. Feels kinda hacked together.

Data transfer via USB still is buggy. It rarely does work, but most of the time it doesn't, no matter what. Enabling debugging won't help. Using WiFi file transfer for now (e.g. ASUS file manager, free). This is the most annoying issue.

Also, is there a way to contribute (german) translations for the Moto fingerprint gestures?

Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
My phone has crashed again, once more with the same symptoms: Sitting idle with 1/3rd battery, it must have tried to reboot because I found it later with dead battery. Attached charger, and after a seemingly normal boot the account settings are gone again. I've got a logcat, but that one starts at the reboot. I had been running open gapps in the "stock" variant, have now reverted to "pico" plus GMail and Calendar and will watch further. Could it be the memory usage going above 2GB? There are supposed to be differences between the kernels in stock that are not present in LOS, see https://xdaforums.com/showpost.php?p=74374268&postcount=51 perhaps that's got some relevance? Or not, I've got no way to know :(

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Iv got the 2gb variant & Iv not had one single random reboot freeze crash or anything like that since Iv started using it

Are you using your sd card as internal storage? That would cause the problems you are describing - Always use sd card as external storage because from what Iv read using it as internal doesn't work on some devices & causes crashes due to read/write speed
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I do have it configured as extension to the internal storage (I think). Language is set to German, so I don't know the exact wording in English, but the memory settings show 6.55GB out of 14.56GB of common internal memory used and 13.1GB out of 51.71GB on SD-card. I don't want to have to manage the storage spaces myself with link2sd or some such.

I wonder why it does work for days on end, including app updates, mail reading, tracking with trackbook and the like, and only crashes when the phone is idle? It's in orange power save mode, too, so almost no background processes running. Speed should never be an issue, anyway, as it would simply slow things down a little. I don't do gaming or any other heavy-load applications, RAM in use after 12h running including 5h on battery is 1.4GB, most of it for Android OS with 649MB. It went up from an initial 500MB after boot. I'll watch that one over the next couple days, I don't like the behaviour of Linux where RAM is used albeit it's not needed for the running applications.

I do have the 3GB variant, so there's a difference with that. Let's see if something comes from the latest inquiry for the kernel sources for the XT1676 over in https://xdaforums.com/showpost.php?p=74396167&postcount=61

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Does it happen as well if you deactivate the power save mode? We already suspected that this mode does not work as intended, maybe in relation to the LITTLE core cluster fixed at performance profile even in this mode.

If this happens again, can you try to boot to TWRP first and check/save logs or account settings before you boot into Lineage again?

---------- Post added at 02:51 PM ---------- Previous post was at 02:06 PM ----------

Still wondering: The linked Google doc clearly indicates that FLAC decoding and encoding is native since Android 4.1. So, every AOSP-based device should have it system-wide available and running, unless it is deactivated or broken. If there is a link to device-specific drivers needed, shouldn't it be already done in the vendor/device tree?

Vendor files seem present and included in cedric-vendor.mk:

vendor/bin/audioflacapp

vendor/lib/libFlacSwDec.so

What interferes / is missing so that the FLAC codec is not used / available?

Where do we find libstagefrighthw?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
in system/lib

you would have to ask the op what is missing or broken and to rebuild the lib when he next builds the rom

---------- Post added at 02:22 PM ---------- Previous post was at 02:18 PM ----------

Run it so your sd card is set to external storage (you will need to format it first)

Don't worry about running out of storage - with a 16gb internal storage unless you fill it yourself with music vids pics etc instead of putting these on your sd card you will never fill the internal storage up with just apps unless you install hundreds

Speed is an issue - Iv read it somewhere - might have been pixel or samsung device - Even with the fastest of sd cards it was reporting slow read/write speeds which could cause an unexpected restart or crash of phone

Edit

The phone can take up to a 256gb sd card
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Micha3000:
Thank you, but i have a problem:

When Installing the first time:

______________________________

"Flash the latest build and GApps"

E:failed to verify whole-file signature

E: signature verification failed

Installation aborded

____________________________

What is wrong, can u help me?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Thanks, but this I don't understand: According to https://source.android.com/devices/media/, Stagefright is a software media engine, and the default software codecs are already in the system/lib directory, including FLAC. Why would the libstagefrighthw as "interface for custom OpenMAX codecs" have to be modified? Or do we talk about different ways of providing FLAC support? Are the Qualcomm FLAC drivers another way / hardware support for decoding FLAC or needed by Stagefright?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I think it should be part of qualcomms omx - I don't know how it was implemented in this rom - the only person who can answer your questions is the person who built it

---------- Post added at 05:24 PM ---------- Previous post was at 05:20 PM ----------

Either you didn't download the correct gapps from http://opengapps.org/

Or

You can try disabling signature verification from the twrp settings
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] the_clapper:
German 2gb model here, encrypted and SD card used as internal storage. Everything works perfectly, no crashes. I use 1 Sim card only. Installed and updated as per TheFixItMan instructions. Pico gapps instead of nano.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Do USB downloads from the device (files/directories) work? If yes, which Motorola drivers did you install on your PC?

Here, only uploads work, downloads not any more (did work partially some months ago), no matter if with or without dev options enabled. Files and directories are seen, copying or deleting is just omitted (without error notice). Adding/moving/copying files on the Moto itself is not reflected in the Windows explorer, only after a reboot of the Moto.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] the_clapper:
I use Linux, you are probably referring to windows. Up and downloads work fine. From within lineage as well as from twrp.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Make sure you have root & adb enabled from the developers options

If it won't transfer from phone to PC unplug cable & try again

If it doesn't sort itself out after a few tries you can put your phone into recovery mode & enable transfer & copy things over that way

Moto drivers are here

https://xdaforums.com/attachment.php?attachmentid=4221278&d=1500844546

If files are missing in the windows Explorer use this app - see my thread

https://xdaforums.com/g5/themes/app-fix-missing-music-files-t3657743
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Micha3000:
---------- Post added at 05:24 PM ---------- Previous post was at 05:20 PM ----------

[/COLOR]

Either you didn't download the correct gapps from http://opengapps.org/

Or

You can try disabling signature verification from the twrp settings[/QUOTE]

After installing official twrp:

https://xdaforums.com/g5/development/official-twrp-3-1-1-0-moto-g5-t3699737

i was able to install the lineage OS !

Thank you!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] gilesw:
My phone is rock solid now i correctly wiped it but the battery life isn't great. At least the battery just drains down without me doing anything. I've got location battery saving and i'm switching off wifi so i'll see if that makes a difference. Is this just standard for android? I do seem to remember some thread on here talking about kernel changes on the moto g5.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bojnice:
Official ROM

The answer from Lineage.

In order to become official, the device needs to have a working kernel and *every* component of the device must be working and stable.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Shooting Star Max:
Yes, there are still some small issues (FLAC files, USB network tethering, etc.), but I can see this becoming official at least for the 2 GB of RAM variant.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bojnice:
I have asked Lineage about official ROMs od this years new Motorola devices.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I can't replicate this - so it's either the keyboard you're using has a bug or some setting somewhere is wrong

I'm using Swiftmoji keyboard but I also tested with the stock aosp keyboard

Tested in portrait & landscape mode

See screenshots
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Keyboard Bug

Using the AOSP keyboard that came with Lineage.

I narrowed it down: The bug is related to hiding/showing the Navbar. It only appears in landscape mode in a multi-line text editing dialog.

As soon as "Settings: Display > Expanded desktop" is enabled, the bug appears. If "Expanded desktop" is diabled, the positioning of the blobs is right again.

So, it seems that in landscape mode, for positioning the blobs, the height (y position) is calculated wrong. As it works in portrait mode, some adjustment might have been forgotten when implementing the "Expanded desktop" or the "hiding navbar" feature.

(BTW, after having "Expanded desktop" enabled and "Settings: Moto Gestures > Fingerprint Gestures" disabled, the settings menu cannot be left, no matter if "Settings: Moto Gestures > Hide Navigation bar" is enabled, since navbar is hidden and and return to home screen is not possible any more.)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Just so you know during my test I had the navigation bar disabled through

Moto actions -> hide navigation bar

I use the fingerprint sensor for navigation

I also retested with disabling the navigation bar through expanded desktop - again I can't replicate the problem

Have you got some zoom function enabled in the Accessibility settings? For example is display size set to default? (even then I still cant replicate it with different zoom settings)

Also I assume you haven't enabled some kind of theme which could change the framework settings eg xposed or substratum

Since I can't replicate your problem I don't know if there is one - you will have to see if anyone else can replicate it
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Keyboard Bug

This alone does not bring up the bug, it appears on my device as soon as I set "expanded desktop = enabled", no matter what is set in "Moto Gestures".

Probably related: In "expanded desktop = disabled", the options are "hide nothing" or "hide status bar" for specific apps. On "hide status bar", the status bar is not hidden (another bug?), but the app is raised to the top of screen, so that there is a vertical overlay of the status bar over the app title. Weirdly, this overlay is some pixels less in portrait mode than in landscape mode. This behaviour is present with and without keyboard, in any app. The overlay height of the status bar in landscape mode seems exactly the height of the y offset of the blobs in landscape keyboard.

So I assume the bug in the expanded desktop. Having expanded desktop disabled and all apps set to "hide nothing" seems to resolve it for me, but the bug should be found and fixed anyway.

Cannot provide screenshots right now—USB bug, you know ...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I said I re-tested with expanded desktop enabled & I couldn't reproduce the bug

Status bar is hidden on every app Iv tried with either globally or on a per app set basis

The pictures iv uploaded in this and previous posts above are screenshots unedited so that is exactly how my screen looks

Do you use xposed or any other framework changing utility like substratum
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Sorry, did not see the second part of your previous post. No zoom, no theme, no framework, just plain Lineage.

Under "expanded desktop", it reads "Expand ... by hiding the status bar, navigation bar, or both." I don't have the option to hide navbar or both, only "nothing" or "status bar". May there be something wrong, or do the settings of "Moto Gestures" sometimes interfere with "Expanded desktop"?

Wondering if somebody can verify the effect.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Expanded desktop just has option for status bar & not Nav Bar if Nav Bar is disabled in moto actions

I believe this is because there used to be a bug that stopped the camera working for some devices if Nav Bar was disabled through expanded desktop therefore disabling Nav Bar can only be done globally through moto actions

If you disable the hide navbar from moto actions the option to disable it on a per app basis is available in expanded desktop

This is probably either so the two don't conflict or they both use the same method
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Don't want to bother everybody with endless blob bug discussions, but as there is no bugtracker (is it?), we have to make some slow progess in public ...

Yes, you're right, and it's working.

Played around with AOSP keyboard and the "Expanded desktop = enabled" settings while "Moto Gestures > hide navbar = disabled":

- Hiding both = everything ok

- Hiding status bar = everything ok

- Hiding navigation bar = blob positioning bug + navbar display problem:

In portrait editing mode, everthing ok, the navbar is in solid (black) color under the keyboard. After leaving editing mode, keyboard disappears, navbar changes to half-transparent and disappears after some seconds.

In landscape editing mode, the navbar is shown at the right, but with transparency problem (background color not set?), and the blobs are 65px too high. 65px is exactly the height of the status bar.

In "hiding both" and landscape mode, the transparency problem is the same, but as the status bar is now hidden, all text is 65px higher and the blob positioning is now correct.

When setting "expanded desktop = disabled" and manually setting an app to "hide navbar", the transparency problem is present, but the blobs are at the right position.

So I still assume that there is something wrong with the "Expanded desktop" function in landscape mode, and I think the bug can be found by comparing the code or function calls for "expanded desktop, hide navbar only, landscape mode" with "manually hide navbar only, landscape mode".

Plus, the color of the navbar at the right is wrong (fully transparent instead of solid color background) in all settings in landscape editing mode.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bartman350:
Are there any plans to support microG for cedric, as for many official LOS devices (see https://xdaforums.com/android/software/lineageos-microg-t3700997) ?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Power save mode is disabled, gapps are now pico (plus mail and calendar). CPU governor is manually set to "interactive" with kernel adiutor.

It happened again, this time when I was issuing a warm boot and it didn't come back again (stuck at animated LOS boot logo). I did manage to save logs and create a backup from TWRP, but don't know if these are of any use. Or even where the log is, will have to check tonight.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Marianopela:
If you need testers I'm available