yashsingh1/xdaforums huggingface dataset:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jerrycbrowne:
I know the permanent TWRP file has been downloaded but it doesn't appear in internal storage. Any suggestions? I'm guessing that I either need to format data or its an encryption issue? Mount system? Vendor? Firmware? I'm a little hesitant because its a temporary image not a permanent one.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] R800x_user:
Are you on stock room or custom? There is a way around stock encryption but I am running a custom ROM. I'd say format your data but back it up before proceeding.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jerrycbrowne:
Stock. I'm thinking the same thing. Though I'll try repairing the file system first. (changing the file system and changing it back, etc) Puzzelingly, no partition is mounted and TWRP wont let me do so. The inbuilt command line says that it cant proceed because the 'resources are busy'

Thankyou for your input. Much appreciated.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] R800x_user:
I also do recommend using a sd card
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jerrycbrowne:
Thanks. Ive tried factory resetting which didn't help. The SD card almost worked but I get a 'Can't mount vendor. Resource busy' message. I'm stumped.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] yumm91:
Did you try reboot to recovery in TWRP and reflash zip? Sometimes it locks some partition.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jerrycbrowne:
Thanks. Yes I did. But it wont stick. Interestingly, when i reboot recovery inside the temp image everything seems okay as per the screenshot. Even then though it shows up as 0 on internal storage and only the system is mounted. Should I be backing up the existing image when installing the ramdisk recovery? I don't see the point as it's only a temp image.

Which zip file is that?

The only thing I haven't done is entirely wipe the phone and reinstall the Factory image.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Unemtertained1:
Twrp for 10

So I have to ask, whats the timeline on twrp for android 10 or is that just a pipedream? I'm rooted on 10 and it makes me nervous not having an adequate recovery system. I'm still learning about all the individual slots and qfil, and im getting the hang of it, although last night I was an idiot and successfully rooted my 10 by fastboot flashing modified boot, and had not disabled my secure startup setting. It actually locked me out and my pin no longer worked. I lost all my data and don't want to deal with that again. Lol. Anybody know how to put twrp on Android 10? Oh and I'm willing to lose data once more I guess for backups sake.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Well the Latest TWRP works great for Los17.1 and Havoc OS 3.5 which are AOSP Android 10 but I personally don't have Stock Android 10 to test things out
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] whitedavidp:
recv error uevent during backups - sporadically

Thank goodness for this TWRP. Its abilities have saved me many times already. To protect myself (usually from myself) I run nightly backups via Open Recovery Script.

Every now and then I discover that this process has hung after getting "recv error uevent". I can swipe to remove the screen lock. But that's it. My only option at this point is to press/hold power+volume down and get a reboot.

In googling "twrp recv error uevent", I see many other references to this. Some claim this is an error which is NOT REALLY an error and can be ignored. Others say it has or will be corrected (made into a non-error, I guess). In most posts, the implication is that the backup process continues (perhaps with user intervention, it is not clear to me). But in all of my cases, there is no way for me to do anything save force a reboot.

Although I see nothing of much interest in it, I have attached the file /data/cache/recovery/last_log.gz and perhaps there is a clue for someone above my pay grade.

Thanks for any help you can provide.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jogai:
$ fastboot getvar unlocked
unlocked: yes
Finished. Total time: 0.003s

$ fastboot boot TWRP-judypn-boot.img
Sending 'boot.img' (30804 KB) OKAY [ 0.661s]
Booting OKAY [ 5.117s]
Finished. Total time: 5.832s

I'm stuck here. It doesnt boot the image. It's stuck on the screen with "LG V40ThinQ" after that.

It was working the first time, but I got the stock recovery back after reflashing a rom.

Anybody any idea how to solve this?

---------- Post added at 08:31 AM ---------- Previous post was at 08:26 AM ----------

How do you switch partitions in fastboot mode?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jogai:
To answer myself, one of these:

fastboot set_active a
fastboot set_active b

Now it always boots to TWRP. It doesnt boot to the main system (flashed a rom a few times already). Solution: in twrp => advanced, do "Fix Recovery bootloop"
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] zfk110:
I'm on the pie with unlocked bootloader, but when I tried to do adb reboot bootloader it just reboots the phone back, when I try to do volume up and reboot using USB cable it goes in download mode, and it won't let me flash recovery. it will keep saying waiting for phone to connected. when I do power and volume down it goes in factory reset and hard reset the phone. what I have got to do to get in fastboot, so I can flash the twrp?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] jogai:
[MENTION=5662366]zfk110[/MENTION]: Did you install the lg drivers? Is the output of "adb devices" normal?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Well....on stock it's Volume down and USB for Fastboot...if on Sprint you must remove download mode to get Fastboot...
[Android Q&A, Help & Troubleshooting] z300muser:
i was trying test remove all app use iptables on my phone

reboot start hotspot and vpn

start my ssh session an type just this

iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61

and now it's work really that's crazy this i loose time for nothing

just see for use my dns with it (actually cloudfare dns of my phone with magisk)

normally at home i've pihole i will see later if i fix it and then i close this post
[Android] andrea8080:
Hi guys, can anyone tell me if there is a box or server to Repair an IMEI NULL of a Samsung Galaxy S10 +?

:D:D:D
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
​

LineageOS is a free, community built, aftermarket firmware distribution of Android 10.0, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

#include "std_disclaimer.h"
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

What's working:

RIL (Calls, SMS, Data)

Fingerprint

Wi-Fi

Bluetooth

Camera

Video Recording

Video Playback

Audio

Sensors

Flash

GPS

DAC

Vibration

Wifi Hotspot

Selinux enforcing

What's not working:

BT Audio in some situations

Where are the features? (LOS18.0 edition)

LineageOS 18.0 is in early development process so don't complain about xyz features missin or crashing!

Instructions:

you flash in TWRP

you DONT inject TWRP (yet, when TWRP is made for metadata, then you can)

you reboot to other lots recovery (atm thats lineage one)

there you HAVE TO format data/factory reset

then you can install gapps and so (by apply update and adb sideload)

then boot system

V40 Telegram group chat

Downloads:

GDrive

Sources:

Device Tree judypn: judypn

Device Tree sdm845-common: sdm845-common

Device Tree lge common: lge common

hardware/lge: hardware/lge

Kernel: sdm845

Vendor: lge

lineage-17.1 branch

XDA:DevDB Information

LOS for Judypn, ROM for the LG V40

Contributors

SGCMarkus

Source Code: https://github.com/LineageOS

ROM OS Version: Android 10/11

ROM Kernel: Linux 4.x

ROM Firmware Required: 10

Version Information

Status: Stable + Pre-Aplha

Created 2019-09-20

Last Updated 2020-09-20
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Reporting Bugs

DO NOT Report bugs if you're running a custom kernel or you installed Xposed

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

If it is a random reboot, grab dmesg . (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues.

Changelogs

Release 20.09.2019

- Initial release

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 (thx to [MENTION=5796697]Xsavi[/MENTION] for pointing me into the right direction :) )

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

- Tons of other stuff i might have forgotten

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

Release 09.12.2020

- Updated LineageOS sources, September patch

- based on V405EBW 30b -> requires 10 firmware

- enabled A2DP offload + Qti BT Stack

- Qti power hal + different dt2w

- fixed offscreen gestures

- enabled metadata encryption (ext4 + f2fs supported) by using persdata

- SELinux enforcing (gib logs if something doesnt work properly, so far what i tested it worked)

- removed some unneeded LG crap

- rebased kernel on V405EBW 30b + CAF Upstream to 08100, Linux Upstream to 4.9.235

- fixed DAC issues with avc reset/it turning off automatically
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Frequently Asked Questions:

Q. Can this ROM be flashed through TWRP?

A. Yes, proceed with the latest TWRP image

Q. Sounds good. How can I contribute to project?

A. Test the build as much as you can and report bugs which can be reproduced with exact steps and are not random.

Q. How to disable "Apps running in background" dialog?

A. When you see the dialog, long press on it and select "Settings". From there, you'll have a toggle to disable it.

Q. Which Models of the V40 are supported?

A. Tested on V405EBW and V405UA so far, but should work on all, EXCEPT US T-mobile variant.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
Wow. Android 10 with los17 came so fast to LG V40. And seems like it's nearly daily driver condition.

Was thinking of buying lg v40 but now I'll definitely go buy it as development seems great on it ?.

You're so awesome!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Inerent:
Any screenshots?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] T3R4BYTE:
Awesome work Markus! Your dedication to the development of this device is extremely encouraging to get other to want to start developing on this phone. Thank you for your work!:D
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Updated with screenshots ^^
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] neocyke:
[MENTION=3475147]SGCMarkus[/MENTION] .. I think you meant V40 telegram group ;)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Uuups, too much copy paste xD

Thanks, corrected it, but atleast the link behind it went to the V40 group
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Awesome guys thank you all, I will be donating. Question how do I install TWRP on my Sprint (Unlocked Pie) to install this?:confused:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
SGCMarkus already put up the guide for that
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] T3R4BYTE:
You can follow this guide here: https://xdaforums.com/lg-v40/development/twrp-lg-v40-judypn-t3970111

good luck!:D
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
Is there any chance you could try and port Lineage 17 to the V20?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] samfriedmann_:
Why doesn't this work on the T-Mobile model, and is there any hope for owners of that model in terms of custom ROMs?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Android4Lif:
What partitions would I check on backup in TWRP if I was going to install Lineage 16 or 17?:confused:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Because T-Mobile wants to be different, if you try to unlock the bootloader the normal way you get a brick. If my memory is working correctly, Vlad has mentioned something about being able to unlock the bootloader but with soldering and opening the device itself.

---------- Post added at 07:25 PM ---------- Previous post was at 07:24 PM ----------

Well first you would backup everything minus system.img and Vendor.img...on both slots just to make sure
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
The tmobile variants always have a different RSA key for their firmware -> the one from the other models wont work.

Kernel and so on would work fine (would just need different firmware files), but the issue is that you cant even unlock/root in the first place (to my knowledge)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Evilmonstertruck:
Unbelievably great work guys!!!!! My upgrade is available next month but this really makes me think twice!

How does it run? Battery life any better on this? Sound? Thanks again!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
I have it installed but keep losing my phone/data. It won't recognize my SIM card any suggestions?:(
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
What carrier are you with?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] cloud1250000:
and you still bought it? lol.. surprised the phone is even working..

you sure the phone is not a random chinese copy?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Thystle:
It works well.

I have dual-sim needs, and now the battery is very good. I can use 2-3 day after charging one time.

I try to flash Havoc ROM, it works. I use about 2 days and flash back to EU 30B LG kdz.

It 's a better version V40 for me, I can have that good screen, long battery life, and dual-sim both have volte.

Big ram to work very fast, 128GB rom space is enough for me.

And I have root right and magisk, xposed to install the modules I need.

Just correct some of the V40 disadvantages.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] chenvega123:
cám ơn sự chia sẻ.: tốt:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Santarosa 503:
What model of this phone is best if I want flash lineage os?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] pwazoski:
All but i prefer korean model for a better support and easier to unlock bootloader us model are suck some of them cant unlock bootloader too
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
If you look in the thread re this subject, it states clearly 'unlock bootloader all versions but t-mo'. So, no 'us model are suck' isn't true. 1 of them, and it's always been this way with lg phones, the t-mo version, isn't unlockable.

keep in mind with lineage, it will need to have the correct firmware version u flash on top of. Some flash over Pie and some over Q. So you'll want to have the appropriate firmware version available for your device that (your desired version) lineage can flash over.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Peter the Gray:
Hi, I've got an LM-V409N (flashed to LM-V405UA) and I've been having issues with Bluetooth audio. I have a pair of Galaxy Buds (I believe they are the original first generation, not the second generation or the Plus) and while they pair fine, control volume and tracks fine, no audio actually plays. I noticed that "BT Audio in some situations" was marked under Not Working, so I was wondering if there is anything I can do to fix the issue, or if its just a random sort of thing.

Thanks,

Peter
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] lowridincrew,:
Was digging for answers but it's been like that for months. I had to turn on dev mode to get my Android Auto to work.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
what exactly did you do in dev mode to make Android auto work? :confused:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] zfk110:
Hi, I tried to do that but phone won't boot its in boot loop, and now I'm trying to go back into twrp it won't let me since I think I didn't inject twrp while flashing the rom. Also download mode doesn't work either when I tried to do the chicken dance to reset the phone, I got some ATT V405ua with me, can I back up some files and restore on this phone so at least I can get back to tWRP?

I tried to flash the twrp using QFIL but that didn't work either, I dont know how to nuke the laf so I didn't try that method.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] rjcarter3:
Were you ever able to do this? I'm in the same situation with the same Sprint V405UA cross-flasshed to V405QA. I downloaded a European V405EBW KDZ but LGUP rejected it when I tried to flash. I guess I could load the Verizon Q KDZ and use that as my starting point.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] racer8dan:
Anyone else have an issue with lineageos18 showing exfat formatted sd cards as corrupt? Other formts work fine. Any way to fix this?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] blaze2051:
any chance we an get some lineage 17.1 love for the LG G8/8x?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] hoangan102:
mobile data not working
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] sumDewd:
[deleted]

(Had a problem that resolved itself)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Mitno:
have problems installing gapps. I'm flashing Los from slot a to slot b. If I flash gapps in slot a they install normally but have no effect. If I switch to slot b. I get this error.

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

I am on android 10 using metadata encryption method.

Sorry google translate english.

Help thanks.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Which stock rom is installed on slot a? And what is the exact version?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Mitno:
V405UA30c_00_VZW_US_OP_0814
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
That should work, as far as I know. I'd suggest join tele group (find invite in original post), there are many there that are much more familiar with getting lineage configured and working.

good luck
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] de_la_mole:
When it says the RIL is working, does that include VoLTE?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] ampedup:
Does VoLTE works in this ROM?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
No. I'm pretty sure Markus is looking at that, carefully. But there's no eta or even any assurance it will get resolved.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
hello i unlock the bootloader of my v40 but with an android 10 firmware (my bad).

i can't flash with lgup the phone dont detected. on windows

what issue i have please?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] fiend551:
EOL?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] cheeze.keyk:
probably.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iroiroiro:
Is there any plan to make lineageos 20 for LG V40?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bob-sacamano:
Hello, I have an LG V40 LM-V405UA

I was reading into the lineage os 18 for the LGV40. Have all the issue with the OS and LGV40 been corrected? I have NO intention of using GAPPS. I will either use F-DROID store. I use the browser to go to websites not apps.

I would like to install the lineage os 18, but want to have informed understanding as to what does not work first.

Thank you for any help that can be given.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Which carrier and model?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Sprint LM-V405A. Update to my problem. I can send and receive phone calls, and messages, also I just can connect to the internet with my Sprint Cell Service (LTE) but if I dont check roaming I don't have internet. So I am always on roaming.

SIM STATUS:

Mobil Voice Network Type: CDMA-1xRTT

Mobil Data Network Type: LTE

Roaming: Roaming
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] grandomegabosses:
You might need to update you APNs. I'm on LOS 16 for the time being, but when I played around with this build over the weekend, I had to re-add my Sprint APNs to be able to get data.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Stupid me did not save the settings. Thank you.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Android4Lif:
I installed the APN settings given to me and didn't work for me, only on 16.:confused:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Fixed it thanks to the guys on our V40 site (Chris) thank you for your time.:good::highfive:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Question: Every time my phone screen turns off, the only way I can get it back is to restart my phone. Any fix for this yet, or something I need to do?

Thank you!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] mtyler7807:
If there was a way to keep my wifi calling because it works so well with ATT prepaid I would install this. But I know it would be a no go on that.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
Audio is working but is the "hifi quad DAC" option available in LOS? Got this phone to drive more demanding headphones.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Yep. Settings -> Sound -> scroll down as far as you can
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Droidman61:
Can someone upload the APN settings for LOS 17 I dont have access to Telegram at work. :highfive:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] belrik:
APN settings are per-ISP, lookup on your telecom provider's site or copy from another phone.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] aminovic1300:
help please

hi

i have lg V40 EBW unlocked boot and i have flashed this rom with TWRP and after reboot , the phone say``TO START ANDROID ENTER YOUR PASSWORD``

anyone have a solution , thanks