[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] CodeZero:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* 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.
*/

About LineageOS

LineageOS is a free, community built, aftermarket firmware distribution of Android 10, 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. You can also view the Changelog for a full list of changes & features.​

Warning!!!

BackUp EFS and persist partition before installing. If you lose IMEI , use this backup to retrieve it in future.

What's working :

Boots

RIL (Calls, SMS, Data)

Fingerprint

Wi-Fi

Bluetooth

Camera

Camcorder

Video Playback

FM Radio

Audio

Sensors

Flash

LED

GPS

Volte

MTP

Usb tethering

Encryption

WFD

What's not working :

Camera green tint bug in low light

You tell me.

Flashing and updating

LineageOS clean install :

- Mandatory to flash 64bit recovery

- (Optional) Wipe the data & cache & system(Backup to make sure not to loose data)

- Flash the LineageOS ROM zip from the Recovery

- (Optional) Flash the GApps to have the Google Applications

- (Optional) Every additional zip you want to flash

- Reboot

LineageOS update / upgrade :

- Mandatory to flash 64bit recovery

- (Information) Don't wipe anything unless you want to

- Nothing to wipe when switching

- (FUTURE RELEASES) Might need clean, informations will be updated

- Flash the latest LineageOS ROM zip from the Recovery

- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes

- (Optional) Every additional zip you want to flash

- Reboot

Downloads Links

LineageOS 17.x arm64(Unlocked Bootloader) :

Development : https://www.androidfilehost.com/?w=files&flid=303145

Google Applications (optional) :

OpenGapps : Link (Use packages for ARM64, Android 10.0)

Information : Flash the GApps before the first boot. If not, a clean flash is recommended.

Recovery Mandatory to flash for 64bits ROM :

Download Official TWRP : https://twrp.me/motorola/motorolamotog5.html​

About the builds

Device tree : https://github.com/Sohamlad7/android_device_motorola_cedric/commits/lineage-17.1

Kernel sources : https://github.com/Sohamlad7/android_kernel_motorola_msm8937/commits/lineage-17.1

Vendor blobs : https://github.com/Sohamlad7/android_vendor_motorola_cedric/commits/lineage-17.1
​

Reporting Bugs

DO NOT Report bugs if you're running a custom kernel, third party apps or you installed Xposed

DO NOT Report bugs if you've modifies system files

If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

adb logcat > logcat.txt

adb shell dmesg > dmesg.txt

If it is a random reboot, grab kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

adb shell cat /sys/fs/pstore/console-ramoops

If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

Bug report should be done in following format provided in code below

What is your
LineageOS version:
LineageOS Download url:
Gapps version:

Did you
wipe:
restored with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

Q&A - FAQ

LineageOS 17.0 arm64 Cedric Regular Questions and Answers : Q&A Thread​

Credits :

- The LineageOS Team

- Thanks to ROM that have been built on Legacy Server and also thanks to all the legacyserver member friends

- Special Thanks to @wzedlare @vache and @kubersharma without them it wouldn't have been possible for us to get Nougat,Oreo,Pie and now 10

- Thanks to @Theitfixer85 and @Jarl-Penguin for twrp

- Thanks to @m_vaisakh and @TeamMex for helping

- Thanks to @nonesovile96 @FelipeRizzon and @ADHILR

- Let me know if i missed anyone​

XDA:DevDB Information

LineageOS 17.1, ROM for the Moto G5

Contributors

CodeZero, m_vaisakh

ROM OS Version: Android 10

ROM Kernel: Linux 3.x

Based On: AOSP

Version Information

Status: Stable

Created 2019-12-14

Last Updated 2020-08-31