[OFFICIAL] LineageOS 19.1 for the LG V20

Search This thread

npjohnson

Recognized Developer
lineage-os-logo.png

LG V20

Code:
- Your warranty is now void.
- You have been warned.
- Use at your own risk.

Introduction:
This is the Official Lineage OS 19.1 thread for the LG V20.

Downloads:
Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed.

Official Builds:
Unofficial - built once a month by me, includes GApps and Pixel goodies:
If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

Known Bugs:
  • IMS (VoLTE/Wi-Fi Calling) doesn't work due to framework tie-ins used by the LG proprietary binaries.
  • Find any? Report them according to this guide.
Notes:
  • The only supported GApps package at the moment is MindTheGapps, linked on our Wiki page about gapps.
  • This uses a port of Linux kernel version 4.4.
Kernel Source: https://github.com/LineageOS/android_kernel_lge_msm8996
 
Last edited:

npjohnson

Recognized Developer
Thanks for bringing 12 to the v20! Not complaining or arguing at all but why didn't you just skip 12 and move to 13 all together?
I planned to but Bluetooth is horridly broken on 13 for one reason or another - figured I wouldn't hold release back for it.
 

dextructor

Senior Member
Aug 21, 2007
149
53
I'm new to the V20 and picked my used device last Thursday (990DS variant), already unlocked thanks to this forum and played with some ROM's and Kernels for a while.

I already downloaded and flashed the unofficial version and I really don't like the design language/choices that Google made, but it's working very well. The only thing that's not working (and I didn't notice on other ROM's) it's the FM Radio (I don't use, but tested with the stock before unlocking).

Since I try not using the physical buttons unless it's really necessary I use in Lineage 18 the volume panel to change it (the same panel it's not available in this release), and Simple Reboot for other tasks that requires the power button menu. But I discovered that the double tap to wake don't work after 5 seconds when you lock your device (If you try to use between 1 and 3 seconds it works), but after that you need to use the power button or the fingerprint. But If I wanna check notifications or the time without unlocking my device DT2W it's useful.

I personally use LineageOS for microG and when it's available there (or even a regular Lineage without gapps for testing) I will use this V20 as a daily driver since my OnePlus3 it's out of service because of my mistake with the LCD.

My sincere congratulations for the 4.4 Kernel porting, it's really impressive the work of the community here.

Off-topic: Since my last device was an OP3 I was really used to off screen gestures (flashlight, music playback etc). There's something similar that could be used in this device? Thanks!
 
Last edited:
  • Like
Reactions: askermk2000

0ldsoul

Member
Mar 26, 2023
13
4
Hi, thanks for your hard work OP and everyone who contributed to keep this old device of ours running up to date. We really appreciate it! It's my first time flashing a custom rom since the phone was released. Phone broke on me after a year of using (stock no root, ig something inside got damaged because of excessive heat) and on it's fourth year of hibernating I picked it up again and it miraculously somehow fixed itself. I'm in LOS 18.1 right now and so far IR isn't working. Where can I download the 19.1 and I see it's not in known bugs anymore, does IR work?

BTW, is it really not possible to use twrp instead of lineage recovery? Does migrate work on lineage recovery?
 
Last edited:

xxseva44

Senior Member
May 16, 2019
474
193
Canada
LG V20
Google Pixel 4a 5G
Hi, thanks for your hard work OP and everyone who contributed to keep this old device of ours running up to date. We really appreciate it! It's my first time flashing a custom rom since the phone was released. Phone broke on me after a year of using (stock no root, ig something inside got damaged because of excessive heat) and on it's fourth year of hibernating I picked it up again and it miraculously somehow fixed itself. I'm in LOS 18.1 right now and so far IR isn't working. Where can I download the 19.1 and I see it's not in known bugs anymore, does IR work?

BTW, is it really not possible to use twrp instead of lineage recovery? Does migrate work on lineage recovery?
You can use another recovery if you really want to, although los recovery streamlines everything. And i believe the ota updates may rely on having los recovery, npj will need to comment on that.

Overall, no, you don't NEED to use los recovery, but i'd recomend using it.

Also, no, ir still does not work.
 
  • Like
Reactions: 0ldsoul

npjohnson

Recognized Developer
You can use another recovery if you really want to, although los recovery streamlines everything. And i believe the ota updates may rely on having los recovery, npj will need to comment on that.

Overall, no, you don't NEED to use los recovery, but i'd recomend using it.

Also, no, ir still does not work.
Lineage Recovery is needed for OTA yes.

And, really? IR is still broken?
 
  • Like
Reactions: 0ldsoul

0ldsoul

Member
Mar 26, 2023
13
4
You can use another recovery if you really want to, although los recovery streamlines everything. And i believe the ota updates may rely on having los recovery, npj will need to comment on that.

Overall, no, you don't NEED to use los recovery, but i'd recomend using it.

Also, no, ir still does not work.
I see. I don't really use OTA. I always manually update roms thru recovery.

Yes, it still is broken on 4.4 unfortunately (and there's no sign of what the issue could be since 3.18), although we intend to patch it up once we're done with USB as a whole.

I guess the only way to get LOS 19.1 is thru OTA? I went to LOS website and there's only 18.1 available.

If 19.1 becomes available and I'm in 18.1 rn do I have to factory reset first before flashing 19.1?
 

npjohnson

Recognized Developer
I see. I don't really use OTA. I always manually update roms thru recovery.



I guess the only way to get LOS 19.1 is thru OTA? I went to LOS website and there's only 18.1 available.

If 19.1 becomes available and I'm in 18.1 rn do I have to factory reset first before flashing 19.1?
Just follow the wiki guide, everything will work fineJust follow the wiki guide, everything will work fine
 
  • Like
Reactions: 0ldsoul

npjohnson

Recognized Developer
('h830', 'Wednesday, 2023-03-29')
('h850', 'Sunday, 2023-04-02')
('h910', 'Thursday, 2023-03-30')
('h918', 'Thursday, 2023-03-30')
('h990', 'Sunday, 2023-04-02')
('ls997', 'Sunday, 2023-04-02')
('rs988', 'Sunday, 2023-04-02')
('us996', 'Thursday, 2023-03-30')
('vs995', 'Tuesday, 2023-03-28')

Here is the build schedule for 19.1
 

0ldsoul

Member
Mar 26, 2023
13
4
Sorry if this is not allowed here. I just want to ask my v20 is still suffering from thermal throttling. Is my phone bad or does v20 really act like this? I'm in Los 18.1. I only do browsing and watching videos. I know this phone broke on me before due to excessive heating it even reached 50°C+. Currently the highest I had is 47.2°C while using. Are there any mods for Android 11? I saw one for Nougat. I don't think it will work on newer versions.
 

d2xTaimen

Senior Member
Dec 30, 2021
89
32
Virginia
LG V20
Google Pixel 2 XL
Sorry if this is not allowed here. I just want to ask my v20 is still suffering from thermal throttling. Is my phone bad or does v20 really act like this? I'm in Los 18.1. I only do browsing and watching videos. I know this phone broke on me before due to excessive heating it even reached 50°C+. Currently the highest I had is 47.2°C while using. Are there any mods for Android 11? I saw one for Nougat. I don't think it will work on newer versions.
I don't have much to say for you software wise but you can try to replace the thermal pads and see if it yields better results for you.
 
Last edited:

Top Liked Posts

  • 2
    And it's pushed, managed to set BCL up in a way that almost fully sorted out random reboots on my bad battery, although it can still reboot if the GPU is being taxed at low batt levels since BCL doesn't throttle it by design.

    Next builds should have it bundled in. If those values don't fix the random reboots on other models, i doubt we'll be able to actually fix this issue without destroying performance for everyone... because the only real alternative is to lock the CPU at its BCL-mitigated clocks at all times, and having it forcibly underclocked to 1.0GHz to simulate that is definitely not ideal.
  • 4
    I believe that @0ldsoul was referring that the device when restart has the time/date messed-up until it get access to any network so it can synchronize the time/date.

    I tested in my device putting in airplane-mode before restart was correct (8 May 12:50 PM) and after restarting it was "wrong" (May 14 14:54).

    But after setting airplane mode to off, without connecting to any wifi, just the carrier. It went back again to the correct time/date just a few seconds after it's available.

    I don't know if the device "can't hold" the info. But since I'm always connected at least to wifi and/or carrier my time it's back before I even think about it.
    Mmm time services is broken, I'll work on it
    3
    Seems like the vulkan not detected bug is back but other than that the rom is suprisingly smooth.
    Fixed, sorry about that - next build will have it.
    3
    Seems like the vulkan not detected bug is back but other than that the rom is suprisingly smooth.
    Fix has been pushed, should be in the next build
    3
    Glad I finally found my old v20, Loaded los 19, gaps, magisk, and swankernel with 0 issues. All works well!
    3
    Evem I use original which come with phone < 20% reboot still coming
    This could be fix by undervolting or underclock but this make other bug which sometimes make my phone reboot when browsing.
    No, I pretty sure this not about battery anymore.
    So far it appears H990DS is the most affected by those random reboots, and since battery doesn't appear to be the issue, looks like i'll have to throw a few band-aid fixes on the kernel.

    Funnily enough i can sorta replicate that issue on my H910, but only if i use the old battery i have laying around... hopefully if i tweak the BCL values to prevent my phone from randomly rebooting on that battery, it will work out for others as well.

    Just bear in mind that with BCL becoming more conservative you WILL notice a regression in performance depending on the task and how much battery is left, as well as its voltage level.
  • 20
    lineage-os-logo.png

    LG V20

    Code:
    - Your warranty is now void.
    - You have been warned.
    - Use at your own risk.

    Introduction:
    This is the Official Lineage OS 19.1 thread for the LG V20.

    Downloads:
    Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed.

    Official Builds:
    Unofficial - built once a month by me, includes GApps and Pixel goodies:
    If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

    Known Bugs:
    • IMS (VoLTE/Wi-Fi Calling) doesn't work due to framework tie-ins used by the LG proprietary binaries.
    • Find any? Report them according to this guide.
    Notes:
    • The only supported GApps package at the moment is MindTheGapps, linked on our Wiki page about gapps.
    • This uses a port of Linux kernel version 4.4.
    Kernel Source: https://github.com/LineageOS/android_kernel_lge_msm8996
    11
    ('h830', 'Wednesday, 2023-03-29')
    ('h850', 'Sunday, 2023-04-02')
    ('h910', 'Thursday, 2023-03-30')
    ('h918', 'Thursday, 2023-03-30')
    ('h990', 'Sunday, 2023-04-02')
    ('ls997', 'Sunday, 2023-04-02')
    ('rs988', 'Sunday, 2023-04-02')
    ('us996', 'Thursday, 2023-03-30')
    ('vs995', 'Tuesday, 2023-03-28')

    Here is the build schedule for 19.1
    8
    Builds will roll within a week!
    8
    Time for a small wall of text to clarify a few things about the V20 since i don't think this has been posted on V20's XDA forum before:

    The V20's SoC alone uses A LOT of power when stressed, upwards of 10W if you really know your stuff. Couple that with the V20 probably being the most feature-complete msm8996 phone in existence, and you can get some really high power figures out of it, which makes it hard for "standard phone batteries" to handle.

    That's where BCL (Battery Current Limit) comes in: It's in place to prevent the phone from using too much power and damaging the battery in the long run... it has access to a range of mitigations that go from simply reducing the CPU clocks, to basically restarting the phone or turning it off in case of danger, but of course, LGE didn't tune it that well, so let's delve a bit on how LOS 19.1's (kernel 4.4) BCL differs from LOS 18.1 (kernel 3.18, using LGE's stock values).

    On 3.18, BCL starts acting as soon as the battery hits around 3.5V~3.4V, which is very high for a "current throttle threshold" and doesn't care at all for battery capacity, which is probably why some users complained that LOS 18.1 was generally unresponsive, because the battery voltage could randomly drop when the SoC was pushed in short bursts and BCL would kick in without really being needed.

    On 4.4, we had to balance responsiveness with BCL safety, so what i did was set BCL up in such a way that it would only start throttling the phone whenever the battery is around 3.1V (still within safe operating voltages with some additional headroom) or its capacity goes below 20%, whichever comes first. This way, the phone stays responsive for much longer, and when it really has to be throttled to protect the battery, BCL will kick in, and it WILL shutdown the phone if it notices that the voltage is still decreasing far below 3.1V while the clock mitigations are still in place to safeguard against serious battery damage.

    First at all thanks for dedicated on this device!

    Just curious anyone have issue when battery under 20% phone suddenly restart?
    I on official H990 clean flash, I have 2 battery (original and weird double power) both have same issue when I plug in and wait until <20% battery phone just restart itself.
    It runs great on LOS 18, If you need some info I can provided it.

    Other than that, ROM looks good! Performance was improve from LOS 18 and thermal was little bit cool (I got 3c down when playing game, which GREAT!).
    You're using a H990, which is known to suffer random reboots pretty much any time it's pushed hard enough. This seems to come down to the dual-sim functionality that makes it use more power than the average V20 at any given time. The only solution for that (more of a workaround actually) is to undervolt and/or underclock the SoC. One needs a custom kernel, and the other, root.

    I just tested this and mine happened at 11% however my h910 just shut completely off. It booted back up however with no issue and still at 11% but running any battery intensive app it would restart or shut back off again. Some different games or such refused to load at that battery level. No error was shown or give so unsure how to post a report to help solve the issue.
    Shutting down completely does point to a bad battery that can't hold the phone at lower capacities, though you really shouldn't be running "battery intensive apps" (which could be anything, from a camera app to Genshin Impact) at such a low capacity anyway.

    Then your battery is bad. "Some different games or such refused to load at that battery level", is a tell tale sign that your battery is shot. I'd recomend getting a new battery, or turning off bcl through the terminal as a temporary solution.
    Depending on the state of said battery, i agree that getting a new one is the best approach, but I definitely wouldn't recommend disabling BCL. It's there for a reason, that reason being shutting down the phone to prevent serious damage to the battery circuitry on those very cases. BCL already kicks in by default and caps the phone to 1.2GHz below 20% and their phone still died anyway, things wouldn't be any better if BCL was disabled and the phone was running the Snap 820 at full steam then.
    7
    Hi, I would just like to extend my thanks to the devs for this, as others have done already, for bringing new life to the V20. The difference if performance for me between 18.1 and 19 is nothing short of remarkable. What used to take a second or two is now instant. I'll just use this as an opportunity to repeat some issues that others may have brought up already.

    - Camera freezes are also happening for me, less so than 18.1 though. I am using Open Camera, the stock camera is essentially unusable and can hardly take one picture without crashing/freezing.
    - The camera works fine in other apps, like Discord video calls for example. It does however make the phone very hot over the course of a 10 minute video call, and once it gets hot, camera freezes begin to happen.
    - I can confirm that the Quad DAC is not an option as far as I can tell, but it seems that this is an easy fix as discussed above.
    - I have also experienced app-unrelated freezing, like the whole phone becomes unresponsive for a few seconds, usually while charging.
    - In both 19 and 18.1, I cannot get SD cards to work. It prompts me to format, and when done, it prompts me again, and never is readable or viewable in file managers.


    I also have a few questions:

    - Not to say that you haven't done so much work already, but is there any bottleneck for getting LineageOS 20 working? I know this one was hard because of the outdated Linux kernel, but such an issue wasn't brought up in the version 20 blog for example.
    - Are there any developer options you recommend that might make the phone more stable or handle better? Again, not to say that it isn't already lightyears ahead of 18.1.

    Camera freezes are expected unfortunately, there's few improvements that can be done, but it still won't be 100% stable unless we rework the whole thing (which takes a LOT of time)

    Quad-DAC is in the process of being overhauled right now, so while it's being restored as a tile for 19.1, 20 will likely get a whole panel for it, with multiple configurable settings and such.

    That general freezing never happened on any of the internal team's devices (be it G5, V20 or G6), though i guess your specific device could be hitting a corner case on USB or something since it also isn't fully implemented on the kernel yet and lacks some VERY specific features, like using the V20 as a MacBook and slapping a fully powered hub to it. As for SD... yeah, really weird, and definitely not something we have any idea how to fix since it already basically works (also have a H910 and it's been working perfectly fine).


    Now for the questions, which npjohnson already answered but a bit more info is always welcome:

    Up until a while ago, there was a big bottleneck for getting LOS 20 working, that being File-Based Encryption... It just did not work due to what seems to be our older Keymaster from LG. Funnily enough this problem is also shared by the V30 and it had official LOS 20 nearly unshipped because of it. But as of recently, we'll be able to ship 20 with an exception for FBE, so it should come at some point albeit without support for encryption.

    Not really, no developer options or "magical tweaks" will help the phone become more stable, run faster, etc. Those kinds of improvements should be coming in future updates and it's not something a user can tweak inside the ROM.