• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][H815][6.0|MM][UNOFFICIAL] Lineage OS 13.0 for LG G4

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113




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.

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.
You will need to provide your own Google Applications package (gapps).
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 our Gerrit Code Review. Your changelog is whatever was merged into gerrit.


Important information:

This thread is for unofficial LineageOS 13.0 builds for LG G4 model H815 only.
Its a continuation of the official one as it was abandoned back in July and I still prefer MM (N has still bugs and does not support encryption).

Known issues:

  • the kernel has security bugs which need to be addressed
  • its in testing state as I cant test it atm.. please report back! PLEASE MAKE A FULL BACKUP BEFORE TESTING!!


Installation:

First time flashing LineageOS 13.0 on your device, or coming from another ROM?
  1. Download the zip(s)
  2. Install latest TWRP from the official twrp.me website
  3. Perform a nandroid backup of your current ROM (optional but recommended)
  4. Wipe data/factory reset
  5. Flash LineageOS
  6. Optional: Install the Google Apps addon package, install the SU addon package(https://download.lineageos.org/extras, choose arm64)
  7. Reboot


Download:

Google Apps:
OpenGApps (choose arm64, 6.0, nano)

TWRP Recovery:
https://twrp.me/devices/lgg4.html

Full Stock ROMs:
H815 V20D

Bootloader:
Remember ---> Flashing bootloader is risky so you flash at your own risk!
H815 V20D

Modem:
H815 V20D

ROM:
Last known fully working is 20170813! Sorry have to fix the blobs first!
Nightlies: http://droid.binbash.it

Sources:

Android: https://github.com/LineageOS
Device: https://github.com/steadfasterX/los_android_device_lge_h815
Kernel: https://github.com/LineageOS/android_kernel_lge_msm8992
G4 common device tree: https://github.com/LineageOS/android_device_lge_g4-common
Proprietary files: https://github.com/TheMuppets/proprietary_vendor_lge


.



XDA:DevDB Information
lineage-13.0-unofficial, ROM for the LG G4

Contributors
steadfasterX, codeworkx, genesixxbf3
Source Code: https://github.com/steadfasterX/los_android_device_lge_h815

ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Bootloader unlocked, v20A (or greater) bootloader stack
Based On: LineageOS

Version Information
Status: Beta
Beta Release Date: 2017-08-21

Created 2017-08-21
Last Updated 2017-11-03
 
Last edited:

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
FAQ

1. Q: Encryption is not possible?
A: if the GUI for encrypting the device is not working:
Its highly recommended to backup all your data including the internal storage (I recommend FlashFire or / and Titanium)

Flash my screenlock fix (search here at XDA) in TWRP.
Reboot to android.
ensure that you met all usual requirements (battery, screen lock set) and then open a terminal or adb shell. Type:

vdc cryptfs enablecrypto inplace pin 1234

Replace 1234 with your desired pin ofc.




sfX
 
Last edited:

thewild

Senior Member
Jan 17, 2012
337
79
0
Hi steadfasterX !
Thanks for keeping this alive ! I'm still on an old 13.0 version, it runs fine ATM.
the kernel has security bugs which need to be addressed
Could you please be more precise on this ?
Where those bugs also in genesixx build, or are they specific to your build ?
Are these bugs LOS specific, or are they AOSP related ?

Thanks !
 

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
Hi steadfasterX !
Thanks for keeping this alive ! I'm still on an old 13.0 version, it runs fine ATM.

Could you please be more precise on this ?
Where those bugs also in genesixx build, or are they specific to your build ?
Are these bugs LOS specific, or are they AOSP related ?

Thanks !
its the same source then the official build (and so genessix) used so it should work the same way but as my device is broken atm and I await repair I cannot test it..
Last time I checked the security patches in my build got increased to July 2017 where the latest official ones had June..
so afaik there should be no critical issues in Android but the kernel is last time updated in May 2016 (should be the same for genessix builds).

My plan is maybe to integrate the Llama kernel and backport fixes from the 14.x tree.
don't expect that this happen in the near future (we can hope though) because atm I'm quite busy with my unofficial unlock stuff.




.
 
Last edited:

zeduck

Senior Member
Jan 19, 2011
175
57
28
Hi,
I can't make encryption work.
Can you write a procedure to use it with this ROM, please?

What I did:
- Install TWRP latest version
- Install latest nightly
- Remove gate keeper (using this)
- Launch encryption

What happened:
- Device reboot, display a green android on a black screen for a second, then reboot again try to boot on LineageOS but it froze after maybe a minute.
- I put off the battery and reboot the phone, that boot normally (data not encrypted but not corrupted either).

Thanks by advance
 

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
Hi,
I can't make encryption work.
Can you write a procedure to use it with this ROM, please?

What I did:
- Install TWRP latest version
- Install latest nightly
- Remove gate keeper (using this)
- Launch encryption

What happened:
- Device reboot, display a green android on a black screen for a second, then reboot again try to boot on LineageOS but it froze after maybe a minute.
- I put off the battery and reboot the phone, that boot normally (data not encrypted but not corrupted either).

Thanks by advance
thx for testing..

yea I rem that there was a "trick" .. Could you try this build pls: http://droid.binbash.it:58885/h815/lineage-13.0-20170912-UNOFFICIAL-h815.zip
It includes an insecure kernel which will allow to debug.
  • Factory Reset in TWRP
  • Flash in TWRP
  • Boot Android
  • Enable encryption
  • when it reboots open a terminal and type (linux or FWUL): while true; do adb logcat ;done
    on windows ensure that once the logcat aborts that you restart it immediately again!! and use just adb logcat
    if using windows or linux: ensure the terminal buffer is big enough bc thats a a lot to handle.. (go into the settings of the cmd or terminal and set it to a very high value. e.g. 5000000)
  • let it bootloop and boot into Android again (logcat should run all the time)
  • CTRL+C when its completed with the above
  • copy & paste the whole stuff in a text file and attach it here

sfX
 

zeduck

Senior Member
Jan 19, 2011
175
57
28
Are there any special modifications that would make it work?
Because I use this ROM as a daily driver and I would appreciate not to backup and reflash several times :p

If not, I will take the time to test this weekend.
 

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
Are there any special modifications that would make it work?
Because I use this ROM as a daily driver and I would appreciate not to backup and reflash several times :p

If not, I will take the time to test this weekend.
without logs I cannot say anything for sure...
It may can be solved by just typing the encrypt command over adb or it requires to modify the ROM..

If you like you can try the following but keep in mind that having a complete Backup is a good idea always and when I say complete I mean including internal storage which is not be backuped by TWRP!! Use e.g FlashFire app to accomplish this. I would take a TWRP backup for all (use my latest beta!!!) and then FlashFire to backup internal storage.

Encryption often fails to a wrong formatted data partition so this can be a reason as well.

Try this:

  1. Backup as described above
  2. In TWRP select wipe - advanced - press "Format data" button to format the data partition
  3. Boot android
  4. set a pin or password for the lock screen!
  5. Encrypt
  6. If succeeded restore backup with FlashFire

As always there is a risk and it requires some time so I would not recommend to do this on a busy day.. as you say at the weekend fe.


Then we can try to use the adb commands and if that doesn't work as well the logcat..


sfX

Sent from my LG-H815 using XDA Labs
 
Last edited:

breversa

Senior Member
Mar 21, 2012
331
91
28
Hi !

I gave a try with lineage-13.0-20170918-UNOFFICIAL-h815.zip that I dirty-flashed over my previous lineage-13.0-20170204-UNOFFICIAL-h815 version.

Everything went fine (I had to replace the su zip/app though), except that satellite location would not work (network location was fine) : I kept getting
Code:
QCOM PowerHAL : Failed to acquire lock.
in logcat.

I'll give another try with the latest lineage-13.0-20170927-UNOFFICIAL-h815.zip.
If that fails too, I guess I'll have to clean-flash it then.

EDIT :
Bad news : after a clean flash, I keep getting
Code:
QCOM PowerHAL : Failed to acquire lock.
in logcat.
 
Last edited:

Netsab

Senior Member
Aug 29, 2014
148
17
18
No GPS?! Kind of annoying bug... I'm still in 20170608 build and that news don't make me want to updated. I use GPS everyday, so this is very annoying
 

breversa

Senior Member
Mar 21, 2012
331
91
28
No GPS?! Kind of annoying bug... I'm still in 20170608 build and that news don't make me want to updated. I use GPS everyday, so this is very annoying
After flashing several successive versions of that ROM, I discovered that version lineage-13.0-20170813-UNOFFICIAL-h815.zip seems to be the last one with satellite location working fine.

Starting from lineage-13.0-20170814-UNOFFICIAL-h815.zip, satellite location stops working. I guess something is broken in that build.

@steadfasterX :
Can you look and see what's happened with 20170814 ? Thanks ! :)

@Netsab :
You can safely upgrade to 20170813.
 
Last edited:

Netsab

Senior Member
Aug 29, 2014
148
17
18
After flashing several successive versions of that ROM, I discovered that version lineage-13.0-20170813-UNOFFICIAL-h815.zip seems to be the last one with satellite location working fine.

Starting from lineage-13.0-20170814-UNOFFICIAL-h815.zip, satellite location stops working. I guess something is broken in that build.

@steadfasterX :
Can you look and see what's happened with 20170814 ? Thanks ! :)

@Netsab :
You can safely upgrade to 20170813.
Thanks you, I'll try.
 

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
After flashing several successive versions of that ROM, I discovered that version lineage-13.0-20170813-UNOFFICIAL-h815.zip seems to be the last one with satellite location working fine.

Starting from lineage-13.0-20170814-UNOFFICIAL-h815.zip, satellite location stops working. I guess something is broken in that build.

@steadfasterX :
Can you look and see what's happened with 20170814 ? Thanks ! :)

@Netsab :
You can safely upgrade to 20170813.
thanks for your report. btw a dmesg is very helpful in these cases but the above should be fixed on next build.
next build will also have all proprietary stuff upgraded to v20p.

sfX

EDIT
new build is up



.
 
Last edited:

breversa

Senior Member
Mar 21, 2012
331
91
28
Hey sfX,

When trying to dirty-flash 20170930 over 20170813, the phone gets stuck on the boot animation (for over 30 minutes).

I did not try to clean-flash it though ; I thought I'd let you know first.
 
  • Like
Reactions: steadfasterX

datorprofessor

Senior Member
Nov 16, 2012
96
23
0
:) Sir SteadfasterX!

I use Unofficial 13.0-20170625-UNOFFICIAL-h815 as a daily driver and it never crashed once. I will try yours in near future, beginning with a dirty flash (but with a backup in case).

My question is, do the Bluetooth APT-X include in this rom?
One of my other phones Sony Z5 (modded stock) includes from factory an APT-X notifier, whenever it connects to a Bluetooth with APT-X I get a toast message that the device using "BLUETOOTH apt-x".

I see in Nougat 7 that it is possible to check in "developer mode" which Bluetooth protocol that currently is in use.

[Request] It would be nice if you could pick Bluetooth APT-X drivers/codec from above version of LinageOS14

:cool: Thank you very much!

I have attached the spoken AptxNotifier.APK from Sony z5 Marshmallow
 

Attachments

Last edited:

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
:) Sir SteadfasterX!

I use Unofficial 13.0-20170625-UNOFFICAIL-h815 as a daily driver and it never crashed once. I will try yours in near future, beginning with a dirty flash (but with a backup in case).

My question is, do the Bluetooth APT-X include in this rom?
One of my other phones Sony Z5 (modded stock) includes from factory an APT-X notifier, whenever it connects to a Bluetooth with APT-X I get a toast message that the device using "BLUETOOTH apt-x".

I see in Nougat 7 that it is possible to check in "developer mode" which Bluetooth protocol that currently is in use.

[Request] It would be nice if you could pick Bluetooth APT-X drivers/codec from above version of LinageOS14

:cool: Thank you very much!

I have attached the spoken AptxNotifier.APK from Sony z5 Marshmallow
Better wait until I fixed the current nightlies..

nice app btw. when all is fixed i may take a look into it

Sent from my LG-H815 using XDA Labs
 
Last edited: