• 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][UNOFFICIAL][O][UsU] LineageOS 15.1 [H812] DEPRECATED

Status
Not open for further replies.

steadfasterX

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


Code:
/*
 * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...). 
 * Please do some research if you have any concerns about features included in the products you find here before flashing it! 
 * YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you. 
 * Your warranty will be void if you tamper with any part of your device / software.
 * Same statement for XDA.
 */
About LineageOS:
LineageOS is a free, community built, aftermarket firmware distribution of Android 8 (oreo), which is designed to increase performance and reliability over stock Android for your device.

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.


All the source code for LineageOS is available in the Suicide Squirrel Github repo. And if you would like to contribute to LineageOS, do not hesitate to submit patches.


**** These builds are for UsU'd devices only ****
UsU? http://bit.do/unlockg4



Requirements
  • Your device need to be unlocked by UsU
  • Your bootloader stack should be on MM 20x 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
  • Latest TWRP - PREVIEW build: click
  • Clean modem partition (so no UsU baseband flashed) - see Installation topic for details


Installation
  1. If you have ever flashed the UsU baseband package: Clean flash the modem partition from your backup in TWRP. If you have no backup:
    - TWRP flashable MM modems (N will not work)
  2. Read & follow (!) this very useful post by user @sdembiske (consider to show ur appreciation by clicking thx on that post) --> click
  3. Full wipe like described here (click & go to FAQ "#zzz") is highly recommended. DO NOT REPORT ISSUES when you have skipped that step!
  4. Flash LOS
  5. Flash GApps (8.1 - ARM64) if you like to use google apps
  6. Flash SuperSU / Magisk if you want root
  7. Boot (will take long on first boot!)
  8. Enjoy

Download

Get your builds from my leech server
http://leech.binbash.it:8008/lineage/oreo/h812-UsU/

Note:
  1. Builds are updated as soon as possible. There is no build cycle.
  2. Information pertaining to your device is displayed accordingly.
  3. The current build is the latest for your device.


Known issues:
  • Check the current issues at the github tracker (feel free to help, provide logs etc!)


Credits
  • LineageOS
  • ThePiGuy
  • kessaras
  • steadfasterX
  • and more..


Sources

XDA:DevDB Information
lineage-usu-h812, ROM for the LG G4

Contributors
steadfasterX, ThePiGuy, kessaras
Source Code: https://github.com/Suicide-Squirrel/local_manifests/tree/los-15.1

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.10.x
ROM Firmware Required: 20x or higher firmware
Based On: pure LineageOS

Version Information
Status: Beta

Created 2018-06-20
Last Updated 2019-07-10
 

ThePiGuy

Elite Member
Nov 5, 2017
1,305
1,243
113
Is there any way to set selinux to enforcing?
Not yet. SELinux works by blocking access to different components to your phone (e.g. access to the camera) unless we specify otherwise in sepolicies. We haven't built those yet so the experience will be completely broken as all functions (including basic ones like turning on the screen once it has been locked) will be blocked and therefore won't work

It's on our to-do list though ;)
 

bdasmith

Senior Member
Oct 18, 2011
443
145
0
Watrous
Not yet. SELinux works by blocking access to different components to your phone (e.g. access to the camera) unless we specify otherwise in sepolicies. We haven't built those yet so the experience will be completely broken as all functions (including basic ones like turning on the screen once it has been locked) will be blocked and therefore won't work

It's on our to-do list though ;)
Thank you for the clear answer! Makes sense. Thanks to everyone for their work!

---------- Post added at 12:35 PM ---------- Previous post was at 12:24 PM ----------

I found that the stock camera for lineage works fine for video if the resolution is changed to 720p. Not sure if it was noted before.
 
  • Like
Reactions: sdembiske

sdembiske

Elite Member
Jan 4, 2015
1,222
1,519
113
Thank you for the clear answer! Makes sense. Thanks to everyone for their work!

---------- Post added at 12:35 PM ---------- Previous post was at 12:24 PM ----------

I found that the stock camera for lineage works fine for video if the resolution is changed to 720p. Not sure if it was noted before.

Thanks for checking it out - 1080p is also working for me - only UHD 4K is not working.
 

vsTerminus

Senior Member
Sep 12, 2011
83
48
0
So I installed this on my phone. Installation itself went well - I wiped everything and formatted data, then flashed LOS, GApps, and Magisk.

Some issues I've run into so far:

1. Cannot connect to my 5GHz AC WiFi. (The 2GHz Wireless-N network connects fine - Edit: Seems to be AC-Only mode that is the problem. If I set it to AC/N Mix or N-Only it connects fine.)
Code:
06-21 01:57:45.295  5273  5273 I wpa_supplicant: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=b0:7f:b9:9c:90:48 status_code=18
06-21 01:57:45.296  5273  5273 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="My WiFi SSID"
 auth_failures=1 duration=10 reason=CONN_FAILED
06-21 01:57:45.425   990  7124 I WifiService: getWifiEnabledState uid=1000
06-21 01:57:45.434   990  5121 I WifiService: getConfiguredNetworks uid=1000
06-21 01:57:45.452   990  2081 D WifiStateMachine: Assocation Rejection event: bssid=b0:7f:b9:9c:90:48 reason code=18 ti
medOut=false
This worked fine in AOSCP Nougat. It's still possible this is just a problem on my end - I will keep messing with it.

2. GCams so far all seem to crash immediately once I've granted permissions. (Tried GCMod5, Pixel2Mod, and Snapdragon Camera)

3a. Video recording with the included camera does work, but framerate is pretty poor at 1080p. It's better at 720p, but not perfect.
3b. OpenCamera cannot record if I enable Camera2 API still, and seems to perform about as well as the included camera if I disable it.
3c. Cinema FV-5 does nothing when I tap the Record button, even with Compatibility mode enabled

It's an improvement that the included camera app can record video, but a step backwards that GCams all seem to crash immediately now. They were never all that stable in Nougat, but better than this.

4. HD video playback still has issues. I've tried this in YouTube and Twitch so far.
- 480p or below works fine
- 720p (30fps) seems to work ok
- 1080p (30fps) stutters a little bit but overall seems to be ok too now
- 1440p (30fps) stutters a lot, slow playback rate.
- 720p (60fps) video plays then freezes, then plays, then freezes, repeat
- 1080p (60fps) video freezes and largely does not play at all.
Audio is always fine, it's just video that has issues.

Video Playback's not perfect yet, but it's an improvement over my experience on AOSCP Nougat :)


I have yet to attempt any calling, bluetooth, or GPS. I'll update this post as I do more things. I have not installed Greenify or Amplify yet - I want to see how battery life is without anything like that initially.

Otherwise so far so good. Thank you to everyone for your efforts on this! I never imagined my G4 would ever go beyond rooted LP or unrooted MM, much less be on LOS Oreo. Please let me know if there is anything in particular I can provide to help troubleshoot.

Update 1:
- No ability to edit my APNs. The default ones from my SIM were detected and work, but I don't have the option to add new ones.
 
Last edited:

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
Please let me know if there is anything in particular I can provide to help troubleshoot.
doing a crash log may help:

Code:
adb shell
su
logcat -b all -c  (will clear the log)
[I]now: let cam crash[/I]
logcat -d -b all > /cache/camcrash.txt
adb pull  /cache/camcrash.txt
paste that camcrash.txt to http://bpaste.net

consider to do the same for your WiFi issue..

,
 
  • Like
Reactions: polfrank and n01z

bdasmith

Senior Member
Oct 18, 2011
443
145
0
Watrous
So I installed this on my phone. Installation itself went well - I wiped everything and formatted data, then flashed LOS, GApps, and Magisk.

Some issues I've run into so far:

1. Cannot connect to my 5GHz AC WiFi. (The 2GHz Wireless-N network connects fine - Edit: for whatever reason it seems to lose connectivity periodically though)
Code:
06-21 01:57:45.295  5273  5273 I wpa_supplicant: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=b0:7f:b9:9c:90:48 status_code=18
06-21 01:57:45.296  5273  5273 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="My WiFi SSID"
 auth_failures=1 duration=10 reason=CONN_FAILED
06-21 01:57:45.425   990  7124 I WifiService: getWifiEnabledState uid=1000
06-21 01:57:45.434   990  5121 I WifiService: getConfiguredNetworks uid=1000
06-21 01:57:45.452   990  2081 D WifiStateMachine: Assocation Rejection event: bssid=b0:7f:b9:9c:90:48 reason code=18 ti
medOut=false
This worked fine in AOSCP Nougat. It's still possible this is just a problem on my end - I will keep messing with it.

2. GCams so far all seem to crash immediately once I've granted permissions. (Tried GCMod5, Pixel2Mod, and Snapdragon Camera)

3a. Video recording with the included camera does work, but framerate is pretty poor at 1080p. It's better at 720p, but not perfect.
3b. OpenCamera cannot record if I enable Camera2 API still, and seems to perform about as well as the included camera if I disable it.
3c. Cinema FV-5 does nothing when I tap the Record button, even with Compatibility mode enabled

It's an improvement that the included camera app can record video, but a step backwards that GCams all seem to crash immediately now. They were never all that stable in Nougat, but better than this.

4. HD video playback still has issues. I've tried this in YouTube and Twitch so far.
- 480p or below works fine
- 720p (30fps) seems to work ok
- 1080p (30fps) stutters a little bit but overall seems to be ok too now
- 1440p (30fps) stutters a lot, slow playback rate.
- 720p (60fps) video plays then freezes, then plays, then freezes, repeat
- 1080p (60fps) video freezes and largely does not play at all.
Audio is always fine, it's just video that has issues.

Video Playback's not perfect yet, but it's an improvement over my experience on AOSCP Nougat :)


I have yet to attempt any calling, bluetooth, or GPS. I'll update this post as I do more things. I have not installed Greenify or Amplify yet - I want to see how battery life is without anything like that initially.

Otherwise so far so good. Thank you to everyone for your efforts on this! I never imagined my G4 would ever go beyond rooted LP or unrooted MM, much less be on LOS Oreo. Please let me know if there is anything in particular I can provide to help troubleshoot.
Strange! No issues with any of those things you described on my h812!
 
  • Like
Reactions: steadfasterX

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
Strange! No issues with any of those things you described on my h812!
whats your bootloader firmware version and first 3 digits of your device serial @bdasmith and @vsTerminus ?

device serial:
the sticker behind the battery

bootloader stack firmware:
easiest is to grab it from your SALT backup before UsU has been flashed. described here: https://forum.xda-developers.com/showpost.php?p=76861239&postcount=1122
only valid if you havent upgraded/downgraded the bootloader stack after the SALT backup ofc..

.
 
  • Like
Reactions: polfrank and n01z

vsTerminus

Senior Member
Sep 12, 2011
83
48
0
whats your bootloader firmware version and first 3 digits of your device serial?
Device Serial: 709

Bootloader stack: Rogers V20x (MM)
Code:
~/salt_backup % strings misc.bin | grep LG
LGH812AT-01-V20x-302-720-JUL-12-2016+0
LGH812AT
LGH812AT-00-V20x-RGS-CA-JUL-12-2016+0
LG-H812

Also, I sent you a PM with the logs you requested.
 
Last edited:

sdembiske

Elite Member
Jan 4, 2015
1,222
1,519
113
@vsTerminus; @bdasmith; @steadfasterX:

I was on the V20X from Fido/Rogers as well but ...

- Have had no issues at all connecting to 5.0 GHz. WIFI
- Video recording in 1080p with the stock camera app does not seem to present any issues for me on my phone and the recorded videos play well.
- Cinema FV5 video recording is still working extremely well for me with legacy camera driver and the recorded videos play very well.
- I too have experienced problems with all but one of many modded Google cam apps I have tested - camera either closes immediately after allowing permissions or if loads presents a black screen, crashes on video app switch etc. I have put this down at least partially that a lot of these mods are prepared on or for different phones and may be using the blobs from their originally stalled camera apps.
- 1080p and UHD 4K videos are playing very well in YouTube on my phone.

Note: Experiencing as of the June 19th H812 build, much better sim card recognition now - as good as I had on AOSCP N it seems - not getting anywhere so far the failure to load or the complete drop-offs I was experiencing on the previous H811 build I had installed.

S.
 
Last edited:

vsTerminus

Senior Member
Sep 12, 2011
83
48
0
- Have had no issues at all connecting to 5.0 GHz. WIFI
What is the Wireless Network Mode set to? Mine will connect if I set it to "N-Only" or "AC/N-Mixed", but it will not connect if I set it to "AC-Only".
Do me a favor and try setting it to AC-Only and try again?

- Video recording in 1080p with the stock camera app does not seem to present any issues for me on my phone and the recorded videos play well.
- Cinema FV5 video recording is still working extremely well for me with legacy camera driver and the recorded videos play very well.
Cinema FV-5 is working for me now, but it performs about as well as the included camera app does.

Put the camera on Video mode but don't start recording. Pan across the room, reasonably quickly. Pay attention to how smooth it looks.
Now hit record and do exactly the same thing. Is it just as smooth? Mine is not. It gets choppy while recording, but is nice and smooth once I stop.

- I too have experienced problems with all but one of many modded Google cam apps I have tested - camera either closes immediately after allowing permissions or if loads presents a black screen, crashes on video app switch etc. I have put this down at least partially that a lot of these mods are prepared on or for different phones and may be using the blobs from their originally stalled camera apps.
The only thing is, I know some of these camera mods worked on AOSCP Nougat. They weren't the most stable apps in the world, but at least I could load them up and take a few pictures. Now I can't get the apps to even open.

- 1080p and UHD 4K videos are playing very well in YouTube on my phone.
What about a 1080p 60fps video? Mine seems to work fine up to 1080p as long as it's only a 30fps video.
If you need help finding something in 1080p60, try this: https://www.youtube.com/watch?v=4KNwl8nvMvQ
In the YouTube app if you tap the screen while the video is playing you'll get the 3-dot menu button at the top right corner. From there you can go to Quality and choose "1080p60". Skip ahead in the video to force it to switch quality levels, and let me know how your video plays then.

I don't doubt you, I just want to make sure we're trying the same things here. Thanks!
 

sdembiske

Elite Member
Jan 4, 2015
1,222
1,519
113
What is the Wireless Network Mode set to? Mine will connect if I set it to "N-Only" or "AC/N-Mixed", but it will not connect if I set it to "AC-Only".
Do me a favor and try setting it to AC-Only and try again?
Set to A-Only - don't have AC. Problem may reside with C perhaps.

Cinema FV-5 is working for me now, but it performs about as well as the included camera app does.

Put the camera on Video mode but don't start recording. Pan across the room, reasonably quickly. Pay attention to how smooth it looks.
Now hit record and do exactly the same thing. Is it just as smooth? Mine is not. It gets choppy while recording, but is nice and smooth once I stop.
Panning is what I always test. I test with a relatively slower pan ... perhaps that is your issue.

The only thing is, I know some of these camera mods worked on AOSCP Nougat. They weren't the most stable apps in the world, but at least I could load them up and take a few pictures. Now I can't get the apps to even open.
Most of the one's I tested were on ASOCP N, same issues - tested three so far on O and all closed immediately after allowing permissions.

What about a 1080p 60fps video? Mine seems to work fine up to 1080p as long as it's only a 30fps video.
If you need help finding something in 1080p60, try this: https://www.youtube.com/watch?v=4KNwl8nvMvQ
In the YouTube app if you tap the screen while the video is playing you'll get the 3-dot menu button at the top right corner. From there you can go to Quality and choose "1080p60". Skip ahead in the video to force it to switch quality levels, and let me know how your video plays then.

I don't doubt you, I just want to make sure we're trying the same things here. Thanks!
Here's the thing ... I had problems with your recording in 1080p 60fps. I tried another one Battlefield 1 PS4 Gameplay (1080p 60fps) and guess what, played flawlessly - confirmed it was playing in 1080p 60fps. As I have stated to you before, I believe it depends in large part on the quality of the uploaded video recording ...
 
Last edited:

vsTerminus

Senior Member
Sep 12, 2011
83
48
0
Set to A-Only - don't have AC. Problem may reside with C perhaps.
We'll need someone else who can test with a 5GHz Wireless-AC network then to confirm. Thanks for trying.


Panning is what I always test. I test with a relatively slower pan ... perhaps that is your issue.
You would notice it more when panning a bit faster. I'm not saying shake the phone around violently or anything, but mine is visibly choppy even with slow panning.


Here's the thing ... I had problems with your recording in 1080p 60fps. I tried another one Battlefield 1 PS4 Gameplay (1080p 60fps) and guess what, played flawlessly - confirmed it was playing in 1080p 60fps.
Could you send me the link? I'd like to try the same video you did.
 

sdembiske

Elite Member
Jan 4, 2015
1,222
1,519
113
We'll need someone else who can test with a 5GHz Wireless-AC network then to confirm. Thanks for trying.

You would notice it more when panning a bit faster. I'm not saying shake the phone around violently or anything, but mine is visibly choppy even with slow panning.

Could you send me the link? I'd like to try the same video you did.
I do not get choppiness with slow panning on mine.

Link: https://www.youtube.com/watch?v=xCJsrd983To
Most issues I believe may be related to buffering problems with longer playing videos. I don't have issues with shorter plays but they seem to arise with longer plays from the number I have tested now.
 

steadfasterX

Recognized Developer
Nov 13, 2013
5,532
14,762
113
whats your bootloader firmware version and first 3 digits of your device serial @bdasmith and @vsTerminus ?

device serial:
the sticker behind the battery

bootloader stack firmware:
easiest is to grab it from your SALT backup before UsU has been flashed. described here: https://forum.xda-developers.com/showpost.php?p=76861239&postcount=1122
only valid if you havent upgraded/downgraded the bootloader stack after the SALT backup ofc..

.
Ok I guess @bdasmith you have a serial lower then 700 ?

I see problems always on 7xx devices and not on 6xx and 5xx devices.
We already saw that LG changed something in newer product lines due to issues with the camera ( aoscp thread a while ago) so I guess that makes the difference..



Sent from my LG-H815 using XDA Labs
 
  • Like
Reactions: n01z

bdasmith

Senior Member
Oct 18, 2011
443
145
0
Watrous
Ok I guess @bdasmith you have a serial lower then 700 ?

I see problems always on 7xx devices and not on 6xx and 5xx devices.
We already saw that LG changed something in newer product lines due to issues with the camera ( aoscp thread a while ago) so I guess that makes the difference..



Sent from my LG-H815 using XDA Labs
Hey there...just got home from work. After dinner i will take a look at that for you!
 

bdasmith

Senior Member
Oct 18, 2011
443
145
0
Watrous
Well....i opened her up my serial number is 708...etc

Not sure if that helps or not lol.

Is there a way to get bootloader version read from an app of some sort?
From now on i jave to be very vwry careful with what i do. The drive i had my salt backup on died and is unrecoverable! Yikes
 
Last edited:
  • Like
Reactions: steadfasterX

bdasmith

Senior Member
Oct 18, 2011
443
145
0
Watrous
I do not get choppiness with slow panning on mine.

Link: https://www.youtube.com/watch?v=xCJsrd983To
Most issues I believe may be related to buffering problems with longer playing videos. I don't have issues with shorter plays but they seem to arise with longer plays from the number I have tested now.
Yes...i noticed lag on some videos when played in 1080p 60fps
And some others played just fine. It did seem to be shorter ones that played okay for me as well.

Edit: i take that back. All 1080p 60fps lag and audio out of sync. Sorry @vsTerminus


---------- Post added at 10:40 PM ---------- Previous post was at 10:35 PM ----------

- No ability to edit my APNs. The default ones from my SIM were detected and work, but I don't have the option to add new ones.
Confirmed....no option to create new vpn.
 
Last edited:
Status
Not open for further replies.