yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 7 (nougat), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

What's working :

Boots

Touch

RIL [Calls, Mobile Data, Dual SIM]

Wifi

Wifi Tethering

Bluetooth

Camera

Camcorder

Audio

Sensors

Flash

GPS

Notification LED

Fingerprint

OTG

VoLTE

FM Radio

Known issues:

Fingerprint(Fixed in the build 05/25/2017)

OTG(Fixed in the build 05/29/2017)

Camcorder(Fixed in the build 06/01/2017)

VoLTE(Fixed in the build 06/27/2017)

Wi-Fi Obtaining IP problem in some variants.(Fixed in the build 06/27/2017)

Video player stutters.(Fixed in the build 06/28/2017)

FM Radio(Fixed in the build 06/28/2017)

Rear Camera in 3rd party apps does not work on some users.(Fixed in the build 06/30/2017)

USB tethering function does not work.A Third party app such as pdanet might be a solutiıon.(Fixed in the build 06/30/2019)

Instructions :

Download the latest build and GApps

Reboot to recovery

Wipe data/factory reset

Flash the latest build and GApps

Reboot

If you want to root LineageOS, take a look at this thread: https://xdaforums.com/g5/how-to/root-how-to-root-moto-g5-easy-lineageos-t3626601

Downloads :

Latest build(by ektus): https://www.dropbox.com/scl/fi/rl7s...dric.zip?rlkey=6n560eu4java3g8vryrxo83ix&dl=1

Google Apps: http://opengapps.org/

Source Code:

LineageOS Source: https://github.com/LineageOS

Device Tree: https://github.com/Wzedlare/android_device_motorola_cedric

Kernel Source: https://github.com/Wzedlare/android_kernel_motorola_msm8937

Vendor Blobs: https://github.com/Wzedlare/android_vendor_motorola_cedric

XDA:Rom Information

LineageOS 14.1,cedric, ROM for the Moto G5

Contributors

wzedlare, vache, CodeZero, ektus

ROM OS Version: 7.1.x Nougat

Version Information

Status: Stable

Created 2017-05-25

Last Updated 2023-09-10
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] EypCnn:
Thank You :victory:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ataberkozen:
Good work,thanks.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ndrewlambe:
Thank you so much, great work.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] vvaibhavv:
Wow!!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PepinoSelvagem:
Fingerprint is working? Or have some issues?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
It is not working at all.I am working on fingerprint bug.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Wiiiiiiiiiiiii I'm so happy now!!!! Great work!

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
New build:

- Fingerprint is fixed
- Switched to .dat system
- Lowered dpi to 440
- Unknown model number is fixed
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Wow that was fast!

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rophaq:
Great , cheers man .

Will try it , when back up of original ROM in twrp .

Has anyone restored a backup from twrp ??

If it works , will definitely flash it when I get time.

Cheers
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Does the moto assist actions work in this rom ??
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] adrian1234a:
RR Rom coming soon...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
I am still working on it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
New build.

- Fingerprint Gestures(Moto Assist Actions) are now working.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] helmer1977:
https://www.androidfilehost.com/?fid=889764386195901715 rom xpe, cedrid
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PepinoSelvagem:
Safetynet is not working and magisk 12 lose root acess
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] astmacca:
Great effort guys and good to see ROM alternatives starting to appear. :)

Just to push my own interests. :) Does this ROM handle dual SIM at all and has anyone in Oz tried to out for that??
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] pata_333:
Hello, is there any way to hide navigation bar and only use the fingerprint sensor to navigate?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] motafoca!:
OMG!

Thanks a lot, dev! I'll test here :D
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Confirmed

App opens but has no effect on audio

Edit

The equaliser in poweramp app (playstore) works for those who want a temp work around for controlling music fx
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sjau:
And whats wrong with using sideload?

Anyway, after restoring original firmware, running through all the processes again it worked. Somewhere, something was wrong before.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Nothing wrong with it - was just trying to eliminate other device involvment in problem solving
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sjau:
Thanks for all the help. LO 14.1 runs fine as far as I've seen :)

Only thing is: when will this be an official release so that integreated updater and check can be used? :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
The op once happy all the major bugs are sorted can submit it to lineageos to request official support
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
I have to make sure this rom runs without any problems at first.Then, I might submit this device for official support.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Thanks

Hello, Today I installed your ROM and it went almost as a breeze. Thanks for your good work. Also the support with the youtube videos from the Android Doctor on Cedric and the people helping with TWRP were greatly appreciated.

All functions I use (quite basic user) seem to work fine.

Only one follow-up questions remains in my mind: You publish regular updates as I can see, what is the script for updating to one of your newer releases? Do I have to do a factory reset? Your clarification would be appreciated.

Thanks again.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
I just manually compile and uplaod to google drive.You have to just flash new update and gapps over the old rom.No need to wipe.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Awesome! AudioFX is working, no stuttering when playing video on my XT 1676 .This rom is really coming together!

Just one last thing I need to fix. I have formatted a SD card as external. I can navigate to the SD card make files etc. The problem is I cant get the camera to save media to the external SD. Same with saving files I download with browser. I am using gapps stock if that matters.

Anybody know how to fix this?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] oxxo.andatti:
Test

Error copying a file to the computer
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] eshan419:
On power up every time my mobile goes to recovery mode.

Also it takes 2 to 5 minutes for normal uses.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Reflash rom

Mark sure you format system data cache before flashing

You might want to format internal storage too but obviously put the rom zip on sd card else you will delete it

Flash gapps and root zip after flashing rom zip

Wipe cache and restart

If all else fails flash stock rom and start from scratch
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sjau:
There is one issue I have. It seems not to be a problem of your build but a problem of LineageOS in general.

Currently I have a OnePlus One, Galaxy Tab 10.5 LTE, Moto G5 and Nexus 6. All have latest un/official nightly LineageOS.

However, on none of those devices hotspot is working properly.

I can enable hotspot functionality on one of the devices and the others actually do see that wifi. Upon trying to connect to it, they always get stuck at "Obtaining IP address..." and then they fail.

Also, if I enable hotspot on those devices, I can't connect to those wlan by computers and notebooks either. Always fails at obtaining ip address.

Since I have that issue on multiple devices I tend to think it's an issue with LineageOS....
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I will pm you the solution

Edit pm sent
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
New build.Changelog:

- Switched to "Enforcing" SELinux.
- Fixed rear camera's not working on 3rd party apps issue.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
Follow-up question>

Appreciate your quick reply.

I am not a real expert in this update flashing (my previous device was already on official LOS with associated update functionality):

Does this mean that with the new flash my apps and -settings are gone or are they carried into the new version? Should/could I do something to ensure that these apps and -settings stay in place?

Thanks in advance for advice.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
If you want to update and not lose your apps/data do not wipe anything but the cache. Install the new LOS and gapps and root if you need it over the old one. Then it is a good idea to wipe the cache. When you reboot you should see that LOS is updating and everything is as it was but just updated.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
No need to reflash gapps or su zip after flashing rom update

Gapps and su zip only need flashing the first time you install rom - unless you wish to update these with an updated zip version but these apps are updated via the playstore & you could integrate them into system if you wanted to save space with an app like link2sd
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hly17_7:
worked perfect

Dear Onryo and TheFixitMan, thanks for the advise, worked as clockwork. Probably could be included as tip on the first page of this thread for other (less experienced) users as mine.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
How do I install weather QS tile for the navigation bar?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] lazasanchez1:
i really want to install this rom, but i don´t know if it´s worth to root my phone and lose the guarantee, what do you think people?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Depending in what country you are in you may or may not void warranty

For example in the UK rooting your phone doesn't void warranty unless what you do to your phone eg install custom firmware is the direct cause of phone failure - if a hardware problem like the charging port fails this has nothing to do with you modding the phone you should still have it repaired under warranty although it may need putting back to stock before they will carry it out

Different rules apply in different countries & even in the ones where you won't void warranty manufacturers may play hard ball

Companies in the UK can't sell phones that have had their bootloaders unlocked so if you want to take it to cash converters In a few years you're out of luck - but there's always ebay

At the end of the day totally your choice
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] lazasanchez1:
thanks alot, i'm from México, i don't know the rules applied here, but I been trought all the moto g devices (g1, g2, g3, g4) and I rooted and installed custom roms in all, but i'm doubtful about this one :confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
It's same process as moto g4 - if you did that you know how to do this
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Confirmed audio fx now working as of 30th June build
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Can confirm that I (XT 1676) have the "weird bug" where files cannot be dragged to a PC but can be dragged to the G5 from a PC.

Anybody know how to get files from the camera and Chrome to use the external SD card to save? The SD is formatted as external and I can use Solid Explorer to navigate the SD.

Awesome work on this ROM.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Opera camera app

Tap 3 horizontal line button at top left of screen

Select storage

Select sd card

I haven't got chrome installed so can't look but check its settings
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I have found a way to boost the sound volume and quality of audio

I'll post a guide in the themes and app section sometime over the weekend
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Is this ROM using Camera2 API ? Seems some camera functionality is gone.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] eshan419:
yes it's working fine on my device....

i have some issue with fm player , because sound level is not constants evenif no motion.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
For those who want louder clearer sound see my thread

https://xdaforums.com/g5/themes/mod-viper4android-audio-mod-louder-t3630327?goto=newpost

Iv tested it on this rom

Please keep comments about it in that thread & not here
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
I wrote a guild on how to tap into your camera. Turns out the camera does not suck as much as I thought.

RAW, Video Stabilization, slow motion etc

https://xdaforums.com/g5/how-to/howto-enable-raw-video-stabilization-t3630497/post72876253#post72876253
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] KawaiiNeko:
Is there a reason this isn't enabled in the ROM already?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I tried it and it broke the camera app so it shouldn't be included even if it works with 3rd party apps
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
I see that the camera was dropped into a wrapper on the June 30th release.

https://github.com/Wzedlare/android...mmit/277d61020bc513f623c3c078d807a26d2c1983d5

Not sure why a wrapper was used. The Camera2 API replaces the deprecated Camera class since Android 5. It is vastly superior.

https://developer.android.com/reference/android/hardware/camera2/package-summary.html

A wrapper acts as a sort of "abstraction bag" that does not expose the device/code inside of it. Usually this is done to make a "one fits all" or to mitigate some issue. Looking at overlay/packages/apps/Snap/res/values/qcomstrings.xml in the <resources> tag it seems that each function needs to be specified. Not a lot going on there.

Anyway I have reverted that commit on my phone as it did not have any issues before the camera got wrapped.

Here are a few screenshots from my phones support. Looks good!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Well, rear camera is broken on 3rd party apps(on some users) unless I use the camera wrapper.I have to use it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Hmmm, I am also going to guess a hardware variation. For once I am on the happy side of the street with crap vs good hw =D

You think you could make a patch.zip for the users that do not have the "3ed party broken" issue. You already know this but I am thinking just leave the wrapper there and not use it by changing line 112 in device.mk from Snap to Camera2. I reverted the entire commit but that is prolly not needed.

Opens the door for a ton of camera apps that need the Camera2 API. With some apps I am doing slow-motion video at about 150 fps. In Open Camera I can shoot RAW and have image stabilization.

Awesome job with this ROM! =D

Thx tons and keep up the good work :highfive:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DemonICOLI:
Hey!

First of all Thank for all your awesome work.

I would like to ask if you think that it is possible to compile Lineage OS 13.x for the Moto G5 using your patches? I really like Nougat, but I miss Xposed a lot.

Thanks and Sorry for my English :silly:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Lol, this device started with nougat.I think xposed will be available for nougat sooner or later.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
That is a good question. There are a lot of stuff with cheap phones that does not make sense. Modern APIs not being used etc. Cargo cult programming ambiguous code is dirt cheap, fast and easy. Manufacturers can't be bothered and just want support for as much cheap hw as possible. Everything works with legacy and 32bit stuff.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] web123:
Sorry for my poor English (I'm French).

I mostly want to thank all the people that get Lineage OS running on Moto G5. And of course the guys behind Lineage OS.

I was a longtime user of Blackberry OS and very happy with it. But since this OS is nearly dead today, I switch to Android. I buy a Moto G5 some days ago and I was disappointed. Perhaps I don't take enough time to appreciate it. Anyway, I read a lot of pages of this forum and installed Lineage (beta). Things are looking good now. Thanks !

For the record :

XT1676, 3Go Ram (buy in Spain, only 2Go in France), (édit) 2 sim cards

I do everything with the package android-tools (version : 20160327git3761365735de ; for adb & fastboot) provided with Fedora Linux 25. No problem.

I have a little question. I unlock my phone and at the bootloader screen I get as expected :

flash_unlocked

Software status: Modified​

Sometime later, and today, I get :

flash_unlocked

Software status : Official​

I run Lineage and the recovery partition has TWRP. How is that possible ? More importantly, should I care ?

With Lineage the "system" partition is useless. How can I get back the space of this partition ? I think it's a common concern, a pointer/url with some information on how to do this will be appreciate.

Many thanks !
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
You can't get the system reserved storage.. with lineage installed it doesn't mean that your system partition is useless.. the lineage is installed in the system partition so you can't get the reserved storage anyways..

Hope this helps!

Cheers!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] web123:
It seems I misinterpreted something. I don't remember why, I was thinking the system partition was for the stock firmware. My bad.

Thanks !
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] tjMF6:
Hi together,

first: this Rom is awsome! Runs perfectly on my MotoG5 (XT1676).

I had the MotoG (2013-falcon) bevore. I remeber, that LineageOS changed the size of the system partition in order to make the "internal data" partition bigger.

(example 1000MB for System Partition - 900 is needed - and the rest of 2500MB goes to internal data)

Perhaps this is possible too, when flashing this rom? (new installation)

Regards
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
As far as I know, lineage does not change your partition sizes.To access system part, just mount it in mount section.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] web123:
Probably. Here my system partition size is 3456 MiB, only 26 % is used.

The system partition is used, it is mounted when Lineage is booted.

I get where my confusion come from. In Settings -> Storage the stock firmware shows details only of the data partition (10 GiB). However Lineage shows the total for system AND data. So in a fresh install 1 GiB of 10 GiB is used (data partition only) with the stock firmware while around 4 GiB (I don't remember exactly) of 13,5 GiB (show 14,56 GB) is used with lineage. I did not check the total size and so did not see I was comparing orange with apple.

The partition size of date did not change with the installation of lineage, it has to be the same for the system partition.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Haptic feedback for fingerprint gestures is not working for everyone?

Enviado desde mi Moto G5 mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
For the resize of any partition the entire partition needs to be erased.. So if your data partition were to be increased or decreased, your entire data including files on internal storage would be wiped.

10Gb is provided as the data partition and since lineage being a custom ROM it includes both of them. Showing as 14.56 GB but in stock the storage shown is purely data partition.

---------- Post added at 07:33 PM ---------- Previous post was at 07:30 PM ----------

Nope...

Does not in the Indian Amazon Prime Exclusive variant (XT1677) atleast..
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Nope not on my phone. Looks like it was reverted

https://github.com/Wzedlare/android...mmit/4701de4f8655c04d57a59e57f9cc9b378d78cced

Have a feeling though looking at the last commits that a lot of issues will be fixed soon. :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Works for me - it vibrates when unlock with fingerprint sensor if that's what you mean
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] onryo:
Yes that works for me too. I set up my touch pad to work like the the original Moto G5 with left right swiping. I might be wrong but I thought that gave some feedback.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Oh OK - never tried it on stock but I can confirm it doesn't vibrate with any gesture in this rom except tapping to power on

Don't know if it does in stock or not

Edit - that was referring to fingerprint gestures

Motion gestures like chop to turn on flash light do cause a vibration

Motion gestures test

Shake to activate camera - doesn't work

Chop to activate flashlight - works

Flip to do not disturb - works

If others want to test wave to silence as Iv only one phone
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I can now confirm there is an MTP file transferring bug but its not rom related - its pc operating system related

You can't transfer files from sd card to pc

You can transfer from pc to sd card though

This appears to be a windows only bug as it worked fine when I tested it in Ubuntu

Heres how I fixed mine

Remove usb cable from phone/pc

In/Re-install the moto g5 drivers

https://xdaforums.com/showpost.php?p=59139823&postcount=2

Connect phone to pc

If your phone set to enable adb debugging it should pop up with a message about accepting connection from pc

Click box to always accept from this pc

Change connection type in status bar to file transfer

Enable usb debugging in dev options in phone settings if it still doesn't work but since mine was already enabled I don't know if it will make any difference

(if dev options are hidden in settings goto about phone and tap build untill it say you are a developer)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
[MENTION=6810779]wzedlare[/MENTION]

I was doing a logcat (nothing about the rom just an app im looking into)

but I did find an error in the rom that occurs alot if you want to look into it

V/FingerprintService ]
handleError(client=com.android.systemui, error = 5)