[ROM][Android 11][UNOFFICIAL]LineageOS 18.1[LG G8][alphalm]

Search This thread

cheger32

Member
Nov 3, 2017
42
25
I didn't root it. I installed the Rom and Gapps but not magisk. The root checker confirmed it.
I see. It could be an issue with the rom. If I find time in the future I may take a look, but once this device gets stock Android 11, this rom will likely be overhauled to incorporate the new official binaries and structure. Problems like this and AOD may vanish in the future without specifically targeting them in the device tree. All of this may be for nothing if carriers actually shut down 3G networks soon though, since we'd have no calling on this ROM.
 

indrajyoti_indra

Senior Member
Aug 8, 2018
93
22
View attachment 5433117

LineageOS 18.1 (Android 11) for US LG G8 (G820*)


LineageOS (also known as “Lineage”) is a free and open-source operating system based on Android. It is the successor to the custom ROM CyanogenMod.


Code:
#include "std_disclaimer.h"
/*
* Your warranty is now void.
*
* I am 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 me for messing up your device, I will laugh at you.
*/

This is an unofficial build of Lineageos 18.1 (Android 11) for the US LG G8.



THIS IS NOT A GSI


This should work on all carriers!

This will only work for the US LG G8.
This will only work for alphalm, not alphaplus.

This will not work on the 'G8s' or the 'G8x'.

YOU HAVE BEEN WARNED.


This has only been tested on two devices, a T-Mobile G8 and an Open US G8. There shouldn't be any issues with other carriers, but in case there are it would be a good idea to heed the following:

Please backup all important data before installing this ROM. It's a good idea to become familiar with EDL on the G8, so a backup of all phone partitions can be made before installing anything through TWRP. As stated above, I am not responsible for any bricks, hard or otherwise. This is good practice before installing anything on your device.

Bootloader Must Be Unlocked
There's a guide for this linked below. This step is a must.
This must be installed from TWRP or other custom recovery on stock.
Please make sure latest stock firmware is installed. This may not be completely
necessary, but having an old firmware image installed has caused me
issues with call audio and such while developing this ROM.

What Works
  • Bluetooth
  • Wifi
  • Call/SMS
  • Data 2G/3G/LTE
  • Camera (GCam is required for wide angle back camera)
  • Audio
  • NFC
  • GPay Contactless Payments (Requires Magisk Hide)
  • Hotspot
  • Google Assistant Voice Match
  • Nearly Everything!
What Doesn't Work
  • VoLTE/VoWiFi/IMS - LG has a complicated proprietary IMS, so no VoLTE at all!
  • Assistant Voice Match while screen is off
  • AOD (I'm working on this)
  • Please let me know in the comments

Requirements

  1. US LG G8 on any carrier
  2. Latest firmware installed on device (may work with older firmware but results will vary)
  3. Latest unofficial LineageOS zip (on github, linked in thread) and TWRP zip (attached to thread)
  4. SD Card or adb for sideloading (see step 5)
  5. PC with Windows (Linux is possible if you know what you're doing. Check out bkerler/edl on github, it works the same way as QFIL, but requires a small amount of Linux knowledge/experience.)

How to install
  1. Unlock Bootloader and root with Magisk (Follow guide linked below)
  2. Make a backup of all your data (I strongly recommend making a backup of your partitions with qfil (or EDL for linux users))
  3. Download TWRP and the Lineage zip
  4. Installl TWRP (Follow quick guide in attached archive)
  5. Place Lineage zip and anything you want to install through recovery on external SD card (Can also be sideloaded with 'adb sideload', If so, skip this step)
  6. Boot into TWRP or other custom recovery with volume and power shortcut
  7. Install Lineage zip from sdcard or sideload (I always recommend sd, there's less to go wrong)
  8. Once it completes, reboot into recovery again. There's an option for this in TWRP to skip the button combo. TWRP IS GONE. YOU WILL BOOT INTO LINEAGE RECOVERY. USE THIS FOR REMAINING STEPS.
  9. Format Data (This is completely necessary. You will be returned to recovery on boot if you do not follow this step.)
  10. Install Gapps, Magisk, and anything else from sd or with adb sideload. (If you don't want/need root, you can skip installing Magisk
  11. Format Data Again (System will send you back to recovery to do it if you don't)
  12. Reboot to system and enjoy!
A big thanks to SGCMarkus for everything he has done for LG devices on this platform. This wouldn't be possible without his work. Go buy him a coffee or something!

Big thanks to those I haven't named from the V50 G8 G8s Telegram group as well


Other Credits

J0SH1X
enforc


Links


Guide For Unlocking Bootloader

Guide LG G8/G8x/v50 Bootloader Unlock and Magisk Root using Firehose

posted by Seasee606

GCam For Wide Angle Back Camera

GCam Hub MGC_8.1.101_A9_PV0i

Go to this link and download MGC_8.1.101_A9_PV0i_libs_MGC.apk
Others will work, but some not as well. I've noticed some issues with this version crashing. If you experience this, try other versions from the link above.

GApps

Only install GApps packages for Android 11!

NikGApps
Highly recommended. (Because I use it and I know it works, it doesn't necessarily mean it's best though.) Follow download buttons. Go to Releases > NikGapps-R. Packages will be here. Info about what each package contains is on the page linked above.

MindTheGApps
I've tried this once and It seemed alright, but it was a little minimal for my taste. It's linked by LineageOS so it's here.

OpenGapps
I haven't tried this at all, but it's also linked by LineageOS so it should be here.


Download

Release: LineageOS 18.1
Release Date: 2021-10-13
MD5: 8e63d765ea7fe90c6fe9ebf4975c2a35
Filename: lineage-18.1-20211013-UNOFFICIAL-alphalm-signed.zip
Size: 908 MB (951854628 B)
Device: LM-G820 USA
Android Version: 11



Download from Github

Release Page


Sources / Device Tree

https://github.com/xmusjackson/android_device_lge_alpha-common
https://github.com/xmusjackson/android_device_lge_alphalm
https://github.com/xmusjackson/android_device_lge_sm8150-common
https://github.com/SGCMarkus/android_device_lge_common/tree/76432f76c5994bd1033d01150433f081a8c6dee3
https://github.com/xmusjackson/android_kernel_lge_sm8150
https://github.com/SGCMarkus/android_hardware_lge/tree/64bef53ae00f0496e35bc59a61a07ad40537d706
https://github.com/xmusjackson/proprietary_vendor_lge_alpha


Screenshots




Attached is a copy of the archive containing TWRP for the G8. I downloaded this from telegram and take no credits, there just isn't a thread about this here that I've seen. The instructions to install are included in the archive.
Please let me know of any bugs in the comments!
Thanks!
Thank you for your time and effort. The ROM is really smooth. Only issues so far that I see are:
1. Auto brightness is not working properly. It does not remember and does not change the brightness after system restarts/screen on.
2. Advanced restart option not showing reboot to bootloader and other options ever after selecting it.
 
Last edited:

cheger32

Member
Nov 3, 2017
42
25
Thank you for your time and effort. The ROM is really smooth. Only issues so far that I see are:
1. Auto brightness is not working properly. It does not remember and does not change the brightness after system restarts/screen on.
2. Advanced restart option not showing reboot to bootloader and other options ever after selecting it.
Did you make sure you were on latest stock before installing this rom?
Otherwise I'm not sure. I would need system logs to say more. Both of these features work for me as I write this. I'd say try wiping data and reinstalling the ROM. (This will switch slots, I have found success with other issues by only installing the rom to a certain slot - until I just flashed the latest KDZ to both slots to avoid this issue altogether).
Which carrier is the phone and if you can remember, what was the build number for the version of stock you had?
 
Last edited:
  • Like
Reactions: indrajyoti_indra

cheger32

Member
Nov 3, 2017
42
25
Why can't I boot the device? Is it because I'm not root?
What happens when you try to boot? Please provide specific details like what the screen looks like when you power the phone on, what you did with the phone just before it started doing this (which step did you attempt), etc.
 
Last edited:

indrajyoti_indra

Senior Member
Aug 8, 2018
93
22
Did you make sure you were on latest stock before installing this rom?
Otherwise I'm not sure. I would need system logs to say more. Both of these features work for me as I write this. I'd say try wiping data and reinstalling the ROM. (This will switch slots, I have found success with other issues by only installing the rom to a certain slot - until I just flashed the latest KDZ to both slots to avoid this issue altogether).
Which carrier is the phone and if you can remember, what was the build number for the version of stock you had?
Yeah! you are right. I need to flash both the slots. Thank you. One question, how is your phone idle battery life. My phone is loosing about 20% during idle period. It is not because of apps. I tested with Gsam.
 

cheger32

Member
Nov 3, 2017
42
25
Yeah! you are right. I need to flash both the slots. Thank you. One question, how is your phone idle battery life. My phone is loosing about 20% during idle period. It is not because of apps. I tested with Gsam.
Make sure that AOD is not on. It's enabled by default even though it does not work anymore (an update to LOS broke it a little while ago but if I'm going to revamp this rom with new a11 blobs in the near future it would be pointless to try and make it work now). AOD will keep your screen on but with no brightness so the battery loss will not be incredibly significant, but significant enough to notice.
 

indrajyoti_indra

Senior Member
Aug 8, 2018
93
22
Make sure that AOD is not on. It's enabled by default even though it does not work anymore (an update to LOS broke it a little while ago but if I'm going to revamp this rom with new a11 blobs in the near future it would be pointless to try and make it work now). AOD will keep your screen on but with no brightness so the battery loss will not be incredibly significant, but significant enough to notice.
Thanks. My AOD is not on. But still loosing about 15% overnight. All radios are off except wifi. I will turn that off too tonight to see if any difference.
 

cheger32

Member
Nov 3, 2017
42
25
Ok thanks, this worked. Just need to get it to pass ctsProfile now and I'll be set.
Enable magisk hide and add the apps that you want to hide root from (including google play services and any other google apps for good measure) to the hide list.
Install magiskhide props, after installing go to root terminal app or adb shell and type props.
When the list of options shows up, choose option 1, then choose option f, then choose LG and G7 or G8.
When all of that is done, go back to the main menu (type props at root terminal) then select option 2, then select option d and again select LG and then G7 or G8. Delete cache and data of google play services and any apps that you want to hide root from and safetynet should pass.
I use this method to enable NFC card payments on gpay.
 
Last edited:
  • Like
Reactions: indrajyoti_indra

cheger32

Member
Nov 3, 2017
42
25
Thanks. My AOD is not on. But still loosing about 15% overnight. All radios are off except wifi. I will turn that off too tonight to see if any difference.
There's another feature to check but I can never seem to find it in settings. Edit the quick access tiles in the notification area and add the tile for Ambient Display, just to double check that it is off as well.
 
  • Like
Reactions: indrajyoti_indra

blaze2051

Senior Member
Jul 26, 2010
372
37
LG G7 ThinQ
LG V40
wheres the LOS 17.1 because thats the only version of android i trust at the current moment? Since LG v50 and the LG G8 is very similar can we flash the v50 17.1 or tweak it so it can be installed on the G8 and not have to start from scratch?

UPDATED so i flashed over android 10 and its ended in a bootloop so i guess we need to be on A11 but theres no kdz A11 for G8
 
Last edited:

cheger32

Member
Nov 3, 2017
42
25
wheres the LOS 17.1 because thats the only version of android i trust at the current moment? Since LG v50 and the LG G8 is very similar can we flash the v50 17.1 or tweak it so it can be installed on the G8 and not have to start from scratch?

UPDATED so i flashed over android 10 and its ended in a bootloop so i guess we need to be on A11 but theres no kdz A11 for G8
The v50 rom will not work for the G8. There are many differences in the proprietary binaries. As a general rule of thumb, its pretty rare that one phone will be able to take the rom of another, and in circumstances where this IS the case, it's pretty well documented. It's also important that you make a backup of your partitions when you go to modify a device.

Which carrier do you have? If there is no available KDZ, there are newer cross-flash methods that have come out that may be able to assist you in getting back to stock a10 and installing the this ROM (if you want). If you have AT&T, There is a stock android 10 partition backup which I could likely link you to.

Finally, why do you not trust los 18.1? It is from the same developers as los 17.1. It would be a little unnecessary at this time to develop a lineage 17.1 rom for this device, especially when android 12 and los 19 are on the horizon.
 

cheger32

Member
Nov 3, 2017
42
25
Yes, that is off. Thank you.
I'm not sure what to say otherwise. All I could suggest at this point is to test with different distros of Gapps (And maybe with stock). I'm using Nikgapps omni now, with a few extra packages installed, and I haven't noticed any major battery loss. I was pleasantly surprised by the battery life of this ROM when I first started developing it, it's strange that you don't notice the same. I imagine you looked at the built in battery usage interface, what did it say was taking up the majority of the power? You should also grab logcat from while the device is asleep and make sure nothing is starting and stopping constantly or anything else obvious like that.
 

blaze2051

Senior Member
Jul 26, 2010
372
37
LG G7 ThinQ
LG V40
The v50 rom will not work for the G8. There are many differences in the proprietary binaries. As a general rule of thumb, its pretty rare that one phone will be able to take the rom of another, and in circumstances where this IS the case, it's pretty well documented. It's also important that you make a backup of your partitions when you go to modify a device.

Which carrier do you have? If there is no available KDZ, there are newer cross-flash methods that have come out that may be able to assist you in getting back to stock a10 and installing the this ROM (if you want). If you have AT&T, There is a stock android 10 partition backup which I could likely link you to.

Finally, why do you not trust los 18.1? It is from the same developers as los 17.1. It would be a little unnecessary at this time to develop a lineage 17.1 rom for this device, especially when android 12 and los 19 are on the horizon.
thank you for your reply, I own the G820um, and i was trying to use v50 17.1 on the G8. I do have backups for the G8. I learned that G8 can do GSI .img builds but its a hit or miss with bugs etc. and G8 i have is sprint so no KDZ only dumps from another sprint and twrp backups i made. but 17,1 on several of my other devices and it just works simply
 

blaze2051

Senior Member
Jul 26, 2010
372
37
LG G7 ThinQ
LG V40
I'm not sure what to say otherwise. All I could suggest at this point is to test with different distros of Gapps (And maybe with stock). I'm using Nikgapps omni now, with a few extra packages installed, and I haven't noticed any major battery loss. I was pleasantly surprised by the battery life of this ROM when I first started developing it, it's strange that you don't notice the same. I imagine you looked at the built in battery usage interface, what did it say was taking up the majority of the power? You should also grab logcat from while the device is asleep and make sure nothing is starting and stopping constantly or anything else obvious like that.
my flashed G8 with LOS 18.1 but it never booted, only bootloop so i dont if i needed oem A11 first. i flash while i was on A10
 

cheger32

Member
Nov 3, 2017
42
25
my flashed G8 with LOS 18.1 but it never booted, only bootloop so i dont if i needed oem A11 first. i flash while i was on A10
Did you flash your backup back to stock first? Try flashing again so it goes onto the other slot. It installed lineage to the old slot and if the correct stock is not present there it will not boot. Simply try reflashing the ROM, this will switch to the other slot which has the correct stock.
 

blaze2051

Senior Member
Jul 26, 2010
372
37
LG G7 ThinQ
LG V40
Did you flash your backup back to stock first? Try flashing again so it goes onto the other slot. It installed lineage to the old slot and if the correct stock is not present there it will not boot. Simply try reflashing the ROM, this will switch to the other slot which has the correct stock.
i was trying it out, i ended flashing my backup via Qfile and then i flashed LOS 17.1 GSI via TWRP and it works sooo soo smooth that im not flashing it again its great and everything seems to work
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    WARNING: Carriers in the US are shutting down 3G networks. This rom does not have VoLTE capability at this time, so calls will not be sent or received if your carrier has disabled 3G.

    If you are in the US and wish to use this rom, please check your carrier's 3G support and if there are any dates set for a 3G shutdown. If you are outside the US, this is unlikely to affect you, but do a google search anyway.


    At the time of writing this disclaimer (March 18, 2022) AT&T has already disabled 3G and T-Mobile will shut down 3G networks for prior sprint users by the end of the month.

    los-banner.png


    LineageOS 18.1 (Android 11) for US LG G8 (G820*)


    LineageOS (also known as “Lineage”) is a free and open-source operating system based on Android. It is the successor to the custom ROM CyanogenMod.


    Code:
    #include "std_disclaimer.h"
    /*
    * Your warranty is now void.
    *
    * I am 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 me for messing up your device, I will laugh at you.
    */

    This is an unofficial build of Lineageos 18.1 (Android 11) for the US LG G8.


    THIS IS NOT A GSI

    This works on all carriers!

    This will only work for the US LG G8.
    This will only work for alphalm, not alphaplus.

    This will not work on the 'G8s' or the 'G8x'.
    This will not work on Korean models.

    YOU HAVE BEEN WARNED.


    Partition Backup:
    Please backup all important partitions and data before installing this ROM. THis is very important for certain carriers including AT&T, as they do not provide the KDZ firmware files, so once you install lineage, you may not easily be able to go back if you haven't made a backup, though it's a good idea for anyone attempting to install any rom on any device.

    Important partitions are:
    boot
    product
    vendor
    dtbo
    vbmeta
    system


    Make a backup of these in QFIL (both _a and _b slots of each, You will need to use QFIL during the following bootloader unlock guide so you can make this backup during that process.

    Bootloader Must Be Unlocked
    There's a guide for this linked below. This step is a must.
    This must be installed from TWRP or other custom recovery on stock.
    Please make sure latest stock firmware is installed. This may not be completely
    necessary, but having an old firmware image installed has caused me
    issues with call audio and such while developing this ROM.

    What Works
    • Bluetooth
    • Wifi
    • Call/SMS (WARNING: Carriers in the US and perhaps other countries are disabling 3G, so no more calls and possibly even texts if this happens with your carrier!)
    • Data 2G/3G/LTE
    • Camera (GCam is required for wide angle back camera)
    • Audio
    • NFC
    • GPay Contactless Payments (Requires Magisk Hide)
    • Hotspot
    • Google Assistant Voice Match
    • Nearly Everything!
    What Doesn't Work
    • VoLTE/VoWiFi/IMS - LG has a complicated proprietary IMS, so no VoLTE at all!
    • Assistant Voice Match while screen is off
    • AOD (I'm working on this)
    • Please let me know in the comments

    Requirements

    1. US LG G8 on any carrier
    2. Latest firmware installed on device (may work with older firmware but results will vary)
    3. Latest unofficial LineageOS zip (on github, linked in thread) and TWRP zip (attached to thread)
    4. SD Card or adb for sideloading (see step 5)
    5. PC with Windows (Linux is possible if you know what you're doing. Check out bkerler/edl on github, it works the same way as QFIL, but requires a small amount of Linux knowledge/experience.)

    How to install
    1. Unlock Bootloader and root with Magisk (Follow guide linked below)
    2. Make a backup of all your data (I strongly recommend making a backup of your partitions with qfil (or EDL for linux users))
    3. Download TWRP and the Lineage zip
    4. Installl TWRP (Follow quick guide in attached archive)
    5. Place Lineage zip and anything you want to install through recovery on external SD card (Can also be sideloaded with 'adb sideload', If so, skip this step)
    6. Boot into TWRP or other custom recovery with volume and power shortcut
    7. Install Lineage zip from sdcard or sideload (I always recommend sd, there's less to go wrong)
    8. Once it completes, reboot into recovery again. There's an option for this in TWRP to skip the button combo. TWRP IS GONE. YOU WILL BOOT INTO LINEAGE RECOVERY. USE THIS FOR REMAINING STEPS.
    9. Format Data (This is completely necessary. You will be returned to recovery on boot if you do not follow this step.)
    10. Install Gapps, Magisk, and anything else from sd or with adb sideload. (If you don't want/need root, you can skip installing Magisk
    11. Format Data Again (System will send you back to recovery to do it if you don't)
    12. Reboot to system and enjoy!
    A big thanks to SGCMarkus for everything he has done for LG devices on this platform. This wouldn't be possible without his work. Go buy him a coffee or something!

    Big thanks to those I haven't named from the V50 G8 G8s Telegram group as well


    Other Credits

    J0SH1X
    enforc


    Links


    Guide For Unlocking Bootloader

    Guide LG G8/G8x/v50 Bootloader Unlock and Magisk Root using Firehose

    posted by Seasee606

    GCam For Wide Angle Back Camera

    GCam Hub MGC_8.1.101_A9_PV0i

    Go to this link and download MGC_8.1.101_A9_PV0i_libs_MGC.apk
    Others will work, but some not as well. I've noticed some issues with this version crashing. If you experience this, try other versions from the link above.

    GApps

    Only install GApps packages for Android 11!

    NikGApps
    Highly recommended. (Because I use it and I know it works, it doesn't necessarily mean it's best though.) Follow download buttons. Go to Releases > NikGapps-R. Packages will be here. Info about what each package contains is on the page linked above.

    MindTheGApps
    I've tried this once and It seemed alright, but it was a little minimal for my taste. It's linked by LineageOS so it's here.

    OpenGapps
    I haven't tried this at all, but it's also linked by LineageOS so it should be here.


    Download

    Release: LineageOS 18.1
    Release Date: 2021-10-13
    MD5: 8e63d765ea7fe90c6fe9ebf4975c2a35
    Filename: lineage-18.1-20211013-UNOFFICIAL-alphalm-signed.zip
    Size: 908 MB (951854628 B)
    Device: LM-G820 USA
    Android Version: 11



    Download from Github

    Release Page


    Sources / Device Tree

    https://github.com/xmusjackson/android_device_lge_alpha-common
    https://github.com/xmusjackson/android_device_lge_alphalm
    https://github.com/xmusjackson/android_device_lge_sm8150-common
    https://github.com/SGCMarkus/android_device_lge_common/tree/76432f76c5994bd1033d01150433f081a8c6dee3
    https://github.com/xmusjackson/android_kernel_lge_sm8150
    https://github.com/SGCMarkus/android_hardware_lge/tree/64bef53ae00f0496e35bc59a61a07ad40537d706
    https://github.com/xmusjackson/proprietary_vendor_lge_alpha


    Screenshots

    Screenshot_20211014-142150_Updater.png
    Screenshot_20211014-135754_Settings.png
    Screenshot_20211014-135817_LineageOS_Settings.png
    Screenshot_20211014-142111.png

    Screenshots from LM-G820QM7 (Open US)



    Attached is a copy of the archive containing TWRP for the G8. I downloaded this from telegram and take no credits, there just isn't a thread about this here that I've seen. The instructions to install are included in the archive.
    Please let me know of any bugs in the comments!
    Thanks!
    2
    Yeah! you are right. I need to flash both the slots. Thank you. One question, how is your phone idle battery life. My phone is loosing about 20% during idle period. It is not because of apps. I tested with Gsam.
    Make sure that AOD is not on. It's enabled by default even though it does not work anymore (an update to LOS broke it a little while ago but if I'm going to revamp this rom with new a11 blobs in the near future it would be pointless to try and make it work now). AOD will keep your screen on but with no brightness so the battery loss will not be incredibly significant, but significant enough to notice.
    1
    Can i install rom for G820N Korea ?
    Can you help me fix vibration for G820N ?
    I using Los gsi rom but my phone hadn't vibration
    I don't think this rom would work on your device, but I could be wrong. Either way, I do not recommend trying it. Also, I've never used a GSI but I've heard they're buggy in general.
    1
    hi. can i do this with lg lmg820um Android 9 pie version. I will be glad if you answer
    I don't think this would work. Your device's firmware should be updated to android 10. The ROM does not install this, it is retained from original stock ROM. This would probably result in a brick.
    1
    A full reflash does not bring the sensor back, at least on my device. It comes back at seemingly random intervals after extended periods of being powered off or unused. since it persists past reflash It might be a safe assumption that it's something to do with the bootloader's unlocked state?
    A bootloader's unlocked state has nothing to do with what's on the partitions. Nothing on your storage will be saved or deleted because you have an unlocked bootloader. It just gives you the ability to boot with them in a non-stock state.

    The fact that your bootloader is unlocked will not affect whether the fingerprint scanner service detects the hardware or not. At this point, a hardware issue is seeming like the only answer.

    If you want to be sure, get a different G8 and install this ROM on it. I have two here that do not have this issue at all.