yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Yea mk2000 is the kernel to run on stock, I'm running a modified variant of it myself (built with clang/llvm 8.0 instead of gcc, clang has explict optimization support for kryo cpu. Havn't benchmarked it lately and its hard to tell a difference because mk2k performs so well to begin with).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Are you sure it still umounts on yesterdays? I thought I cleaned that up, I'll review later.

Anyway your luck on decryption really depends on if/how much your oem butchered vold, in theory, and I'd start with, just setting TW_CRYPTO_USE_SYSTEM_VOLD := qseecomd in your boardconfig. I've jumped through so many hoops and hacks to try to get and keep decryption working with stock roms and lineage, but with the oreo update LG did something that has thwarted all my efforts to start vold in recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
Did you compile this or is it available somewhere?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cityneversleepz:
Yeah, I didn't want to keep my problem alive here last night after cnjax helped me out. I thought the mk2000 kernel fixed the problem because when I booted back to classic rom, it did not vibrate. However, the problem was still there on next reboot. In fact I was getting "unable to mount firmware" error in twrp. I just fixed it by flashing the ls997 full zip zv6 . That resulted in twrp message saying to make sure I flash an LS rom and not a VS rom or I'll still have Vs firmware. The error is gone now and I'm installing Lineage again. No vibration. This is what I get for getting daring with the V20 now that I've got a V30 for my daily driver. Still love this phone and don't want to screw it up. Thanks for reading. Thanks for helping.

Johnny
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
It's available on his Github repo linked in the OP (device tree).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jtl999:
Thanks. Running Lineage, not LG ROM but I'll take your points into consideration next time I get around to testing this.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
I was asking about a compiled version ready to use, its been a while since I last compiled something and it wasn't for Android.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Near the bottom of the OP. Flash in the TWRP you already have, reboot to recovery and you'll be good to go.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
I was talking about the mk2000 modified kernel Phoenix591 uses not his TWRP.

You can see that if you look at the text I quoted in my post, sorry if I was not clear enough.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Ah, got you. Apologies.

In that case, you'd have to ask [MENTION=8639605]Phoenix591[/MENTION] if he has a version compiled separate to his TWRP builds as a whole. The kernel isn't under a separate repo so I can't say for sure.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yes it is, its filed under its own branch under my github repo, built myself (since I'm dual booting a Gentoo install its super easy to get clang and llvm with arm64 support by editing a config file and rebuilding <3 USEFLAGS)

I'll throw together some zips in a couple minutes and will throw them on androidfilehost occasionally in that folder.

Don't bug MK2000's author if something breaks specifically in these and not his regular builds (not saying you will, but just in case some one else see these and goes ooh shiny!)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] darkknight200:
Thanks for the release. I flashed the us996 Santa version and it's up and running smooth for me. No bugs here.

PS. Your thread title year is 2018.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Buzzy42:
I had a weird issue when trying to wipe my VS995 to remove encryption-- it didn't seem to work at all in 3.2.3-5, and my phone kept coming up on the initial setup (after installing A-O Oreo rom 1.3.1) that the data was still encrypted and wouldn't let me proceed without doing a factory reset. (Which of course I thought I did inside TWRP) As soon as I rolled back to TWRP 3.2.3-4, it worked fine. I'm ok for now, but just mentioning it in case anyone else has issues.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
you can't do a regular wipe, you have to go to wipe-> format data.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Buzzy42:
Sorry, should have been more clear, I did do that-- the whole having to type "yes", etc, thing. I tried 2 or 3 times, but when I did the same thing in 3.2.3-4 it worked fine. Could have been a total fluke, as well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
alright weird, can you hit me up with the log? Otherwise, mind testing a new version? Apparently a few days ago TWRP tagged version 3.3.0. I'm uploading some new builds right now
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Buzzy42:
I didn't grab the logs, because at the time I was thinking it was an issue with the ROM, not with the wipe. :/ I grabbed it and installed it- I didn't know the best way to test it. I tried a full data wipe and it worked, and the phone booted up and needed to be set up again. (which means I assume it would have worked if my data had been encrypted still?). I didn't re-encrypt anything, though. (I never specifically encrypted the phone before, just set it up without doing the "format data" when I moved to Oreo because those first couple of days it wasn't realized you'd have to) New build seems fine!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wolf45801:
I also had the same issue on the -5 one so he's not thre only one once I put the older build on it worked np can't wait to try 3.3 build I'll probably flash that after work today if its not too late
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
How do you do this? And have you tried to run Android emulation in it? Haha! Haven't built Linux in years... Drivers used to be the issue. I assume this is desktop build how to you use on monitor and charger at the same time? The HDMI charge adapter I bought will not display and charger at the same time. Does it work for you? If it does I need to find another one. So if you by have a suggestion... Thanks for all your work btw!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Driver support in general is good on Linux, though laptops that toggle between integrated graphics and a dedicated gpu can be annoying to setup. If you don't know what you want to run on linux, try something like opensuse or one of the ubuntu flavors, if you know what you want (like which desktop environment for example) try Arch Linux or Gentoo (by default the installation, which is you following a manual, gets you a command line, and you install exactly what you want, and gets new versions of applications quickly) Gentoo in particular compiles you install, and has easy switches to tell it what to build support in for and the package manager does the rest

I do have on of those usb-c hubs with a charge port and ethernet and hdmi out, but I don't use the latter two so I couldnt say, but getting it to both charge and use something plugged into one of the usb at the same time varies depending on the kernel installed (and its been long enough I forgot where it worked, lineage, stock, mk2000, gamma, stock lineage, stock lg?)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
So Gentoo/arch will build a dual boot recovery? I thought you would need a special version of TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Man, I'm talking about my pc... though I do have a gentoo chroot (chroot means basically a seperate install, but using same (running) kernel and network) on my phone too
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
You had me super excited for a bit there... Imagine v20 with full blown native Linux kernel... I could use it to modify my phones then. Ultra Portable phone modification! My 2006 MacBook is getting a little old. For Linux on your phone are you using userland?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Not sure what you mean by userland in this context.. android kernels are linux kernels with added drivers, and yes the chroot is a "regular" gnu userland (a full arm64 gentoo install), but compiling from an android source checkout (which twrp requires), takes up loads of diskspace (8.1 G of sources, producing another 8.3 G of output, though for a single device it would be just 1.1G of output) and uses prebuilt compilers and other tools that are only provided for x86.

Could build the kernel, though it'd take longer than my desktop.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
It always takes excessive amounts of space to build for Android doesn't it? Like 100s of GBs right? Though yes I thought it would be quite a process. There has only been a few Linux alternative to Android over the years for a reason. Only one I know of that didn't come with specific phones built for it. Halium and it's a ubuntu touch. As for userland take a look at this from Google play, it's neat but didn't quite work the way I wanted it to.

https://play.google.com/store/apps/details?id=tech.ula
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Hundreds? More like 20-30ishfor a full rom depending on how many devices, building TWRP is literally building part of a rom.

Chrooting, is the same general thing as that app, but I do it with a root method (I made an image, basically a partition within a partition by using dd to write to a file, then making a filesystem on that file, then mounting it (making it available to write inside), and extracting a gentoo stage 3 (basically core system) inside) , and I've migrated from using a specific app to do it to just using a terminal emulator and setting it up myself.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bigcletus:
Hi, can I backup A-O Oreo rom, try some other roms and then restore my Oreo rom later on? I don't have encryption enabled, but I'm unsure if stock Oreo roms, even modified stock Oreo can be backed up then restored. Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
Yes they can
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jtl999:
Just thought I'd ask. What "base" (sorry if that's not the correct term) are you using to build your H990 TWRP images? I'm using lineageos-15.1.

Just making sure I'm doing everything as similar as possible while I work on my own build to fix the decryption issue I mentioned.

EDIT: Think I see your usage of OmniRom in your device tree, this is making more sense now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yeah, omnirom 7.0 but an oreo based kernel ( a very slightly tweaked version of mk2000 actually).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aygross1929:
Are you able to add adreno idler gpu governor to ur version of mk 2000?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
..Why would he need to add another governor to the kernel that runs TWRP?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aygross1929:
I meant to his current version of the mk2000 kernel listed a few pages ago
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
able? probably. Willing? no thanks, I really want to keep the differences from regular mk2000 as few as possible. I'm mostly doing those builds for myself and want to keep it easy to stay in sync.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] KOCOBO:
Hey man, since I couldn't open my 3.2.3-1 TWRP, I wanted to update to this 3.3.0 version but since I couldn't get to the recovery i flashed through adb/fastboot. It went ok but when I try to access it, its just black screen. What should I do? How I can install TWRP without using it? BTW. Its H990DS version.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
Hey [MENTION=8639605]Phoenix591[/MENTION] [MENTION=2372569]seaders[/MENTION] seems to have solved the /data decryption problem for LG V30 on Oreo (8.1).

He/she even thanks you in the post.

Can this work for the V20? or is it a different vold implementation?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Will take a look.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
[MENTION=8639605]Phoenix591[/MENTION]

Recent LS997 builds fail to keep /system mounted for me, it gets unmounted after a few seconds after I mount it from Mount menu. /system gets mounted briefly, I can see it mounted in df output for a few seconds.

Error messages in the log:

Failed to unmount '/system' (Device or resource busy)

...

Failed to mount '/system' (Device or resource busy)
​

I don't see anything else relevant (AFAIK) in recovery.log or dmesg output. /system partition is clean, ran e2fsck on it, no problems.

Don't see any processes locking the partition, running "lsof 2>&1 | grep sda18" lists nothing.

Builds exhibiting this problem:

recovery-twrp-ls997-2019-04-07.img

recovery-twrp-ls997-2019-04-01.img

recovery-twrp-ls997-2018-10-18.img

recovery-twrp-ls997-2018-09-30.img

2018-08-17 build of 3.2.3-0 works.

I have an LS997 running Nougat-based AlphaROM (stock-based, non-AOSP).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Uploading some new builds that redo how encryption is handled (back to more like the much older builds), that may help.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kevin.Silbstedt:
Just for information and so others are able to find a reason via google:

I tried flashing the newest Alpha Omega 1.3.0 on my H918 with TWRP 3.3 and was unable to do so.

I got some decryption error on every start and that the data would be corrupted. Using 3.2.3.4 (2018-10-18) fixed this. Seems like other devices are affected too.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
That link doesn't work, the one on the first post does.

I tried the beta build, /system read only button can be depressed now (a problem I posted before here).

It still does not mount /data on stock Oreo, I do not have a password set, do I need to set one?

It also takes much longer to load, I am guessing trying to mount something.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
if it can't mount encrypted data without a password it won't be able to mount it with one. The extra time it takes is it trying to do so.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
OK, thanks.

I got the recovery and dmesg logs if you want them.

They confirm that decryption does not work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] FNetV1:
It looks like I did the right thing in avoiding the Sprint variant and ended up purchasing the H918 (T-Mobile Variant).

Having my whole family currently under Sprint and I am the only one that is a T-Mobile customer, I wanted to have an unlocked phone that can actually perfectly work on all 4 major US carriers and the phone needed to have a removable battery as I won't purchase anything with non-removable battery (I am boycotting phones with non-removable batteries and the more difficult they make to remove the battery (eg: Samsung Galaxy 9S+ requiring a heat-gun, new glass back cover because you WILL break yours, and more) then the more I would boycott it.

Well, I was excited to know that the LS997 Unlocked Sprint variant was compatible with all the LTE and 3G bands from Sprint (Obviously being a Sprint device) and T-Mobile, the only T-Mobile band that LS996 doesn't support is 66, which wouldn't have bothered me anyway, all the other supported bands for my device works in my area and all the other areas I go to. Also its fully compatible with AT&T's and Verizon's bands. In other words, its the perfect LG V20 version to have if you would like a device that can work in all 4 networks with both its GSM and CDMA modem active.

Everything was fine until I started doing research before performing the actual purchase: How to root the LS997 phone. Once I read that it was essentially unrootable, which is a big surprise that Sprint would take a stance similar to that of AT&T in severely locking down their devices. This was a huge disappointment, but I still wanted a phone that can work with Sprint if I decide to switch to Sprint in the future. I spend a long time research every single variant of the LG V20 phone in search of another variant that had both its CDMA and GSM modem active. I research the Verizon's variant and learned that Verizon's variant barely works on other networks, its missing lots of Bands, and for T-Mobile Band 12 is non-existent so that one was also a no go.

I gave up and just purchased the unlocked H918 after days of frustrative research and coming up with virtually zero hope and no future hope for getting an LS995 unlocked with the understanding that my H918 will only work perfectly on T-Mobile and AT&T and all of its MVNO's. Sprint is basically completely out of the loop for the foreseable future. They have basically lost me as a prospective customers and my parents are saying that they are considering switching over to my MVNO based T-Mobile provider which is Ultra Mobile because I pay $25 for a 5 GB data with unlimited talk ($31 when you add the taxes and fees, that's my final bill) and that is significantly cheaper than what they pay for their 3 lines unlimited family plan with Sprint, the only problem is that they are tied with a contract that expires on the year 2020 so they would have to put up with Sprint until then.

So yeah, Yesterday I just received the H918, right now I just finished downloading all the required file+ Images, and I am currently in the process of rooting it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aCIDsLAM:
Encryption

Hello all,

i am drying for several days to get a running LG V20 H918 / Lineageos 15.1 with enabled encryption.

What is the valid way, to enable it?

Enabling it in the rom settings (is it the right way?) always reboots the phone, starting the encryption, leading to a bootloop.

Taking the Battery out and rebooting the phone shows my sometimes my phone is encrypted. But depending on the TWRP Version, i cant unlock the data in recovery.

I managed once getting it running with an older build from 2018, but i had the feeling, the data partion was corrupted?

After installing more programms, it lead to a boot loop again, letting me format data and starting again, having the same problem after a while.

Am i doing something wrong, alltogether? Do i need to flash and encrypt with encryption3.zip?

Encryption3 doesnt reboot for me in recovery.

I would be happy for a small lead or hint. Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Don't bother with he encryption zip, did I not write in it's description stock only don't bother on lineage go through settings? Doing through settings in Lineage worked most of the time last time I set that up. If having issues in twrp once it shows encrypted try the beta version linked near the top of the op.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aCIDsLAM:
Using encryption ZIP was only another try, to get somewhere. Using the latest TWRP beta, it doesnt accept the decryption password. Downgrading to 3.2.3-1 lets my decrypt the data partiton again but still not booting into system. I may try enabling it with older LineageOS Builds. Maybe that is a working way.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Hmm, it was way back in July 2018 x86cpu and I got it working in both (on 15.1), but I havn't touched encryption with lineage 16 yet (because he said hes working on possibly setting it to use FBE, so want to wait on testing/tinkering there until its mostly ready on lineage's side)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zinou213:
Can we know what is this kernel specs ..."MK2000-CLANG" found in your AFH ???
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
Read back a few pages there's been discussion about it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] angilinmago:
bug: can't recognise the otg usb straightaway, had to do the data wipe every time and otg usb shows up as otg (USB) 1, which is strange
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
Now with this build (2019-04-22-ENC Beta) it refuses to mount my encrypted /data, although I give it correct password :) System stays mounted, though.

I'm running stock-based ROM (last Nougat-based AlphaROM) on LS997.

Btw, I've retried twrp-3.2.3-0-ls997.2018-08-17.img, and now it also unmounts /system soon after mounting, although it used to keep it mounted earlier. Qseecom exits with exit code 0 soon after mounting /system, so maybe that's the cause or related. Snippet from dmesg on 2018-08-17 build:

<6>[ 568.837953 / 05-02 20:05:15.689][3] EXT4-fs (sda18): mounted filesystem with ordered data mode. Opts: (null)

<7>[ 568.837987 / 05-02 20:05:15.689][3] SELinux: initialized (dev sda18, type ext4), uses xattr

<13>[ 568.950360 / 05-02 20:05:15.809][1] init: Starting service 'qseecom'...

<13>[ 569.010588 / 05-02 20:05:15.869][0] init: Service 'qseecom' (pid 2548) exited with status 0

<13>[ 569.010708 / 05-02 20:05:15.869][0] init: Service 'qseecom' (pid 2548) killing any children in process group
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
its what it says on the tin, its literally the oreo version of mk2000 (as of the date it they were built), but with minor programming changes that allow it to be built with clang, a totally different compiler than gcc (the traditional compiler used). Clang claims to offer optimization specific for the kryo cores of our SOC. Benchmarks are still pretty comparable though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aCIDsLAM:
Well it seems to be an OS issue.

With the mentioned TWRP, i can encrypt with LOS 16 where it failed with 15.1. To bad i have camera issues there, so still not all i need but thats no twrp issues.

Thanks for keeping the last modern phone with replaceable battery alive with your work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Dirty flash 16 over 15 (only need to do setup and maybe gapps in 15) to fix the camera
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aCIDsLAM:
Thats what i did. Some boots the camera works, but mostly not. Well i posted that too in the rom thread.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Check the latest build in the 16.0 thread now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jtl999:
Tried 2019-04-22-ENC Beta on my H990 with x86cpu's LineageOS 15.1 build from December (yes I know I should update, will do soon(tm)). Decryption fails regardless of password being valid or not.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mikekote666:
Well personally i think the v9.1 GCC is better than v.8 clang

Can i ask if you'll keep up the work with the kernel or not as we have a new beta release v2.2

Thanks for the awesome work with the 2.1 really amazing and the added optimizations made phone faster in overall use
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] gr4ffitiktime8@gmail.com:
Heya, Im having a problem with the latest TWRP build (3.3.0-0), whenever I go and upgrade my TWRP to 3.3.0-0 it completely bricks my TWRP partiton (no longer able to boot to TWRP). Does anyone know a fix? I have no need to upgrade my TWRP version, but its always nice to have the latest. Thanks! :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SrdjanPsy:
Somehow I downloaded the image for F800 instead of H918 and I even flashed a stock rom in it, but custom ones gave me an error. Took me a min to realize what I did and reflash the proper img. Thanks so much for keeping V20 up to date!