• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][UNOFFICIAL][montana][8.1.0_r52] LineageOS 15.1

Search This thread

JarlPenguin

Recognized Developer
Oct 16, 2018
984
880
Earth
github.com
Moto G5S
Moto G7
2okPze5.png

Code:
#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.

Code:
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:
@KalilDev, @AsD Monio, @GoldeneyeS2, @Steve Mathew Joy, @rajatgupta1998 for their hard work on our device sources
LineageOS team

Changelogs:

Code:
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:

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
 

Attachments

  • IMG_20190330_195950.jpg
    IMG_20190330_195950.jpg
    75.3 KB · Views: 2,824
  • IMG_20190330_195953.jpg
    IMG_20190330_195953.jpg
    65.9 KB · Views: 2,813
Last edited:

zahidm

Senior Member
Nov 22, 2013
1,685
1,216
Karachi
Moto X 2014
Moto G5S
Sorry for the ignorance, but... what's the difference between this LOS 15.1 ROM and @GoldeneyeS2 's build? Also, do you have any plans on porting LOS 16?
There are many many Plans, just wait man, you will have also LOS 16 for PIE, and these are not porting, they are developing by sources... Developers need to use a huge time to build one ROM and than fix things...
 

JarlPenguin

Recognized Developer
Oct 16, 2018
984
880
Earth
github.com
Moto G5S
Moto G7
Sorry for the ignorance, but... what's the difference between this LOS 15.1 ROM and @GoldeneyeS2 's build? Also, do you have any plans on porting LOS 16?

There are basically no differences, other than the fact that I removed Moto Camera and that it includes the February security patch. The only reason I'm continuing his ROM is so that people can benefit from Oreo's stability while still receiving monthly security updates.

And yes, I will be soon, unless AsdMonio decides to continue it.

Edit: + USB Audio works too!
 
Last edited:

xTanker

Member
Feb 6, 2012
25
3
Installed the rom and works fine so far, but missing the navigation bar. Is it intentionally disabled by default? I tried to look around the settings but can't find a way to enable it. When I try searching in settings it gives me results for the setting but when I click any of them it brings me to the menu where it's supposed to be, but it's not there.
 

zahidm

Senior Member
Nov 22, 2013
1,685
1,216
Karachi
Moto X 2014
Moto G5S
Installed the rom and works fine so far, but missing the navigation bar. Is it intentionally disabled by default? I tried to look around the settings but can't find a way to enable it. When I try searching in settings it gives me results for the setting but when I click any of them it brings me to the menu where it's supposed to be, but it's not there.
Go to buttons and toggle Navigation Bar
 

NeffePS

Member
Feb 21, 2019
10
2
Poland
Best rom for moto g5s in my opinion, everything works as expected, very fast and smooth, great battery life, from ~2,5h screen on time on stock to almost 5h, very big improvement, fingerprint works after firmware downgrade, ambient display works both on pick up and wave mode, only I'm having a problem with moto camera, it won't record video, keeps saying that another app uses the microphone but both footej camera and gcam record video just fine. Great rom, thanks!

EDIT: I rebooted my phone and moto camera has been working fine since then. Flawless rom, hands down the best.
 
Last edited:

xTanker

Member
Feb 6, 2012
25
3
Whenever I try to take a picture with Open Camera from Telegram, it freezes for about 15 seconds. Only the top 10% of the picture is visible in the preview, the rest is black. The image is saved properly though. Any idea why this happens?
 

Attachments

  • photo_2019-02-27_17-28-21.jpg
    photo_2019-02-27_17-28-21.jpg
    42.4 KB · Views: 196

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    2okPze5.png

    Code:
    #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.

    Code:
    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:
    @KalilDev, @AsD Monio, @GoldeneyeS2, @Steve Mathew Joy, @rajatgupta1998 for their hard work on our device sources
    LineageOS team

    Changelogs:

    Code:
    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:

    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
    5
    New build with November security patch is up! This release also contains some camera fixes.
    Changelog and download links, as always, are in the OP.
    Happy flashing!
    4
    I am very happy to say that this will be the first custom ROM to support the front flash! All thanks go to @wiktorek140!!!! He is a genius!!!
    3
    New build: - clean flash needed if coming from build older than 04-27
    https://drive.google.com/file/d/1n-pUS2_N9NzYt0Q6MAvLgXdparcfRxin/view?usp=drivesdk
    Changelog:
    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.