[ROM][UNOFFICIAL][montana][9.0.0_r46] LineageOS 16.0


Senior Member
Oct 16, 2018

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

  • Download the latest build, official TWRP (3.4.0 and newer) and GApps (if you need them)
  • Flash the downloaded TWRP via fastboot
  • Boot to recovery
  • Format system, vendor, data, cache, and dalvik cache
  • Reboot to recovery
  • Flash the latest build
  • Reboot to recovery
  • Flash GApps and any other necessary add-ons

Note: Long first boot times are normal due to forced encryption. Please do not reboot your device when it is booting up the first time, instead wait patiently. If it takes more than 10 minutes to boot then please notify me here with a logcat.

What's working:
  • WiFi
  • Camera and Camcorder
  • Bluetooth
  • NFC
  • Fingerprint - Oreo firmware required
  • GPS
  • OTG
  • Video Playback
  • Audio
  • RIL
  • VoLTE/VoWiFi
  • USB tethering/audio
  • SELinux: Enforcing

Known issues:
  • You tell me

  • 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--
 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:
@GivFNZ for testing my builds
@wiktorek140, @karthick mostwanted, @wh0dat, @KalilDev, @AsD Monio, @GoldeneyeS2, @Steve Mathew Joy and @rajatgupta1998 for their hard work on our device sources
LineageOS team


Added support for Color profiles (Settings > Display > Colors)
Fixed an issue where you couldn't connect to certain Wi-Fi networks
Fixed offline charging
Fixed bootloop when enabling secure startup
Fixed dual SIM menu not appearing
Mobile data settings now only displays 3 modes (LTE, 3G and 2G)
September security patch

First stable release of LineageOS 16.0
SELinux: Enforcing
Widevine level is now L1
OTA updates
Minor tweaks and bug fixes

Fixed an issue where the navigation bar would not disable respective to the toggle in Settings

Fixed an issue where some applications on the Google Play Store were listed as incompatible with the device
Fixed an issue where Moto Camera was unable to be updated from the Google Play Store
August security patches

Improved overall stability and performance
Updated blobs from deen_sprout (Moto One) and tissot_sprout (Xiaomi Mi A1)
Fixed a crash that happened while taking photos when recording videos
Included Moto Camera instead of Snap - has slow-motion, supports front flash properly
Updated camera and fingerprint blobs from stock OPPS28.65-37-7-12
Now we are mounting system as root (/system at /)
Now we verify vendor, so make sure not to tamper with it
Updated kernel with recent CAF tags merged
June security patches

Enforced VNDK linker namespace isolation.

January security patch

Fixed NFC on XT1793/4 (thanks to @CypherNoodle for helping me)
Fixed compass on XT1790/1
Fixed "There's a problem with your device." error (thanks to @wiktorek140)
Fixed MTP (thanks to @Sohamlad7)

Thanks to @Giv314, @CypherNoodle and @wiktorek140 for testing this build!

New tree
Updated lots of blobs
Fixed encryption
November security patch

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
Enabled vibrating for "Flip for DND" action
Made default Hotspot name "Moto G5S"
Enforced privileged apps permissions
Kernel upstreamed to match some changes at CAF

If you're coming from an update before v0.11, please flash https://github.com/MontanaDevelopment/releases/releases/download/LOS16-12/lineage-migration-unsigned.zip before booting this update.

July security patch (for real).
Fixed Hotspot.

Project Treble support! Thanks a lot to [user=6879971]@AsD Monio[/user] for his commits
July security patch
Other LineageOS source updates

June security patch.
LineageOS source updates.
Updated device sources from CAF.
Removed useless blobs.
Fixed VoLTE.
Added zram support for Moto G5S' with 4GB of RAM.
Fixed video recording on Snap and switched to Snap.
Lowered minimum brightness.
Some audio optimizations.
Fixed call recording.
Kernel compiled with clang.
Smoothened vibrations.
Updated media configs.
Enforced Oreo bootloader.

Fixed Wi-Fi Display (Miracast).
Removed NFC stuff on XT1795s.
Upstreamed kernel to 3.18.140.
Fixed Moto Actions crash (only affects select handsets).
Removed DTV (Digital TV) as none of our handsets support it (as far as I am aware of).
Addressed some denials.

Fixed encryption.
May security patch.
Changed from LTE icon to 4G.
Device model now includes Moto G5S.
Fixed some SEPolicies (thanks [user=6879971]@AsD Monio[/user]).
Upstreamed kernel to 3.18.139.
Android 9.0.0_r35 --> Android 9.0.0_r37.

First signed build.
Fixed low audio bug
Fixed navigation bar toggle (is now there in Settings > System > Buttons)
Add correct HAL1 packagelist for fixing certain apps with HAL3 enabled
Updated blobs
OTA updates should work now.

Use [url]https://github.com/montanadevelopment/releases/releases/download/LOS16-6/lineage-migration-signed.zip[/url] to migrate from unsigned to signed builds (flash after flashing ROM)

Fixed front flash & USB tethering. Thanks to @wiktorek140

Bundled Open Camera instead of Snap.
Disabled Camera2 API (HAL3) and EIS by default.
These changes fix video recording, once and for all.
Native support for repaired "tianma" kernels.

Upstreamed kernel to 3.18.138 from 3.18.113
Updated GPS, DRM, encryption blobs
Support for LiveDisplay 2.0
WiFi calling in supported countries
Oh and April security patch ofc

Fix broken recording on stock camera.
Enabled Camera2 API and EIS by default. Blacklisted stock and Moto Camera app for compatibility.

Initial release.

Source code:

XDA:DevDB Information
LineageOS 16.0 for Moto G5S, ROM for the Moto G5S

JarlPenguin, AsD Monio, wiktorek140, GivFNZ, karthick mostwanted, wh0dat, rajatgupta1998
Source Code: https://github.com/LineageOS

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: Oreo
Based On: CyanogenMod/AOSP

Version Information
Status: Stable
Current Stable Version: 1.1
Stable Release Date: 2020-08-24
Current Beta Version: 1.0b3
Beta Release Date: 2019-03-15

Created 2019-03-15
Last Updated 2020-09-18
Last edited:


Feb 21, 2019
Will you attempt to fix the camcorder? In all Pie roms I've tested so far the camcorder works very inconsistent, in all camera apps. Footej, gcam, moto camera, open camera all sometimes just break and stop saving the clips and require a reboot to work again. No problems in Oreo roms at all.


Senior Member
Oct 16, 2018
Will you attempt to fix the camcorder? In all Pie roms I've tested so far the camcorder works very inconsistent, in all camera apps. Footej, gcam, moto camera, open camera all sometimes just break and stop saving the clips and require a reboot to work again. No problems in Oreo roms at all.
Hey, have you tried disabling C2API (which includes uninstalling some modules such as Pix3lify, etc.)? I've heard Camcorder works fine if you do disable it, but you will need to install a 3rd party camera app.
  • Like
Reactions: vaserbanix

Jeison Parra

Jan 16, 2018
I install it?

it will be worth trying it I like lineage OS but I do not want to have serious errors in the device, the camera can fix it, it will be that it has some other problem or everything is fine


Senior Member
Nov 22, 2013
Thank you! Are ROM and OTA the same build? I'm installing this ROM for the first time, so I should install the ROM zip, right? I assume the OTA zip is the same build for those who already had the first build installed.
Yes consider new build everything, and if you are coming from other Rom than need a full format data partition. Please save your data first..


Senior Member
Aug 25, 2014
Thank you very much for the work and the effort. It is a great ROM. Fm works, camera works properly, netflix works without needing to install fix. Finally the duration of the battery is considerably better than in other pie roms


Feb 23, 2019
Im using PE with encryption. How can I install encryption disabler and which pack should flash along with LO16 ROM ?
please help