yashsingh1/xdaforums huggingface dataset:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
Great to see this excellent piece of hardware receiving some proper software. Sending good wishes to all the people working on this; I will 'lurk' a while and see if the builds are stable for a little while as TWRP and this ROM are very new and I just migrated to the V40 as my main device but I hope to dive in a week or two once things have settled.

Great job!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] nanorta:
Hi,

Will Locked V40's works with all carriers if flashed with this rom ?

I'm living in the EU and thinking about buying a Sprint LG V40 but not sure if I can get it working here ...

Thx
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Okay I added this note to my LG UP thread, cross flashing no longer sim unlocks the device...so if you're going to buy a Sprint V40 make sure it's already unlocked, if not then you must stay active with Sprint while living in the U.S for X amount of months and have them unlock it for you.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
I bought mine off of Ebay. As soon as I was ready to root my phone, I was able to sim unlock it as well because it wasn't bought through Sprint.:good:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] cephasara:
What GApps are recommended for this rom?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
These ones https://sourceforge.net/projects/opengapps/files/arm64/beta/20190928/
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] lowridincrew,:
Damn, well I guess I have to buy a donor board because I definitely bought a Sprint locked phone.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] cephasara:
Thank you!

Unfortunately, when I follow the guide linked here on how to flash roms I am unable to get it working. I installed the LOS17 when on slot A (so it was installed to slot B) and then rebooted to slot B and installed gapps. When I reboot my phone freezes at the boot logo.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Simply freezes? Doesn't do a single boot loop into the bootanimation?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
are you on pie firmware in slot B too?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
Edit, wrong answer by me. Asked questions on TWRP thread.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Hello,

Any updates on the stability of Lineage 10? If and when it will go Official, or improve from Alpha.:confused:

Thanks:good:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Atm waiting for new security patch and more Lineage source side fixes. The later are kinda the only reason i call it alpha btw ^^

Official requires a bit more work (sepolicies need to work for enforcing, device functionality has to be fully there, idk about kernel version actually...). Also would need to apply to go official, been even too lay to do that for the V30 since.. idk, january xD

My current build runs as a daily driver for me (a bit newer than whats public here), to see for the last few bugs here and there, hopefully ^^

Just be patient, updates will come in time
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Awesome no worries, thanks for all your hard work. I appreciate you bringing new life to what i think is a really great phone.:D:good:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] t3chfr3ak:
Do all of the cameras work and are you able to toggle between them in camera apps? Also, are the amp and dac functional? I'm going to buy this phone for the audio specifically as I have headphones which need it (Sennheiser HD6XX) and I don't want to lose that functionality. Hopefully we'll start seeing some ROMs (like this one) that incorporate some of the features that were designed for this phone because I really want to have them
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Cameras work, as long as the camera app you use supports that many cameras. Snap (the default one) doesnt for example. Open camera on the other hand has no issues.

DAC works (even though it sometimes can happen that it decides to turn itself off, or atleast turn some modes off, so gotta investigate that part).
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] dreamss29:
MTP？
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
I know, its been a while, been busy with uni, but got an update for you (using it as my daily driver)

Release 02.11.2019

- Updated LOS sources (October security patch, other things)

- Switched to Z01R prebuilt Display and Media HALs

- Building nearly everything except the necessary prebuilt from source (Display + Media HALs)

- Fixed Wifi hotpot

- Vibration wont **** up anymore (but is weaker instead for some reason)

- Tons of other stuff i might have forgotten
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phoe zay:
Please detail instructions
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
instructions on what?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Awesome can't wait to try this again, have been using Pixel Experience:good:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phoe zay:
I mean installion guide detail.

I afraid to lose my bootloader

So I want installation guide sir
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phoe zay:
Can I follow this instructions?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Markus,

I install Lin 17.0 then Gapps, then TWRP, then Magisk. When I go to reboot I get stuck on start screen bootloop.

Do I need a patched boot image with magisk, or can I install Magisk and then install a boot image?:confused:

Also where could I find them if needed, if you don't mind.:good:

Thank you,:cool:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Android4Lif:
Never mind I installed it b:confused:ut the download on the 1st page has the September build, where is the updated one located please?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Install Lineage (with ticked inject twrp or with installing recovery ramdisk from advanced menu in twrp and then selecting the twrp image) -> reboot to other slots recovery -> THEN install gapps/magisk.

for whatever reason XDA didnt apply my changes it seems, updated links, then posted changelog, but somehow the link update got lost in the void... thanks for pointing that out :)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
ROMs never affect the bootloader, they only touch: system/vendor/boot/vbmeta/dtbo (vbmeta is disabled by default on Lineage, dtbo is some kernel overlay stuff).

Im not fully familiar with devices that didnt unlock their bootloader the official way like mine (perks of living in europe i suppose), but make sure that the slot you install lineage to is on pie firmware.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Thank you. :highfive:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phoe zay:
How about PE rom I got randomly reboot and error on AOD
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Not for me, it has been the best along with RR for being the most stable.:fingers-crossed:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] r. 1982:
hello I have a question all versions can unlock bootloader and upload costum ROM ?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] pwazoski:
Custom

Read the first page to find your version
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] galwail:
Markus, thank you very much for your work on this beta release. How stable is it now? Is anyone here using it as their daily driver?

How dangerous is it to run with SELinux in permissive mode? Will it crash the OS if I switch it to the enforcing mode?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Im using it as a daily driver (just a slightly newer build). The OS very likely wouldnt crash, but lots of things (like wifi, camera, or whatever) might stop working.

Why would running SELinux as permissive being danerous? As long as you dont install any suspicious apps (or something installs which can get root permissions without you wanting to)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] cephasara:
Yeah, this basically. But now I don't even remember what I did to get it to do this

I installed "lineage-17.0-20191102-UNOFFICIAL-judypn.zip" on both slots a and b. Then I attempt to install "open_gapps-arm64-10.0-micro-20190928-BETA.zip", but it gives the following error:

This GApps pkg is for Android 10.0.x ONLY
Please download the correct version for
your ROM: 9.0.0 (SDK 28)

Which doesn't make sense as I installed lineage 17.0 to both slots.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
Maybe fault of gapps as they're old

Try Nikgapps recent version
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Thats the same Gapps version i use ?

You sure its installed in both slots? You installed the zip, injected twrp one way or another, then went to reboot, selected other slot, rebooted to recovery, then installed the zip (again), injected twrp again, rebooted to other slots recovery again and installed gapps?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Z3ROGRAV1TYx:
This is so frustrating tbh. I really hope to see support for the US T-mobile variant in the near future.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
For that you would need someone who finds an exploit to unlock its bootloader first (cant use the same as the other models, because different hardware signature... tmobile doing their stuff ?)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Seagull_TL:
Can we root this version (I don’t find SU files for the LOS 17) ?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
Use magisk 20.1

add su by lineage won't be provided from los17 onwards
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] theandrewgordon:
I flashed my 17, but the after reboot it does the 17 loading screen for a while then reboots and after the lg screen goes black... I imagine I missed something... Cant get back to twrp with keystrokes...

suggestions?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Seagull_TL:
I had tried (install Magisk Zip with TWRP) but after that the phone don’t boot (lineage OS boot animation in loop). They is an other way to install Magisk on this LOS 17 ?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
You probably tried older magisk. Try 20.1
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Seagull_TL:
Is the version I tried this morning and phone still stay in boot animation and finaly reboot on TWRP.

I boot on Lineage OS 17 => adb reboot to bootloader => installe TWRP => wipte / format => install Magisk 20.1 => reboot to systheme (I had also tried no-verity-opt-encrypt-6.1 but it no work). After that I need to flash again Lineage OS to boot on it again.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
There you have the issue ... you install the TWRP from the thread, in the slot which has already the LOS boot image in it...

When you already have TWRP, you install the rom with ticked inject TWRP, that will automatically install TWRP into the just flashed roms boot.img

or you do that manually afterwards by going to advanced -> install recovery ramdisk (or similar), and then selecting the TWRP img on your phone/sdcard.

Installation then is basically (in TWRP):

Install -> select LOS zip -> tick "Inject TWRP" -> Swipe

*wait*

go to reboot menu -> select other slot (if on a, select b and vice versa) -> recovery

TWRP from other slot will boot

Install gapps/Magisk

(or basically whats in the TWRP thread)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Seagull_TL:
Thanks a lot, I’ll try that in the week. An other question, before Lineage OS my V40 boot alone when I plug it, whith lineage I have no charge animation and no boot (I need this boot on plug for my project), did you know à tips for that in LOS ?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] monocle503:
Is this Verizon model compatible?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] theandrewgordon:
After opening Google maps, my dpi get screwy. It makes the whole display go big top left corner and everything in it big...

I'm on Los 17 and magisk 20.1
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
For some reason Google Maps on Android 10 sets the resolution to 720p ... also happens on the V30.

Dont ask me why, will very likely end up just kicking all other resolutions out of the kernel.

Use an older version of Google Maps for that (or Maps Go).

PS: Resolution upscaling only works with LG Stock display HALs, thats why its just 1/4th of the display, because its not upscaling with qcom display hals (that actually work with open source stuff, unlike LGs modified till no end crap ... >.> )
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Nanakwameampong:
I just got myself the LG v40 thinq and want to know if anyone has problems with the battery? Also how can I install this amazing custom rom on my LG v40?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Alexander2901:
Hey sorry for asking you not in the right place, but i really need help. i recently bought new LG v40 (Pie), and when i charging it the ampere capped at 350-400 mA. But when i using the same charger on Samsung S8+ the ampere bumpped at 1010-1020 mA. Why? I need your help ASAP thank you
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Little update for yall :)

Working on more in the background, but that requires time... complete kernel rebase, may fix a few bugs here and there (and also savely should be an updatable kernel then in the future, which our isnt really atm)

Release 05.01.2020

- Updated LOS 17.0 to LOS 17.1 (december security patch, pixel feature drop rebase)

- Updated Z01R prebuilt Display and Media HALs to final

- Using V405EBW 20d (November) proprietary files

- Added SDFAT driver for exfat support by the kernel

- Few wifi changes

- other things i may have forgotten
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] CryptoAhash:
Hi,

I have tried to do a kernel build based on the sources you have on github, but the kernel does not compile on my side.

Could you please elaborate?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
1) which toolchain do you use?

2) which error are you getting?

3) are you using all commands with O=out parameter? (common error)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] CryptoAhash:
The toolchain to also build lineageos-17, I have the kernel sources in the kernel/lge/sdm845 directory of the lineage sources.

brunch'ing judypn picks up the kernel sources to compile.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Z3ROGRAV1TYx:
Love that this exists.. annoyed I still can't get it.

Really hoping someone works on unlocking the bootloader to the T-Mobile variant in the near future.

Edit: https://support.t-mobile.com/docs/DOC-1588#secondheading

I have the "T-Mobile Unlock" app on my device, after reading their site, I'm still not sure exactly what this does? But does this unlock the bootloader? So if I meet those requirements, then do a permanent unlock, I will be able to root/flash Lineage no issues? Or is this for using other sims?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Im 99% sure its only for sim unlock (like on the V30). Except someone finds some exploit, theres no chance for you :/

(Also you would need your own LOS build specially for the TMobile V40, as so far all tmobile variants used different signatures also for the firmware used, so those need to change, otherwise you have no display/audio/and so)

So youre compiling the ROM?

I just checked, i never updated the dependencies lol

they have the old lineage-16.0 branch in them, so you very likely have outdated sources
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] CryptoAhash:
Yes I am doing a ROM build, but it is failing at the kernel compile currently.

If you could push the updated files and kernel that would be awesome, as I want to do a build for myself.

If you want to PM me the steps that would be even cooler! :)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
just get the lineage-17.0 branches for everything

in the .dependencies file its still 16.0 >.>

everything is up to date on my git

Edit: then again, i never used brunch or so

always manually cloned, then . build/envsetup.sh, lunch lineage_judypn-userdebug and then the mka bacon xD
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] vulcan4d:
I support this project! Where is the donate button!? :). I will jump ship once the hotspot is working since I use it a lot but Android 10 Lineage + Gcam....that's the dream.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] axelhimself:
Unable to mount storage

Hi,

after installing TWRP and flashing LineageOS 17, I get the message "unable to mount storage" and the system is unavailable. What went wrong? I tried to install microG on your LineageOS 17.1 which doesn't work an then i refurbished the phone via LGUP to V20a. After that I tried the installiation of TWRP and Lineage again and got this error message.

Thanks for you help and your great ROM.

Axel
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] CryptoAhash:
microG is not "yet" supported on lineageOS 17. I also have the unable to mount storage (SDCARD) as I thin it has to do with that my SDCARD is from my older phone with LineageOS 16, guess it has to do with the encryption or something?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
You get the message in TWRP? then you didnt reboot to the other slots TWRP (which got installed via inject twrp which you should have ticked). SeeTWRP thread for ROM installation instructions

microG wont ever be supported by LOS. Last statement i read about it, was because package name spoofing is a security risk, so they dont allow that -> no microG

Which sdcard? which filesystem? Newest release should be able to deal with exfat just fine too (atleast does for OTG devices, didnt try a normal sdcard)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] axelhimself:
I solved it yesterday. Problem was the encryption after flashing back to Stock. But I had to flash a little different to the description:

1. Flash to V20a stock firmware with LGUP (refurbish mode) (all newer versions stuck after flashing TWRP)

2. Flash TWRP via fastboot as discribed

3. Reboot to system

4. Boot to recovery

5. Flash LineageOS 17.1 (with Insert button activated)

6.!!! under Advanced flash TWRP to ramdisk!!! (otherwise reboot to recovery didn't work)

7. under Reboot switch to B and reboot to recovery

8. flash gapps and Magisk

9. Reboot

That worked for me.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] patato21:
I love this ROM, it's fast, snappy, and battery life is amazing. Have not tried GCAM to test out all the cameras. I come from the V35 but WiFi issues led me to this downgrade.

Just some issues:

-Google maps DPI glitch shrinks screen to 1/4

-SystemUI doesn't change icons correctly (battery).

-Sometimes you have to adjust Quad DAC gain for high impedance mode to kick in correctly.

For the Google Maps bug, I was thinking about possibly using HALs from other vendors. I remember on the V30 this fixed many issues by borrowing from another SDM835 phone (can't recall model). The TRANSIT app based on Google Maps doesn't have this DPI glitch, and installing different DPI APKs did not fix this. Anyone know of a working Google Maps version?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] vexille:
Lm-v405qa7usabk

Recently purchased a brand new OEM unlocked version of the v40. What process do I need to follow to load this ROM?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Hotspot works. As the builder (I self-build LOS using Lineage + SGCMarkus' sources) you have to do a certain 'repopick' with git in order to enable it, but it does work.

I believe Markus does this for all his regular builds anyway, and I've tested it working perfect on my own self-builds.

We also have a working/stable GCam 6.1 with working configs for no shutter lag :p
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] switchgott:
[MENTION=5988026]Redline[/MENTION]

How is about your battery life time?SOT?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Depends how heavily I use it. If I'm just using like apps like Boost for Reddit, Facebook Lite, etc. on half brightness I can get 8-10hrs. With more regular/typical usage it's more like 5-7hrs.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] banesi:
What about video recording, 4k 60fps possible?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] nba100:
Some problems about lgv40 lineageos17

As for the third version of lineageos17 (January 5), I have been using it for a period of time, and I feel the system is quite smooth and power-saving. Now I just want to talk about the remaining problems: 1. When security options are unavailable, the other phone can be connected. 2. Do not use NFC sim card to brush the bus. 3. After brushing the Gapps, the mobile phone interface sometimes appears "android.process.media repeatedly stops running". 4. You can't use face unlocking, the whole hardware of Lg v40 supports face unlocking, why doesn't Lineageos17 have face unlocking? 5. When you open some browsers on your phone, there will be a flash black screen when you browse certain web pages. For these problems, I hope that the future version can fix these problems, thank you.

---------- Post added at 04:41 AM ---------- Previous post was at 04:29 AM ----------

As for the third version of lineageos17 (January 5), I have been using it for a period of time, and I feel the system is quite smooth and power-saving. Now I just want to talk about the remaining problems: 1. When security options are unavailable, the other phone can be connected. 2. Do not use NFC sim card to brush the bus. 3. After brushing the Gapps, the mobile phone interface sometimes appears "android.process.media repeatedly stops running". 4. You can't use face unlocking, the whole hardware of Lg v40 supports face unlocking, why doesn't Lineageos17 have face unlocking? 5. When you open some browsers on your phone, there will be a flash black screen when you browse certain web pages. For these problems, I hope that the future version can fix these problems, thank you.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] switchgott:
[MENTION=5988026]Redline[/MENTION]

Thanks, you meen SOT or battery lifetime?

What about video record or take photos?

I guess you wont get 6h sot?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
I suppose you used google translate?

Anyway...

1) one doesnt really make sense? Can you describe it better?

2) Same as 1

3) Never encountered that... did you flash the gapps (which gapps?) before you booted the system for the first time, or after?

4) yeah, ill investigate that

5) Depends on the Gapps + Browsers, Android 10 has its own webview (updateable with playstore), which is now seperated from Chrome, unlike on Pie and so. Can be resolved with "the right" gapps.

The gapps i use (quite outdated, i know) are the beta opengapps micro 20190928 (cant find the link atm anymore)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Screen-On-Time, SOT.

I don't use the camera much. Probably once or twice every few days at most.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] switchgott:
I think 8-10h sot is unbelieveable.

Not possible with my v30.

And you are on Los17?