[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
​

#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/

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.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

Instructions:

Download the latest build, official TWRP (3.3.0 and newer) and GApps (if you need them)

Flash the downloaded TWRP via fastboot

Boot to recovery

Flash the latest build

Flash GApps and any other necessary add-ons

What's working:

Bluetooth

WiFi

Camera and Camcorder

Bluetooth

NFC

Fingerprint - Oreo firmware required

GPS

OTG

Video Playback

Audio

RIL

VoLTE

SELinux: Enforcing

USB tethering/audio

Front flash

Known issues:

You tell me

Downloads:

Unofficial builds: GitHub

Recovery: Official TWRP

Google Apps: OpenGApps (nano package is advisable, but you definitely should avoid using stock/super packages)

Reporting Bugs

All bugs should be reported here: Issue Tracker

DO NOT Report bugs if you're running a custom kernel or you installed Xposed

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.)

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)

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

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

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

Did you--
wipe:
restore 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:

Thanks to:

[MENTION=7735163]KalilDev[/MENTION], [MENTION=6879971]AsD Monio[/MENTION], [MENTION=7376763]GoldeneyeS2[/MENTION], [MENTION=9101947]Steve Mathew Joy[/MENTION], [MENTION=6324159]rajatgupta1998[/MENTION] for their hard work on our device sources

LineageOS team

Changelogs:

2019-11-18:
November security patch.
Reverted camera blobs update due to issues caused by it.

2019-10-20:
October security patch.
Updated camera blobs from stock
Updated fingerprint blobs from stock
Updated audio blobs from stock
Got rid of custom VSYNC offsets, test display flickering in low brightness
Added permissions for HotwordEnrollment
Nuked unneeded blobs

2019-09-23:
September security patch
Optimized SEPolicy
Fixed MTP (thanks to @wiktorek140)
We're back to LTE

2019-08-12:
August security patch
New tree
Updated offline charging blobs
Updated fingerprint blobs
Updated perf configs
Disabled OTA
Added vector icons for Ambient Display and Fingerprint gestures in Moto Actions
Enforced Oreo bootloader
Enabled vibrating for "Flip for DND" action
Increased in-call volume
Smoothed vibrations
Made default Hotspot name "Moto G5S"
Enforced privileged apps permissions
Kernel upstreamed to match some changes at CAF
Kernel compiled with clang

If you're coming from 1.2/1.3 (2019-04-29 or 2019-05-22), please flash https://github.com/MontanaDevelopment/releases/releases/download/LOS15.1-1.2/lineage-migration-unsigned.zip before booting this update.

2019-05-22:
Device name is "Moto G5S" now
Show 4G instead of LTE
Allow disabling notification LED (haven't tested)

2019-04-29:
Upstreamed kernel to 3.18.139 from 3.18.138 (Thanks @wiktorek140)
First signed build.
OTA updates will work now.
Updated device fingerprint to stock Oreo. Still no cts yet, probably will never happen.

Use https://github.com/montanadevelopment/releases/releases/download/LOS15.1-1.2/lineage-migration-signed.zip to migrate from unsigned to signed builds (flash after flashing ROM).

2019-04-26:
Dropped cnss daemon.
Initial severely limited OTA support.
Upstreamed kernel to 3.18.138 from 3.18.117. Thanks to @wiktorek140
Updated camera drivers. Thanks to @wiktorek140
(For real) Removed Moto Camera.

2019-04-23:
Fix front flash and USB tethering. Thanks to @wiktorek140
Fix camera once and for all.

2019-04-16 (2nd build):
Included Moto Camera instead of Snap.

2019-04-16
Fixed video recording (partially) by disabling Camera2 API and EIS.
In the next build Moto Camera will be included.

2019-04-12
Upstreamed Linux kernel to 3.18.117 from 3.18.113
Included native support for repaired "tianma" screens.
April security patch.
Updated fingerprint firmware to Oreo.

2019-03-16
Enabled Camera2 API and EIS by default. Blacklisted stock and Moto Camera app for compatibility.

2019-03-15
Enabled software navbar by default.
Update device fingerprint to February security patch (from stock).

2019-03-11
March security patch!
Disabled Camera2API and EIS by default.
Update device fingerprint to Oreo, SafetyNet basicIntegrity should pass.

2019-03-03
Change kernel back to GoldeneyeS2's.

2019-02-27
Change kernel to vaserbanix's kernel.

2019-02-23
Enabled EIS for stabilization.

2019-02-21
Fixed USB Audio.
Removed Moto Camera.

2019-02-20
Enabled Camera2API (HAL3) by default.

2019-02-19
Initial release.

Source code:

Common device tree: https://github.com/moto-msm8937-common/android_device_motorola_msm8937-common

Device tree: https://github.com/moto-msm8937-common/android_device_motorola_montana

Kernel: https://github.com/moto-msm8937-common/android_kernel_motorola_msm8937

XDA:DevDB Information

LineageOS 15.1 for Moto G5S, ROM for the Moto G5S

Contributors

JarlPenguin, AsD Monio, rajatgupta1998, wiktorek140, GoldeneyeS2, zahidm, Steve Mathew Joy

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

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.x

ROM Firmware Required: Oreo

Based On: CyanogenMod/AOSP

Version Information

Status: Stable

Current Stable Version: 1.5

Stable Release Date: 2019-04-24

Current Beta Version: 0.12

Beta Release Date: 2019-02-19

Created 2019-02-19

Last Updated 2019-12-05