yashsingh1/xdaforums huggingface dataset:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] nba100:
Lgv40 supplement

First of all, thank you for your reply. Now I would like to say two questions that I did not make clear

---------- Post added at 04:37 AM ---------- Previous post was at 04:34 AM ----------

1. About the wifi hotspot, after I open the wifi hotspot and set the password, when wpa2-personal is selected in the option, the other device cannot connect to the wifi hotspot to surf the Internet. If the password is not set, when "none" is selected in the option, the other device can connect to the wifi hotspot to surf the Internet normally. 2. As for the NFC sim card to brush the bus, after the NFC sim card is loaded into the phone, the NFC sim card will be displayed, but the bus cannot be brushed
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
to 1) known issue (V30 shares that bug, currently trying to fix it there, same will then probably apply to the V40)

2) I just googled a bit... i didnt know there are SIM cards with NFC built in (for whatever purpose?). But i also read that it can conflict with the NFC built into the phone :confused:

Do you mean that?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] thaimeojs:
Can't install in V40 (slot_a fastboot V40 and slot_b V35)? Anyone help me.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Infy_AsiX:
Been using this only a couple days not as a daily driver but it seems quite good, thanks. I found in the Telegram the test version with working AOD useful, I got it working with Pixel Pulse app which is nice, it requires a UI launch after rebooting though, I handle with Tasker. I'm yet to test battery life with it still.

I see you're slowly adding all the minor features still. Just a small bug report, it seems Night Light schedule doesn't turn off and on at the set times as in settings, but at least it works. I chucked together a simple Tasker root off and on by time which works in any case.

Also if anyone is interested in limiting their battery voltage lower for less degradation and long term longevity. You can 0644 sys/class/power_supply/battery/voltage_max and manually put whatever voltage you prefer, the default is 4.4V. The change is lost on reboot but a Magisk script or Tasker with root on boot works
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Euvirs:
thanks friend, this ROM works great, I use it to play video games like pubg and cod mobile, it works better than the stock ROM. but I want to get root access, what version of magisk can I install?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Anything above i think 19.5 (i think) which added support for Android 10 ^^

And Antutu GPU score is so "low" (antutu 8 that is, dont compare results to antutu 7), because for some reason the antutu (and only there) Vulkan test runs out of memory lol
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Euvirs:
Ok I understand, but however I feel the performance on this rom work better than the stock for me. The battery life is great as well, for the moment no issues for me. Thanks
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tuff3r:
What Gapps to use?

Which Gapps would I pick for this?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Euvirs:
I use pico
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] thekidelvis:
Hey is the Satus bar battery options suppose to work? i click show text next to Icon but its not working, want to make sure i installed it correctly
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Hey i got same issue my battery status bar percentage not showing up.

---------- Post added at 04:13 AM ---------- Previous post was at 04:11 AM ----------

Hey so i noticed there are many repeated installed of more than 1 apk. Like theres 5 apps in my system apps named "fill" like wtf? Is it safe to uninstall them all and just leave 1 app with the name fill.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Those options will work in the next release here on XDA (a pre-release on telegram already has them working). When building this build, the options were already merged, but without proper support in the framework, thats why they arent working ^^

Idk about the apps though, but why no just leave them there? they arent in your way or anything, are they?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] pwazoski:
All
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
thanks and yeah ill just leave apps be. are you guys working on the dolby or resolution changing in display too? wll ive also noticed volume in the phone is low and quite bad compared to stock rom
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Dolby is basically impossible (atleast LGs implementation, there are 3rd party mods somewhere for that though i think), would need to basically take the whole framework from java down to the hals (hals i already have for DAC) from stock LG, and that doesnt play too well with AOSP...

Its using stock audio configs... so LG probably boosts audio somewhere else and not the config files themselfes :confused:

Cant say anything about quality though? So far nobody said anything about that.... (its just that the DAC sometimes turns itself off ... and idk why yet)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Wow I see that's why I have audio issues. Thanks for the clarification. Will probably use my pixel experience on my other boot slot for media play then.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Well, the PE tree is based on this :confused:

Idk what there should be different regarding this.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Well its okay the audio sounds better if I install pixel experience in my other slot. weird. And I noticed if I have lineage installed then my other roms will not function with my sim but only lineage. Tried having pixel experience and hovoc installed but lineage will still disable sim card in the other roms and just work on lineage. Why? Lineage is a primary rom or what?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Ehhh... that shouldnt happen. Youre wiping (or restoring a backup) of those other ROMs, are you?

Otherwise every ROM is basically based on the same device tree... there arent many differences between them. :confused:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Yeah i tried all ways but lineage would be the only working with sim card and would take that ability away from other roms. I tried putting other roms slot a and lineage slot b, then lineage slot a and other rom in b, factory reset other rom starts working but load lineage rom the my other rom sim not working but lineage. But i guess thats fine.

I also noticed on lineage when using vulkan it doesnt work. 3d mark vulkan it just crashes, used ppsspp on vulkan it crashes. So does lineage 17.1 actually have vulkan installed and working?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
the only crashes with vulkan i have experienced were with Antutu for whatever reason... (log says out of memory, after it spams the same stuff for like 100 times or so, so my guess is that the log part runs out of memory lol)

had no crashes in 3DMark sling shot (i think it was) extreme though, neither OpenGL ES nor Vulkan

Idk about ppsspp though.

It was always installed btw, just that sometimes qcoms vulkan implementation isnt the best (i heard that from other devices too already), and some errors persist for years ...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Wow so qualcomn just isnt good with implementing vulkan. Well that sucks.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] 5unsh1ne:
I'm thinking about buying a phone with a decent DAC, so I'm a little hesitant whether to chose the V30 or the V40. There seems to be much more interest in LOS for the V30 but of course the V40 has a few advantages. Is this ROM already good enough to serve as a daily driver?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Yes can be a daily driver only issue so far ive noticed is battery percentage display not showing and thats it. The DAC on v30 and v40 are the same but in terms of speaker volume the v40 wins.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Darkstar995:
I would say LOS for the V40 isn't quite in Daily driver condition yet, even though i'm running it on my daily driver V40, you loose some stock functionality(I.E. the Always on Display, the Camera app, the Music app, and Gallery which some of this is kind of a bug, you cant use the other two cameras on the back of the phone, and i haven't found a Gcam port that works so far, LG's Miracast, which i used to use a lot, for easy seamless screen sharing to my LG TVs, i haven't tried google cast yet, it may work fine as well) And there are a few bugs, like, WPA doesn't work on the hot spot, The DAC has to be turned on every time you use it, the Battery percentage doesn't show, as mentioned above, the latest Google Maps doesn't work, so you have to install an older version from late 2019, Android auto crashes and locks up the phone when you plug it in to your vehicle(i have tried many different older versions, they all do this), the music app crashes sometimes and properly using this phones DAC means high quality audio files like FLAC, which the Stock V40 music app handled fine, but the LOS app crashes sometimes, which is annoying.

I know some of these issues have already been fixed for a later release, but i don't know when that is going to be

But if you can live with these issues then its in a daily driver condition for you
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] sondv04199:
please push root and gapps to this rom
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] 5unsh1ne:
Thanks for your detailed answer. I decided to go for a V30 for now. I'll maybe upgrade to a V40 at a later date...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
you dont have to as their is a complete rom for a daily driver for the V40 which is the Pixel experience rom and their is lineage 16 as well for the V40.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Restian Rony:
Is the lineage 16 stable enough for our v40? And PE ? Where u got the thread ?

Thanks
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
You might want to ask [MENTION=5796697]Xsavi[/MENTION] for the link but yeah its stable enough but yet pie has horrible performance compared to to Oreo and Android 10. I recomend the android 10 pixel experience just disble the google stuff. Pixel experience rom have everything working.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Some of our ROMs don't have threads yet...Xsavi is the main dev of those ROMs minus Lineage which is by Markus...but with what's going on now a days it's kinda hard for him to make said threads...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Yeah your right
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
Can you please show where development progress is logged if it's not a thread here on XDA?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
I personally cannot since I'm not a dev and XDA mods will remove it....since sadly they don't like Telegram...I think Markus has a link in the OP...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] immtu:
What about camera. Any samples
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
OK, thanks. Didn't realise mods were removing links to other legit resources. Oh dear.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
That I'm aware of only Telegram and shady websites
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] sounreal:
Is it worth buying a LG V40 just for this rom in its current state? I will want to use Magisk and MicroG with this ROM. Also can this ROM be maybe to spoof signatures?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] whitedavidp:
Right now I am terribly frustrated by the forced encryption of the phone under stock Pie firmware. Can anyone tell me if this Lineage OS gets rid of this encryption? I need to be able to have TWRP backups work properly and despite much effort have not been able to achieve that on stock Pie. Thanks so much!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] pwazoski:
No lg g7 has androi 10 official beta now which is more optimize than LG v40 but have a budget price or just buy a v40
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] axelhimself:
Battery drain while deep sleep

Hi,

My battery looses 30% in 8 hours sleeping. What can I do?

Thanks and greetings

Axel
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Mine doesnt have those issues except the phone does overheat more on lineage OS and battery does drain quite alot. Wouldnt recomend lineage 17 for now as its not stable or features dont work fully as a daily driver. I switched to pixel experience as it has same to better performance and does not drain battery but thats a temp for now until the devs release a new update on lineage.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] axelhimself:
Hi,

Thank you very much for your answer. Can you tell me where I can find the PE Rom for the LG V40? And can I use it without Google? I'm a noob an need a thread to be able to get a new ROM on my phone :silly:

Greetings

Axel
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] DatPratt:
[MENTION=3475147]SGCMarkus[/MENTION]

Great build so far, thanks so much for your work.

I have a bug with Data Saver. I experience this with Google Voice app but likely affects other apps as well. I am not sure if this is for mainline LOS as well or just your build.

On the V40 with your build with Data Saver on, wifi off, Google Voice call rings and appears to answer, but does not actually connect. Data is being blocked in the background, audio is not heard on either end, and the call drops between 2 and 9 seconds after answering. Adding Google Voice app to the list of "Unrestricted Data" apps makes no difference.

On my Pixel 3 with stock image, Google Voice calls work fine with Data Saver.

I don't know how to diagnose further but I would be happy to collect more info if I can, thanks.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] sirs2k:
Hey guys, just installed this rom but I'm having a couple of issues

While the phone is unlocked and I'm doing something on it. Crashes and goes back to lockscreen (ambient display)

These pop up on every reboot.

https://imgur.com/LO4Acnu

https://imgur.com/JtbVSrU

Also launching google voice search via home button or google assistant button, it takes up to 3 seconds for the mic to actually start listening. Even then, when you ask a question like "how's the weather" the reply voice isn't working at all or sometimes it says a couple of words then cuts out then comes back

Any ideas? Thanks
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] dewaldo79:
GCAM on LineageOS

Hi all,

First, my hardware is LG V40 European model V405EBW.

I'm trying to get GCAM port running on the V40 for almost a week now, so far without success. I have the buffer lag problem, so GCAM is mostly unusable. I tried to flash the Buffer Fix using TWRP on stock ROM first as well as manually exchange the .so file within VENDOR/LIB/HW directory after installing Magisk ROOT and using a root explorer.

I tried all this with 3 Stock ROM versions a, e and the newest f. But the problem always seems to be, that I can't change any files within the VENDOR partition.

With firmware "f" I can't even mount VENDOR within TWRP, but as mentioned, with the older firmware versions a and e, it doesn't seem to work either.

Maybe someone can tell me a solution for this.

So my next approach is using Lineage ROM. I flashed it using TWRP and it runs smoothly. But when I try to start any GCAM app, the APP will force close after a few seconds.

Are there any requirements I have to first set up so GCAM app will run under the LineageOS ?

Kind regards,

dewaldo79
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] patato21:
For anyone having screen resolution issues on Google Maps, try version 10.22.2. It's the latest one still working for me. Remember to disable auto-updates in Google Play. Going back to Stock Pie until Stock Android 10 firmware is released for the LMV405QA7 (US Unlocked) Model... MQA Hardware decoding is not working at all even with USB Audio Player app, High Impedance doesn't always work, and music playback frequently pauses when switching apps.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] EzeBaha:
The same for me. Google maps didn't work as you described. Another issue is screen brightness regulation. It is very aggressive and the screen is either to bright or to dark.

My reason to try out Android Q LineageOS was to get GCAM working. But 2 days ago I got it finally working on the latest Stock pie and I'm very happy with this solution, it's working great and gives me even slightly better picture quality as with the original Google pixel 3.

Buffer fix finally worked after disabling dm verity by flashing vbmeta.img on both slots, like described by the user banesi. There is a separate xda thread on this, you can find it by searching for LG V40 buffer fix.

By the way, the reason, why gcam didn't work for me in the first place with lineageOS was because I didn't install GAPPS at this point, they seem to be essential for the gcam too.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] zbeal:
Has anyone had any issues with Google photos?

I'm using open gapps pico and it crashes every time I try to open it. I have tried older apks version to no avail as well.

Edit: Turns out it was my own stupidity not realizing the magisk drm removal module breaks photos

Overall my experience has been awesome. Everything I need works and battery life is good enough with my moderate usage.

The only thing I miss from my old Pixel 3A XL is the AOD, but I'm learning to live without it.

Took a gamble buying an inexpensive used Sprint model and then cross flashed, unlocked the bootloader, and installed this ROM. But it seems that gamble paid off, thanks!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
Thanks for the updates on ROM progress, been reading this since initial release. High quality music and Google maps (without disabling play store auto updates) are kinda vital to my use of the device.

Hope we get better kernel and closer to full AOSP support for the device.

In terms of hardware the V40 is the best device I've used but the recent LG devices seem to suffer from a lack of mass-market popularity which has hampered aftermarket software support. Real shame. I'd probably have a better lineageOS experience using a G2 or G3 and that's crazy.

Still hoping to see mainline lineageOS builds for V40 at some point but I'll probably have a V60 by then. Good luck to the Devs, I know that the lack of device support isn't for want of trying and seeing any long-standing ROM is good news.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Crauviu:
does it work on the korean (V409N ) version?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Changed the Download Link to point to a folder on my gdrive, which will contain all future builds... There been quite the changes since last release on here and the build in there, so i might have forgotten something:

- Newer LOS Sources/Security patch

- Improved Audio

- DAC has its own HAL now

- Hotspot fully works now
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] serpent android:
Hi sir SGCMArkus

I have fast boot but cant enter dl mode on the v40

The phone was previously bricked but by using qfil and xsavis tutorial i was able to get fastboot. But i need download mode for lgup to recognize.any easy way out sir?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phenomenalblaze:
You need to reflash the laf_a and laf_b to the device to get download mode back
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] serpent android:
Ok i will try any specific link for the laf a and laf b files as i didnt take any backups
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] phenomenalblaze:
If not. I can send them to you later when i get home. I have them both.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] serpent android:
Plz do looking forward.it took me quite some time to unbrick now i want that download mode ao i can use lgup
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] NGOwner:
Check out this post:

https://xdaforums.com/showpost.php?p=82516143&postcount=221

[NG]Owner
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] serpent android:
Thanks buddy. Ok im flashing the laf b fikes in laf b.but still i dont have download mise just fast boot everytime.peeviously i flashed v35 engineering bootloader in abl a. So now i have to flash also in abl b and laf b ?what files and how can i get dl mode then..
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] NGOwner:
Is this Lineage build being actively maintained?

Are there any Android 10 ROMs that are being actively maintained for the v40?

[NG]Owner
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] dark_prince:
Check the telegram group in OP, we have the more timely discussion there
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] KouaV1:
Dont nuke your laf partitions unless you have backup and there is no need to. The op for nuking laf did not warn us of signs if nuked
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Long time no see yall here :)

got 2 news for you:

first of all, new LOS17.1 update, which includes:

September security patch

Updated LOS 17.1 sources

Metadata encryption -> you need to format data and use a special TWRP, which ill make an update for in the TWRP thread, and instructions for usage will follow here

Updated blobs from V405EBW 30b -> you NEED to be on 10 firmware, with pie firmware you wont be able to boot

some DAC fixes

screen-off touch Gestures (Settings -> System -> Gestures)

SELinux is enforcing

maybe more stuff i dont remember

known issues: sometimes bt audio doesnt work properly, investigating

Second news: LOS18.0 is booting, and it works pretty great so far (its based on the latest 17.1 build, so its requirements also count for this build)

Based on Android 11

EARLY build (the things i tested worked, but 99% of Lineage stuff isnt implemented yet, HALs are takes from 17.1 prebuilt, and so on...)

but Wifi, RIL, Audio, DAC, fingerprint, encryption, BT, ... seem to work so far

Will update OP soon with instructions for metadata encryption and links to download :)

Edit: TWRP thread updated

also some more info on 11/LOS18.0:

- Audio HAL upreved to 6.0 + DAC HAL changes to work with that

- SELinux permissive (bringup and so..)

- using more prebuilt LOS17.1 HALs, CAF not dropped for SDM845 yet

- Some build fixes here and there to make it compile/boot/work

- using AOSP bluetooth stack, not Qti

should be up in a few minutes :)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] NGOwner:
Some guidance on how to get there.

I'm currently running a Sprint V405UA cross-flashed to LG v405QA. This is a 20e Pie build.

How do I get from 20e Pie to 10 firmware if there is no 10 firmware for the LG v405QA?

Do I crossflash to one of the only 10 versions I can find first, then over to Lineage 17.1?

Is that the procedure?

[NG]Owner
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Dttrinh:
I need rom lg v40 at &t

I need stock rom for lg v40 at & t. Please help me
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
this is the wrong place to ask for it.

Why not try searching for it instead of asking in a random unrelated thread
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Thystle:
Hi,

Would it work on a hard unlocked T-mobile V40? （the device has the bootloader unlocked and has install magisk to root.）
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
As you seem to be the first with an bl unlocked V40 (how did you do that in the first place?), try it, nobody before could.

But if its the same as on the V30, it needs a few different firmware files to work, which shouldnt be too much hasle.