• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[Android 10.0.0]LineageOS 17.1 [STABLE] - LineageOS 18.0 [PRE-ALPHA] for V40

SGCMarkus

Recognized Developer
Jan 10, 2011
1,074
2,072
113


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.

Code:
#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
 

Attachments

Last edited:

SGCMarkus

Recognized Developer
Jan 10, 2011
1,074
2,072
113
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 @Xsavi 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
 
Last edited:

SGCMarkus

Recognized Developer
Jan 10, 2011
1,074
2,072
113
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.
 
Last edited:

T3R4BYTE

Member
Sep 16, 2019
47
17
0
Arlington
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
 

Ainz_Ooal_Gown

Elite Member
Feb 3, 2013
3,841
1,714
0
26
Los Osos
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?
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 ----------

What partitions would I check on backup in TWRP if I was going to install Lineage 16 or 17?:confused:
Well first you would backup everything minus system.img and Vendor.img...on both slots just to make sure
 

SGCMarkus

Recognized Developer
Jan 10, 2011
1,074
2,072
113
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?
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)