[G4 Android Development] ThePiGuy:
Introduction

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

Requirements

Your device need to be unlocked either officially (h815 international or h811) or by UsU

Your bootloader stack should be on

MM 20p (20x for H811) or higher!

(see FAQ #20 for how to upgrade your bootloader stack).

.... and for your convenience I have even created TWRP flashable files for that here

in particular that means this thread is for:

F500 (UsU'd)

H810 (UsU'd)

H811

H812 (UsU'd)

H815 (official unlocked or UsU'd)

H819 (UsU'd)

LS991 (UsU'd)

US991 (UsU'd)

VS986 (UsU'd)

Latest TWRP - PREVIEW build: click

Do a full Nandroid backup before doing anything!

Installation Instructions

This single very first step is for

UsU'd

devices only:

If you have ever flashed the UsU baseband package: Clean flash the modem partition from your backup in TWRP.

If you do not know if you ever flashed it simply flash your modem partition again and you can be sure. This can't do any harm.

If you have no backup:

- TWRP flashable MM modems (N might not work)

Full clean install as described here (FAQ "#2") is highly recommended. DO NOT REPORT ISSUES when you have skipped that step!

Flash LOS

Optional: Flash GApps (

8.1 - ARM64

for LOS 15.1,

7.1 - ARM64

for LOS 14.1) if you like

Optional (if you want root): Flash the official LOS root-addon (addonsu-15.1-arm64-signed.zip or addonsu-14.1-arm64-signed.zip) or Magisk (do not report issues if you have Magisk installed though!)

Boot (will take a bit on first boot!!!)

Enjoy

For more detailed instructions, please see my website (thepiguy0.github.io/installing)

Update Instructions

To update from a previous version of my rom:

If it is an old version of the rom, it is recommended to do a clean flash - Be aware that your data will be deleted

If it is a relatively recent version, a dirty flash should be ok - wipe cache and dalvik cache and then flash on top of your current installation - This keeps all your files

Current Issues

For a current list of all issues including possible workarounds:

Open issues

Issues with workarounds available

Summary (again check out the above linked issue tracker for a current state):

Bluetooth calling FIXED!

Flashlight icon on quick toggles FIXED!

SIM pin unlocking (Ril works, better to use an unlocked sim card for now) FIXED!

Magisk when encrypted - state UNKNOWN

Permissive SELinux FIXED!

Probably more undiscovered bugs

Downloads

Get the latest builds from steadfasterX's server

Get the legacy builds from my Google drive

Building from source

If you want to build this from source, follow the LG H815 build guide (replace H815 with H811 if needed). Immediately before the "repo sync" step, copy our local manifest (https://github.com/Suicide-Squirrel/local_manifests/blob/los-15.1/roomservice.xml) into the .repo/local_manifests/ folder. Now run repo sync.

Then miss out breakfast and proprietary files steps before continuing with Jack memory optimisations

Changelog

Go through the results here: click

older ones click here:

20/05/2018

WiFi Hotspot is now fixed

H811 audio is fixed

More audio enhancements behind the scenes

Increased performance in Titan Kernel

28/04/2018

Audio is now fully working (with the exception of bluetooth calling)

Camera and screen recorder are now both fully fixed and work

Latest Lineage and Titan updates

FAQ

Will be added as the time goes.

Credits

@kessaras, @steadfasterX and the LineageOS team

Sources

Lineage source code - https://github.com/LineageOS/

Device trees and kernel (forked from cypheros) - https://github.com/suicide-squirrel/

Proprietary files - https://github.com/CypherOS/

PREVIOUS OP (for historical reasons)

Introduction

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

Requirements

LG G4 H815/H811

Latest MM firmware for H811 and latest Nougat/MM firmware for H815

Latest official TWRP or the latest TWRP preview from steadfasterX's server - This prevents the error 7 from appearing

For UsU devices, follow [MENTION=5545101]steadfasterX[/MENTION]'s instructions for TWRP

Installation Instructions

Download appropriate zip for your device along with any additional modules such as gapps (arm64 android 8.1 needed)

Recommended - Create a full nandroid backup to allow you to restore to your previous OS if needed

Wipe system, data, cache and dalvik cache - Be aware that this WILL remove your currently installed OS and wipe your apps and most data

Flash the lineage zip, followed immediately by gapps if applicable

Reboot into system and wait for boot

For more detailed instructions, please see my website (thepiguy0.github.io/installing)

Update Instructions

To update from a previous version of my rom:

If it is an old version of the rom, it is recommended to do a clean flash - Be aware that your data will be deleted

If it is a relatively recent version, a dirty flash should be ok - wipe cache and dalvik cache and then flash on top of your current installation - This keeps all your files

Current Issues

For a current list of all issues including possible workarounds:

Open issues

Issues with workarounds available

Summary (again check out the above linked issue tracker for a current state):

Bluetooth calling

Flashlight icon on quick toggles

SIM pin unlocking (Ril works, better to use an unlocked sim card for now)

Magisk when encrypted

Permissive SELinux

Probably more undiscovered bugs

Downloads

Get the latest builds from steadfasterX's server

Get the legacy builds from my Google drive

Building from source

If you want to build this from source, follow the LG H815 build guide (replace H815 with H811 if needed). Immediately before the "repo sync" step, copy our local manifest (https://github.com/Suicide-Squirrel/local_manifests/blob/los-15.1/roomservice.xml) into the .repo/local_manifests/ folder. Now run repo sync.

Then miss out breakfast and proprietary files steps before continuing with Jack memory optimisations

Changelog

20/05/2018

WiFi Hotspot is now fixed

H811 audio is fixed

More audio enhancements behind the scenes

Increased performance in Titan Kernel

28/04/2018

Audio is now fully working (with the exception of bluetooth calling)

Camera and screen recorder are now both fully fixed and work

Latest Lineage and Titan updates

FAQ

Will be added as the time goes.

Credits

@kessaras, @steadfasterX and the LineageOS team

Sources

Lineage source code - https://github.com/LineageOS/

Device trees and kernel (forked from cypheros) - https://github.com/suicide-squirrel/

Proprietary files - https://github.com/CypherOS/

XDA:DevDB Information

LineageOS 14.1/15.1 for LG G4, ROM for the LG G4

Contributors

ThePiGuy, steadfasterX, kessaras, berkantkz and LineageOS

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

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.10.x

ROM Firmware Required: v20 (or higher for H815) bootloader and modem

Based On: Lineage OS

Version Information

Status: Stable

Current Beta Version: 20180428

Beta Release Date: 2018-04-28

Created 2018-04-26

Last Updated 2019-12-22