Code:
#include
/*
* 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.
*/
LineageOS 19.1 for the LG G2 - An attempt to get a more recent version of Android onto this dinosaur of a device.
Over the past few months, I have been attempting to port LineageOS 19 to my LG G2 as my first taste of ROM development. I have since managed to yield a functioning ROM (albeit, still with minor issues).
Status
Working:
WiFi
Sound
USB Connectivity
Infrared
Accelerometer
Widgets
JIT Compiler (as of 20230207)
Flashlight (as of 20230210)
Bluetooth (as of 20230219)
RIL (as of 20230309)
Offline Charging (as of 20230521)
GPS
It helps to not be on a low floor in a tall building when I'm testing it... That's probably why I was having so much trouble with it.
Partially Working:
Display
On some occasions, the soft buttons become glitched with horizontal lines. Not a 19.1-specific problem, I noticed this on a LineageOS 16.0 ROM as well.
When there are notifications, the top portion of the lock screen sometimes appears black.
SELinux
Enforcing by default as of 20230521, some denials still remain.
NFC
Only works sporadically.
Camera
Mostly working, but there have been reports that forcing the flash to be on can crash the app.
Screen Recording
Same glitches as on 18.1.
Not Working:
FM Radio
As far as I can tell, this was never really a feature for LineageOS on this device, but it might not be impossible to add (on D802 & LS980 only; it's broken in hardware on other models).
I myself can only test for the D800, as that is the model I have. I have also compiled binaries for the D802 because that is the most popular G2 model. If there is demand from people who can't compile it, I will attempt to compile untested binaries for other G2 models.
Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(more screenshots attached to this post)
Downloads
Binaries (D800 & D802 only for now): Sourceforge
Source Code: GitHub
How to Use?
The binaries above can be flashed using blastagator's TWRP in the same way as prior versions of LineageOS. You will also need a compatible bootstack (like the Lollipop bootstack for D800-D802 & *S980 or a hybrid bootstack for other devices).
This video by channel48 also goes over installing this ROM and various aspects of using it:
As for the sources, compile them the same way as 18.1 would be compiled, except use the lineage-19.1 branch of the LineageOS-UL repo instead, and between running "repo init" and "repo sync", download the local_manifest.xml file from the repository and place it in the .repo/local_manifests folder (which may need to be created). There may also be additional packages needed for your Linux distro, but I don't remember exactly what they are.
While I highly recommend sticking with LineageOS 18.1 if the G2 is still (somehow) your daily driver, hopefully, having this ROM out in the public will allow people to test it, find other bugs not listed above, and help to improve it (since my discretionary time for this will be limited). This also serves as proof that old grandpa isn't dead just yet!
EDIT 2023-03-18 - Updated bootstack information. If accelerometer and/or RIL do not work, try switching bootstacks if possible.
EDIT 2023-05-23 - Installing an older version of Cyanogenmod/LineageOS first can sometimes fix accelerometer issues. The 20230521 build broke Bluetooth, use a later build instead to fix it.
EDIT 2023-05-30 - Added a reference to channel48's video. I agree that this is really not in an alpha state anymore, as I called it that when it wouldn't even boot without modifications. Many things have been fixed since then so I will remove that label.
Credits
@aleasto and LineageOS contributors (for supporting this device all the way to LineageOS 18.1)
@MetoIsTaken (for preliminary work on the g2-common repository)
Contributors to LineageOS 19 for HTC and Samsung MSM8974 devices, as well as the G4 (for providing ports to similar devices from which I could reference)
LineageOS-UL team (for also having fixed many of the problems I have ran into)
@rlawoehd187 for continued work, especially on the Korean f320 model
@Concept48 for making a video of this ROM
Likely others not listed here, let me know if I forgot someone who should be listed
Good work buddy! I'll probably work on d802 later but Wifi&BT is broken on my device so I'm limited about testing.
SIM card is not working.
not working: lineage-19.1-20230211-UNOFFICIAL-d802.zip (did not detect the SIM)
is working : lineage-18.1-20230114-UNOFFICIAL-d802.zip
Nice to see someone still trying to develop on g2.
Inspired by your work, I took out the g2 again after a long time.
working on my f320.
Accelerometer
bluetooth
camera (full work)
nfc
not work
radio
gps (fix coming soon)
GitHub - rlawoehd187/android_device_lge_g2-common at lineage-19.1
Contribute to rlawoehd187/android_device_lge_g2-common development by creating an account on GitHub.
github.com
GitHub - rlawoehd187/android_kernel_lge_msm8974 at lineage-19.1
LGEs "galbi" family. Contribute to rlawoehd187/android_kernel_lge_msm8974 development by creating an account on GitHub.
github.com
ox96115 said:
SIM card is not working.
not working: lineage-19.1-20230211-UNOFFICIAL-d802.zip (did not detect the SIM)
is working : lineage-18.1-20230114-UNOFFICIAL-d802.zip
Click to expand...
Click to collapse
The newest build has a changed property that made it detect my SIM card (though I still have no service). I wonder if you might have better luck with that one? Thanks for testing.
jb881122 said:
The newest build has a changed property that made it detect my SIM card (though I still have no service). I wonder if you might have better luck with that one? Thanks for testing.
Click to expand...
Click to collapse
lineage-19.1-20230309-UNOFFICIAL-d802.zip
SIM card is working fine.
Calls OK
LTE OK
Mobile data OK
Roaming should be OK.
jb881122 said:
The newest build has a changed property that made it detect my SIM card (though I still have no service). I wonder if you might have better luck with that one? Thanks for testing.
Click to expand...
Click to collapse
Good job dude. Btw you can go enforcing with ignoring neverallows. It's ok.
EDIT: No it's not xd. Brokes RIL.
[lineage-19.1-20230309-UNOFFICIAL-d802]
Developer options / Force full GNSS measurements ON
I'm not sure if it will work well. GPS signal is very weak at outdoors.
Then i used external antenna. GPS should be OK.
ox96115 said:
[lineage-19.1-20230309-UNOFFICIAL-d802]
Developer options / Force full GNSS measurements ON
I'm not sure if it will work well. GPS signal is very weak at outdoors.
Then i used external antenna. GPS should be OK.
Click to expand...
Click to collapse
It's nice that GPS is working fine for you, I still have troubles. The best I have ever gotten on a non-stock ROM is a single satellite being used, and even that is rare.
I'll keep poking around, but I'm not sure what might be wrong if it works for you (and for me on stock ROMs only). Perhaps you live in a different region of the world where the satellites are different enough to work for this ROM?
At the very least, I noticed that widgets have stopped taking a long time to load, and I think it has something to do with RIL functionality.
Anyway, I think this ROM is getting to the point where it's approaching the level of functionality of 18.1 (with the exceptions of offmode charging and SELinux), so I have re-arranged the branches on GitHub:
lineage-19.1: The "stable" branch, focused on maximum functionality
Update 2023-05-21: SELinux is now enforcing on this branch
lineage-19.1-testing: The SELinux testing branch, where it is set to enforcing and denials will be addressed
This applies to the g2-common and local_manifest repositories only, other repositories of mine where this was a branch name will now be updated under the lineage-19.1 branch only
I originally put "-testing" in the branch names at the beginning since it wasn't bootable when I originally named it, but in retrospect, it only made things more difficult when I was modifying the repositories.
MetoIsTaken said:
Good job dude. Btw you can go enforcing with ignoring neverallows. It's ok.
EDIT: No it's not xd. Brokes RIL.
Click to expand...
Click to collapse
On the SELinux front, I got RIL working, but Bluetooth is still broken, ADB does not want to connect on boot unless I re-plug the phone, and there are still a lot of denials. I have not noticed anything else broken in my limited testing so far.
I'm not entirely sure what to do from here, but I suppose one approach would be to set it back to permissive mode, do a bunch of stuff, take the logcat/dmesg logs, pipe them into audit2allow, and compare what that gives you with the policies of other MSM8974-based devices that already have Android 12 ROMs. I won't have time to work on that for a little while, but I think it could serve as a good starting point.
EDIT: One more thing, I don't think NFC was broken in the first place (for me, at least). I was using Android Beam to try testing it, but it hasn't worked for me since LineageOS 16.0. I tested with another app and NFC was indeed functional. I'm curious if this is the case with other devices as well...
For offline charging fix https://github.com/jb881122/android...blob/lineage-19.1/rootdir/etc/init.g2.rc#L275 try moving it from on boot to on charger.
Like this
bullhead: Fix offline charging mode · rlawoehd187/[email protected]
Signed-off-by: hiru <[email protected]>
github.com
rlawoehd187 said:
For offline charging fix https://github.com/jb881122/android...blob/lineage-19.1/rootdir/etc/init.g2.rc#L275 try moving it from on boot to on charger.
Like this
bullhead: Fix offline charging mode · rlawoehd187/[email protected]
Signed-off-by: hiru <[email protected]>
github.com
Click to expand...
Click to collapse
I'm not sure just moving between files would have any effect, but I tried moving it to init.g2.power.rc and using the attributes in your commit and I get the same result as before, freezing at the LG logo.
I see that on the G4, the charging binary was replaced, though the G4 is different enough that unless the problem is vendor-related, it is probably not the same as on this device. Besides that, the linked commit is also on the Android 11 branch but offline charging works fine with Android 11 on this device.
I suspect it might be a kernel issue (or a problem with libraries if the charger binary is non-static, haven't checked yet) because I tried copying the charger binary from LineageOS 18.1 and noticed no change.
Let me know if there are any other ideas.
Just registered on XDA-developers to say you THANK YOU!
All works fine for me. No bugs were founded.
Does it become an official build?
CrabXDA said:
Just registered on XDA-developers to say you THANK YOU!
All works fine for me. No bugs were founded.
Does it become an official build?
Click to expand...
Click to collapse
I'm glad it's working well, that's ultimately my goal for this ROM. If you do encounter something broken (other than the list in the initial post), let me know.
As far as I can tell, I don't think LineageOS has any plans for official support past 18.1 for any MSM8974 devices (including the G2) anymore. The kernel is still version 3.4, which requires some tricks to get Android 12 and above running on (hence the use of LineageOS-UL sources), and I think convincing them to resume official support would at least partially involve getting a later version (specifically one that supports eBPF) working, which would be a feat above my skill level for the foreseeable future.
jb881122 said:
If you do encounter something broken (other than the list in the initial post), let me know.
Click to expand...
Click to collapse
Yes, i have found 2 bugs.
1. Screen Brightness below 8% is compleatelly black screen (I tested With disabled Live Display and Auto mode off)
2. Force FlashLight on in Camera cause Camera App crash (instead of Auto)
Model D802
jb881122 said:
Code:
#include
/*
* 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.
*/
LineageOS 19.1 for the LG G2 - An attempt to get a more recent version of Android onto this dinosaur of a device.
Over the past few weeks, I have been attempting to port LineageOS 19 to my LG G2 as my first taste of ROM development. Today, I managed to get it booting (albeit, still with major issues).
Status
Working:
WiFi
Sound
USB Connectivity
Infrared
Accelerometer
Widgets
JIT Compiler (as of 20230207)
Flashlight (as of 20230210)
Bluetooth (as of 20230219)
RIL (as of 20230309)
Offline Charging (as of 20230521)
Partially Working:
Display
On some occasions, the soft buttons become glitched with horizontal lines. Not a 19.1-specific problem, I noticed this on a LineageOS 16.0 ROM as well.
When there are notifications, the top portion of the lock screen sometimes appears black.
SELinux
Enforcing by default as of 20230521, some denials still remain.
NFC
Only works sporadically.
Camera
Mostly working, but there have been reports that forcing the flash to be on can crash the app.
Not Working:
GPS
Seems to be broken for me for all CM/LOS builds since Jelly Bean. Some people have reported this working, your mileage may vary.
I myself can only test for the d800, as that is the model I have. If there is demand from people who can't compile it, I will attempt to compile untested binaries for other G2 models. Otherwise, I will wait until this ROM is in better shape.
Update 20230210 - Updated to 19.1, based on the LineageOS-UL sources. Untested binary also compiled for d802.
Screenshot
View attachment 5833529
(more screenshots attached to this post)
Downloads
Binaries (d800 & d802 only for now): Sourceforge
Old - don't use: If "-jitworkaround" is in the zip file name, it contains a modification in the updater script to set "dalvik.vm.usejit=false" on installation and allow the ROM to boot.
Zip files without "-jitworkaround" are unmodified outputs from my build environment (which should be bootable from 20230207 on).
Source Code: GitHub
How to Use?
The binaries above can be flashed using blastagator's TWRP in the same way as prior versions of LineageOS. You will also need a compatible bootstack (like the Lollipop bootstack for D800-D802 & *S980 or a hybrid bootstack for other devices).
As for the sources, compile them the same way as 18.1 would be compiled, except use the lineage-19.1 branch of the LineageOS-UL repo instead, and between running "repo init" and "repo sync", download the local_manifest.xml file from the repository and place it in the .repo/local_manifests folder (which may need to be created). There may also be additional packages needed for your Linux distro, but I don't remember exactly what they are.
While I highly recommend sticking with LineageOS 18.1 if the G2 is still (somehow) your daily driver, hopefully, having this ROM out in the public will allow people to test it, find other bugs not listed above, and help to improve it (since my discretionary time for this will be limited). This also serves as proof that old grandpa isn't dead just yet!
EDIT 2023-03-18 - Updated bootstack information. If accelerometer and/or RIL do not work, try switching bootstacks if possible.
EDIT 2023-05-23 - Installing an older version of Cyanogenmod/LineageOS first can sometimes fix accelerometer issues. The 20230521 build broke Bluetooth, use a later build instead to fix it.
Credits
@aleasto and LineageOS contributors (for supporting this device all the way to LineageOS 18.1)
@MetoIsTaken (for preliminary work on the g2-common repository)
Contributors to LineageOS 19 for HTC and Samsung MSM8974 devices, as well as the G4 (for providing ports to similar devices from which I could reference)
LineageOS-UL team (for also having fixed many of the problems I have ran into)
@rlawoehd187 for continued work, especially on the Korean f320 model
Likely others not listed here, let me know if I forgot someone who should be listed
Click to expand...
Click to collapse
CrabXDA said:
Just registered on XDA-developers to say you THANK YOU!
All works fine for me. No bugs were founded.
Does it become an official build?
Click to expand...
Click to collapse
thats the attitude !!!
Great Job !!!
rlawoehd187 said:
Nice to see someone still trying to develop on g2.
Inspired by your work, I took out the g2 again after a long time.
working on my f320.
Accelerometer
bluetooth
camera (full work)
nfc
not work
radio
gps (fix coming soon)
GitHub - rlawoehd187/android_device_lge_g2-common at lineage-19.1
Contribute to rlawoehd187/android_device_lge_g2-common development by creating an account on GitHub.
github.com
GitHub - rlawoehd187/android_kernel_lge_msm8974 at lineage-19.1
LGEs "galbi" family. Contribute to rlawoehd187/android_kernel_lge_msm8974 development by creating an account on GitHub.
github.com
Click to expand...
Click to collapse
For FM Radio, is it possible to add the driver from the stock LG G3 kernel to make it usable?
Some time ago I tried adding the driver (I don't remember whether I pulled the source from Sony Shinano or LG) to 14.1 on D802, I cannot hear any sound but RDS (FM channel name and text/description) works.
Jazzlike-Swing-5623 said:
For FM Radio, is it possible to add the driver from the stock LG G3 kernel to make it usable?
Some time ago I tried adding the driver (I don't remember whether I pulled the source from Sony Shinano or LG) to 14.1 on D802, I cannot hear any sound but RDS (FM channel name and text/description) works.
Click to expand...
Click to collapse
If you can replicate those fixes on the LineageOS 18.1 or 19.1 kernels, I could merge those into my repositories and add the FM radio to the D802 and LS980 repositories. While I tried re-adding the radio from Shinano (it's in drivers/bluetooth/broadcom IIRC) and enabling it in the config, it didn't work. I realized upon further research that there's no way for me to test it, as I have the D800 model and according to this post on a thread about the G3's FM radio, models other than the D802 and LS980 have it broken in hardware.
Would you build lineage os recovery too? It gonna makes installation more easier for someone that have a device with broken screen. Aaa... honestly i doesnt like "someone logo" on the splash screen when twrp start...
qwek said:
Would you build lineage os recovery too? It gonna makes installation more easier for someone that have a device with broken screen. Aaa... honestly i doesnt like "someone logo" on the splash screen when twrp start...
Click to expand...
Click to collapse
Built, see the Sourceforge folder. I've tested the d800 one to make sure it boots, but I haven't tried flashing anything with it (I have stuff on the phone, so I don't want to mess with it too much during the week).
Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), 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. You can also view the Changelog for a full list of changes & features.
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 (LOS16.0):
RIL (Calls, SMS, Data)
Fingerprint
Wi-Fi
Bluetooth
Camera
Video Recording
Video Playback
Audio
Sensors
Flash
GPS
DAC
Vibration
Wifi Hotspot without password
[+] USB Tethering
What's not working (LOS16.0):
Hotspot with password/WPA2
Wifidisplay is borked
About LineageOS 17.0 and what you need to consider:
Read this post: https://forum.xda-developers.com/showpost.php?p=80271901&postcount=1580
Where are the features?
LineageOS is in development process so don't complain about xyz features missing.
Instructions:
Download the build
Reboot to recovery
Flash the latest build
Reboot
V30 Telegram group chat
Downloads:
17.1
H930: LineageOS 17.1
16.0:
LineageOS 16.0 AFH
H930 GDrive Mirror and H932 GDrive Mirror
15.1:
Here
H932 Release here, Mirror
Sources:
Device Tree: h930 + joan-common
Kernel: msm8998
Vendor: lge
lineage-16.0/17.0 branch
XDA:DevDB Information
LineageOS 16.0, ROM for the LG V30
Contributors
SGCMarkus, rashed97
Source Code: https://github.com/LineageOS/
ROM OS Version: 10.x Q
ROM Kernel: Linux 4.x
ROM Firmware Required: Pie firmware
Version Information
Status: Alpha
Current Beta Version: 1
Beta Release Date: 2018-05-13
Created 2018-05-13
Last Updated 2019-09-19
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 13.05.2018
- Initial release
Release 16.05.2018
- Fixed boot (temporarily disabled sdcardfs)
Release 18.05.2018
-enabled sdcardfs again (fixed, took the OP5(T) driver, not the broken LG one)
-reduces system image size by around 10MB, so our friends who repartitioned have a bit more room for that
Release 21.05.2018
-updated to latest LineageOS sources
-enabled burnin protection in overlays
-re-enabled exfat driver in the kernel (may cause issues for some sdcards, may need to reformat them, as they could "load" forever and make the system crash eventually)
-cherry-picked https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/210106 (should fix acccess to wide angle camera on apps that support it)
Release 01.06.2018
- Updated Autobrightness from Taimen (Pixel 2 XL), as it has the same panel
- Enabled the AoD option (you might have to unlock the phone twice or so though, LOS source is currently broken, nothing i can do)
- Updated to latest LOS sources
- Nuked lge/common and moved gestures into our tree
Release 08.06.2018
- Source updates
- fixed AOD
- Added back sysnode (camera stuff)
- thermal/lights HAL are now bindarized
- setting right model name on boot (zip is still called h930 though)
Release 01.07.2018
- Source updates
Release 19.07.2018
- Source updated
- Fixed vibrator
- Updated vendor files to H930V20R
- Allowed access to Snap, SnapCam and Gcam Wide angle mod by default
Release 30.08.2018
- Updated sources
- Updated blobs to 21a
Release 27.09.2018
- Updated sources
- New init system for model detection (old one used ro.boot.suffix which not every V30 had for some reason)
- Some love for the H930DS, it finally works now
- Baseband is shown correctly now
- Includes a release for the H932, will be a seperate link, check download section (This build is done by @me2151 and will not be maintained, but is up-to-date with the H930 currently)
Release 06.12.2018
- Update to LineageOS 16 (synced on 6. december, still has november security patch)
- H930D/DS works
- H932 build is also there, seperate download
- Vibration uses our own service now (no LG dependency), can sometimes, for 1 certain type of vibration be a bit weird, but works fine otherwise
- QuadDAC can be turned on/off (Settings -> Sound -> Hi-Fi Quad DAC), also Volume Balance works, the filters/equalizers dont
- GCam records audio just fine
- Reworked some media profiles (higher bitrates, should be able to record 720p240 and 1080p120, the new gcams kinda override that though and end up recording stuttering 1080p240...)
- Cleanup of a few nonworking proprietary files
- Updated proprietary files to H930V21o (November security patch)
Release 08.12.2018
- Sources updated for december security patch
Release 09.01.2019
- Sources updated for january security patch
- Updated brightness scaling (rom side + kernel side patches)
- Raised default brightness of the AOD
- Enabled Pocketmode (disabled Fingerprint sensor when phone screen is turned off and the proximity sensor is covered)
- SELinux is enforcing (if you encounter any issues, let me know, WITH logs only though)
- I hope i didnt forget anything
Release 13.02.2019
- Updated Sources (Feb. security patch and more)
- FM Radio (may not work on all models, like V300)
- EAS Power HAL + Kernel
- DRM fixed with SELinux enforcing
- DP/HDMI out works now properly
- maybe other stuff i forgot
Release 08.04.2019
- Updated sources (april security patch, los changes)
- Updated vendor files (h930 21w)
- 24 bit audio support
- Lots of DAC stuff
- Back to HMP for better battery life
- Speaker is a bit louder
- Other things i forgot
Release 22.04.2019
- Updated sources
- Added more perf/iop blobs
- Added color service (Settings -> Display -> LiveDisplay -> Color calibration)
- You can use Wifi AND Hotspot now at the same time
- AOD has now a few more options and is now via a little hax more reliable
- Stuff i might have forgotten
Release 10.06.2019
- Updates LOS Sources (June Security Patch, and some other features)
- Volume Panel can now be moved (Settings -> System -> Buttons -> Show Panel on Left)
- Touchscreen Gestures: 4 Swipe directions while touchscreen is off (Settings -> System -> Gestures -> Touchscreen Gestures)
-- This is partly ROM and partly Kernel patch
- Reverted camera blobs to pre 21w patch for more functionality (ISO couldnt be raised as high anymore what ive been told)
- Few other things here and there i might have forgotten
Changelog 19.09.19
- Updated to LOS 17
- Used H930DS 30b blobs (september security patch)
- Kernel sources at 4.4.153 (H930DS 30e), and CAF at LA.UM.7.4.r1-5400
Changelog 05.02.20
- Updated to LOS 17.1
-- february security patch
- H930 v30q blobs
- Video playback issues should be resolved
- Added sdfat driver in the kernel for exfat support
- Hotspot works with no Password set (working on this...)
- Updated Graphics and Wifidisplay stack from LA.UM.8.2.r1-04300-sdm660.0 (same drivers as msm8998...)
-- Wifidisplay is still a bit ****ed though
- Encryption should work (but TWRP for pie encryption doesnt support it)
- Camera for december and later security patch has been fixed
- Added missing NFC configs thanks to @ShapeShifter499
- More i might have forgotten...
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 are supported?
A. So far it works well on the H930(G/D/DS), US998, VS996 and LS998. H932 works too, use the .zip for that model. Other devices may bootloop.
Q. Help, my H931/H933 is bootlooping!
A1. For H931 please go to https://forum.xda-developers.com/lg-v30/how-to/running-h930-aosp-rom-us998-converted-t3889320
A2. For H933 please go to https://forum.xda-developers.com/showpost.php?p=78183349&postcount=2
Q. USB Tethering isnt working!!!!
A. Make sure you have the correct drivers installed.
Try this: open device manager:
find the RNDIS (thats what it was called for me), or some other device similar to that name, with a probably yellow !
right click: uninstall drivers (and tick delete drivers)
restart usb tethering
then you have an "unknown device", right click
install driver
search on pc
select from list
search for LG Electronics as manufacturer
and then on right side select "LGE AndroidNet Remote NDIS Device"
My God, that was fast. It even looks to be usable daily, so long as you don't need an SD card (and keep the phone on).
Goodbye Axon 7; V30, here I come!
I didn't see this in the OP but WE install gapps yes?
foamerman said:
I didn't see this in the OP but WE install gapps yes?
Click to expand...
Click to collapse
Install gapps after you flash the rom, dont reboot inbetween
Finally.. my fav lineage os is here.. awesome.. hope it gets continuous support..
Thanks!
dadme said:
Finally.. my fav lineage os is here.. awesome.. hope it gets continuous support..
Thanks!
Click to expand...
Click to collapse
I plan to
(And I hope some more people/devs become interested in this device now.... fixing/trying to fix stuff nearly alone after rashed did the first device bringup.... And im no pro myself either, idk what causes the boot issues )
For exfat why don't try Samsung open source module https://github.com/bkuhn/exfat
Work on LG V20 D.O.T.S custom kernel, realy nice.
dadme said:
For exfat why don't try Samsung open source module https://github.com/bkuhn/exfat
Work on LG V20 D.O.T.S custom kernel, realy nice.
Click to expand...
Click to collapse
Thanks, will try that one. Already had it working once, then took it out again to just check if it was causing issues or not, and then imported it again, and suddenly its causing a weird behaviour
Setupwizard takes ages to load, its checking the sdcard forever, Launcher takes ages to load too, and after a few minutes the system crashes... Same happens with the sdfat driver lol
On stock and TWRP it works fine though (TWRP uses the same driver as i tried btw...).
Nice ! Good job as always
I will flash it next week as i still need my V30 urgently working for now... but anyways thanks in advance
Camera
Literally the 1 thing stopping me from installing this right now is the camera. Gcamera is great but doesn't support 4k video on this device nor does it support laser focus or duel lenses (although the ported version of gcamera have a separate app for each camera). Please can you port the LG Camera over. Also does the QuadDAC work on this?
You made my Monday great ?
Thank you
Klimos said:
Literally the 1 thing stopping me from installing this right now is the camera. Gcamera is great but doesn't support 4k video on this device nor does it support laser focus or duel lenses (although the ported version of gcamera have a separate app for each camera). Please can you port the LG Camera over. Also does the QuadDAC work on this?
Click to expand...
Click to collapse
That is the reason I never used other roms on my G5.
SGCMarkus said:
Install gapps after you flash the rom, dont reboot inbetween
Click to expand...
Click to collapse
No what I was saying was the rom doesn't have gapps with it so we've got install gapps with the rom. Sorry for the confusion.
foamerman said:
No what I was saying was the rom doesn't have gapps with it so we've got install gapps with the rom. Sorry for the confusion.
Click to expand...
Click to collapse
Yep, not shipped with gapps. From my last stand of knowledge (like years ago lol) its not even allowed to ship gapps with ROMs.
Hi, is fm radio working with this rom?
Hi Markus, Danke for your great work and astonishing results here!
Regarding the camera: I remember some guys where extracting the official LG Cam from the Korean Oreo update a few weeks ago...
Is there any chance we could get the LG camera working on LineageOS ?
kgian2007 said:
Hi, is fm radio working with this rom?
Click to expand...
Click to collapse
tbh, i think i havent tested this yet. I focused more on finding out what the **** causes the bootissues.... (trying to figure that out since easter...)
Thats like searching a needle in a haystack (as the logs dont contain anything helpfull when it happens... and no ramoops either ;-; )
FcBayernMinga said:
Hi Markus, Danke for your great work and astonishing results here!
Regarding the camera: I remember some guys where extracting the official LG Cam from the Korean Oreo update a few weeks ago...
Is there any chance we could get the LG camera working on LineageOS ?
Click to expand...
Click to collapse
Ehhm... Depends on how much the LG Cam depends of the LG Framework? But i suppose thats a lot, would be really really difficult (involving lots of reverse engineering then probably) and would take ages. Doubt LG wants to make our lives easy lol
So... Just got a report from my tester.
10 consecutive (re)boots without a problem. Will release a version soon with this fixed
Had to disable sdcardfs (ro.sys.sdcardfs=0). Maybe i can find a commit somewhere that fixes whatever LG ****ed up there (I suppose their stock framework/kernel source has a modified version, that doesnt work well with AOSP based ROMs...)
Edit: uploading non-treble build now
Thanks to @phhusson for leading me to the fix
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
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
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.
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!
Any screenshots?
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!
Inerent said:
Any screenshots?
Click to expand...
Click to collapse
Updated with screenshots ^^
@SGCMarkus .. I think you meant V40 telegram group
neocyke said:
@SGCMarkus .. I think you meant V40 telegram group
Click to expand...
Click to collapse
Uuups, too much copy paste xD
Thanks, corrected it, but atleast the link behind it went to the V40 group
Awesome guys thank you all, I will be donating. Question how do I install TWRP on my Sprint (Unlocked Pie) to install this?
Droidman61 said:
Awesome guys thank you all, I will be donating. Question how do I install TWRP on my Sprint (Unlocked Pie) to install this?
Click to expand...
Click to collapse
SGCMarkus already put up the guide for that
Droidman61 said:
Awesome guys thank you all, I will be donating. Question how do I install TWRP on my Sprint (Unlocked Pie) to install this?
Click to expand...
Click to collapse
You can follow this guide here: https://forum.xda-developers.com/lg-v40/development/twrp-lg-v40-judypn-t3970111
good luck!
SGCMarkus said:
...
Click to expand...
Click to collapse
Is there any chance you could try and port Lineage 17 to the V20?
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?
What partitions would I check on backup in TWRP if I was going to install Lineage 16 or 17?
samfriedmann_ said:
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?
Click to expand...
Click to collapse
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 ----------
Android4Lif said:
What partitions would I check on backup in TWRP if I was going to install Lineage 16 or 17?
Click to expand...
Click to collapse
Well first you would backup everything minus system.img and Vendor.img...on both slots just to make sure
samfriedmann_ said:
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?
Click to expand...
Click to collapse
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)
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!
I have it installed but keep losing my phone/data. It won't recognize my SIM card any suggestions?
Droidman61 said:
I have it installed but keep losing my phone/data. It won't recognize my SIM card any suggestions?
Click to expand...
Click to collapse
What carrier are you with?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS 18.0 is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
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. You can also view the Changelog for a full list of changes & features.
Instructions:
Take a backup first from your actual system!
Before instaling, make sure you are running the latest Oreo firmware from the latest HTC Sense.
If you are encrypted but running an AOSP ROM then you're fine. If you come from Sense, take a full backup of all your data, boot into TWRP and format data (the option which requires you to type "yes") and clean flash accordingly. This is due to encryption changes. Do not skip this step or you will be locked out of your system by a password prompt.
If you are coming from any other ROM wiping /system & /data is strongly recommended
Download the latest build and GApps (both links are below).
Reboot to TWRP.
Flash the latest build and magisk ( optional ) after make one reboot.
When system is booted, reboot to TWRP and flash gapps
Reboot and enjoy (as much as currently possible)
Downloads:
ROM: lineage-18.0-20201115-UNOFFICIAL-pme.zip
GAPPS: NikGApps
Known Issues:
IMS - VOLTE
SlowMo
SeLinux permissive ( will be fixed when the bugs are fixed )
Reporting bugs:
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 /proc/last_kmsg (do not bother getting a logcat unless you can get it just before the reboot, a logcat after a reboot is useless).
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved.
Credits:
LineageOS Team & Contributors
Code Aurora Forum
Special thank you who send me donations: ( both AOSiP & LOS )
- @The Fer-Shiz-Nizzle
- @fantamadnesss
- @_Sherrif
- @Roocher
- @scutworker
- @synaesthesics
- @MrN1484
- @Galdrapiu
- @Chucktr
- @guest
- @kdrkdr
- @heyChristo
Source code:
LineageOS Gerrit Review
Kernel source
Device source
Vendor source
XDA:DevDB Information
[ROM] [11.0] LineageOS 18.0 UNOFFICIAL Builds (pme), ROM for the HTC 10
Contributors
fagyi
ROM OS Version: Android 10
ROM Firmware Required: OREO
Based On: LineageOS
Version Information
Status: Beta
Created 2020-11-15
Last Updated 2020-11-15
TIPS
1. - Since advanced reboot not implemented yet, if you want reboot to recovery, install one terminal app and type: reboot recovery
( root not needed for this )
my
This ROM is pretty smooth I haven't discovered any ɓug yet, still testing, Thanks @fagyi you are the best
@fagyi
No bugs so far, working smoothly
Tq
Got fingerprint working by setting it up again, google keyboard setting fixed by going to phone and set from there but preference still closed, battery better by flashing two magisk module universal gms mode and Lspeed apk. This rom is too good for an early build.thanks fagyi
---------- Post added at 09:29 AM ---------- Previous post was at 09:21 AM ----------
[/COLOR]
Setup fingerprint at every reboot and you will be ok, until the next build.
It's working
fagyi said:
TIPS
1. - Since advanced reboot not implemented yet, if you want reboot to recovery, install one terminal app and type: reboot recovery
( root not needed for this )
Click to expand...
Click to collapse
Advance reboot is working fine
CAMERON1988 said:
Setup fingerprint at every reboot and you will be ok, until the next build.
Click to expand...
Click to collapse
If I remember right, that Im updated the service blobs also, so https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/287693 not needed anymore, I need remove the config_cleanupUnusedFingerprints from device side. Thanks.
installed with nikgapps basic ok; require permissions settings to enable stock LOS sync;
no stock mail app found - not included yet ?
extended power menu enabled works ok
could not set screen-1 with discovery for stock launcher (trebuchet) - any hints ?
great build, thank you @fagyi
Maybe it's better to perfect past ROM's before tackling new ones? They have a lot of problems and things that require improvement, and you again strive to quickly port an actual android with new problems and bugs. Brilliant.
fforimen said:
Maybe it's better to perfect past ROM's before tackling new ones? They have a lot of problems and things that require improvement, and you again strive to quickly port an actual android with new problems and bugs. Brilliant.
Click to expand...
Click to collapse
What are the problems you have discovered so far on this lineage 18 port? I believe if you have found any it will be fixed in the next build, This rom is too stable to be a beta rom because I'm using it as my daily driver. Without the likes of fagyi we would have still be on stock oreo.
fforimen said:
Maybe it's better to perfect past ROM's before tackling new ones? They have a lot of problems and things that require improvement, and you again strive to quickly port an actual android with new problems and bugs. Brilliant.
Click to expand...
Click to collapse
If you feel inspired in development, I welcome your help in it. I will spend several hours making the latest version available. I have limitations for me too, because it requires a lot of knowledge, but I try to provide the best for us.
What is the many bugs in previous versions? Pls list of that on LOS 17.1 thread or Pixelexperience ( logcat & dmesg would be nice with bugs ).
The lot of problems which you mentoined I feel an exaggeration.
fforimen said:
Maybe it's better to perfect past ROM's before tackling new ones? They have a lot of problems and things that require improvement, and you again strive to quickly port an actual android with new problems and bugs. Brilliant.
Click to expand...
Click to collapse
Dude I have used previous rom for almost 6 months
As my daily driver,
What problems are u talking about?
This new rom is nearly perfect for its first release
Exept the fingerprint bug
fagyi said:
If you feel inspired in development, I welcome your help in it. I will spend several hours making the latest version available. I have limitations for me too, because it requires a lot of knowledge, but I try to provide the best for us.
What is the many bugs in previous versions? Pls list of that on LOS 17.1 thread or Pixelexperience ( logcat & dmesg would be nice with bugs ).
The lot of problems which you mentoined I feel an exaggeration.
Click to expand...
Click to collapse
To be sincere @fagyi I'm very happy that you owned this our HTC 10 device, at least we will expect more major update like android 12/13, on this old device. Coming from device that has no community support like galaxy s6 g920p every owner had no choice than to use stock base nougat roms but here is a different story, we have the likes of Fagyi who is working tirelessly to make sure that this device get updated more faster than those popular devices, I think we should be grateful to him.
Rom passed safety net by enabling magisk hide in magisk modue
Can someone recommend a Gcam that will work with this lineage 18.0 because I have tried so many Gcam mod out there but not good
CAMERON1988 said:
Can someone recommend a Gcam that will work with this lineage 18.0 because I have tried so many Gcam mod out there but not good
Click to expand...
Click to collapse
https://www.celsoazevedo.com/files/android/google-camera/f/changelog1330/
use this it works perfect
NSH021 said:
https://www.celsoazevedo.com/files/android/google-camera/f/changelog1330/
use this it works perfect
Click to expand...
Click to collapse
Thanks man it's working excellently.
@fagyi
I am experiencing 'very weak wifi' even when I stand very near to the router I don't get full signal, in this build
But mobile network coverage has increased
Compared to 10 rom
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
Introduction
LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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.
Bugs
What's working:
Boot
Bluetooth
Bluetooth Headphone (Media / In-Call)
Camera / Camcorder
FM Radio
Double Tap to Wake
Torch
RIL (LTE/Call/SMS)
GPS
WiFi
WiFi Hotspot (2.4/5Ghz)
USB (ADB/MTP/PTP)
Audio Playback
Video Playback
NFC
LED lights
Sensors
ExFAT SDCard
USB OTG (From Quick tiles -> Add USB OTG tile -> Press it)
Hardware Encryption
SELinux is Enforcing
What's not working:
You tell me.
Installation instructions
Download the zip(s).
Install a compatible Recovery
Perform a NANDroid backup of your current ROM (Optional)
Wipe system / data / cache partitions
Flash ROM.
Optional: Install the Google Apps addon package.
Optional: Install Magisk for Root.
Supported models:
E6533,E6553
Downloads
Recovery : My Unofficial TWRP
Gapps : NikGApps 11.0
Rom : Download
Sources
Device/Kernel/Vendor Tree: Sources
Donate
DONATE To Me
Big Thanks
LineageOS Team.
paradox.hm for being internal tester.
all sony-msm8994 contributors.
XDA:DevDB Information
LineageOS 18 for Z3+/Z4, ROM for the Sony Xperia Z3+/Z4
Contributors
tarkzim
Source Code: https://github.com/LineageOS
ROM OS Version: Android 11
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Stock 7.1
Based On: LineageOS
I don't have this device, just build it with my latest changes for Z3+/Z4 users.
Changelogs
2021/11/05
Updated with November security patches.
Upstream updates and fixes.
Switch SELinux to Enforcing (Let me know if it's booting or not)
2021/10/06
Updated to Android 11.0.0_r46 with October security patches.
Upstream updates and fixes.
Now it will detect your REAL model name, so you might be able to be recognized by stock flasher.
2021/09/13
Updated to Android 11.0.0_r43 with September security patches.
Upstream updates and fixes.
2021/08/07 - V2
Updated to Android 11.0.0_r40 with August security patches.
Upstream updates and fixes.
Updated sdcardfs sources, might fix Play store app with obb installation issues.
2021/07/14
Updated to Android 11.0.0_r39 with July security patches.
Upstream updates and fixes.
Tweaked power configs.
Added AptX HD codecs for bluetooth audio.
2021/06/14
Updated to Android 11.0.0_r38 with June security patches.
Upstream updates and fixes.
Fixed Bluetooth audio issues.
Fixed WiFi Mac address issues.
Fixed connection of WPA3 WiFi APs.
Fixed some audio performance issues.
VoIP audio related changes.
Switched to OnePlus2's Perf/Thermal stack - for better thermal controlling and performances.
2021/05/08
Updated to Android 11.0.0_r37 with May security patches.
Upstream updates and fixes.
Kernel updates.
Added VoLTE features (But seems not working for now, please test normal telephony features)
Bring back LiveDisplay.
2021/04/19
Initial release of LineageOS 18.1 for Z3+/Z4.
Android 11.0.0_r34 with April security patches.
With almost everything working, check the list above.
SELinux is now permissive, if you wanted to help with this, send me full logs.
Also providing latest TWRP for Z3+/Z4.
Screenshots
Thanks for your hard work Bro. it's really fantastic.
I can confirm, that in general it works not bad on my Z3+(E6553). Currently spotted problems:
1. Very laggy camera, when adding Wifi using qrcode - impossible to use.
2. With NikGapps Core impossible to get Contacts synched with Google account. Will try to install basic or full edition - maybe it will help.
EDIT:
Issue #2 is solved. Google Contacts gets normally synched, when NikGapps Core is installed right after Android ROM flashing with no reboot, as per LineageOS wiki guide:
"Google apps should be installed via recovery immediately after installing LineageOS"
Look for Installation title in: https://wiki.lineageos.org/gapps.html
3. Some apps cannot be installed from Play market. At 99% of download Goggle store informs "Can't download <name of app>". Currently only one thing goes in to the head - something is not right with Gapps permissions and applications with obb cache cannot save it to right location.
I'm really impressive about what you made, it is working nice and fast charging is present (not recommend because phone gets hot as h...). Navigation gestures, camera, both speakers, bluetooth... Congrats!!!!
Thank you for your efforts, it works normally, but there are some minor problems on my phone:
1. The rear camera cannot focus correctly,
2. The liveDisplay cannot be used,
3. The network time cannot be obtained correctly, and the factory time will be restored automatically after restarting. I need to manually correct the time.
It seems that fast charging is not supported.
The others are very good, thank you very much for your contribution, it is really very useful.
kevin0408 said:
Thank you for your efforts, it works normally, but there are some minor problems on my phone:
1. The rear camera cannot focus correctly,
2. The liveDisplay cannot be used,
3. The network time cannot be obtained correctly, and the factory time will be restored automatically after restarting. I need to manually correct the time.
It seems that fast charging is not supported.
The others are very good, thank you very much for your contribution, it is really very useful.
Click to expand...
Click to collapse
- There is not much i can do to improve the camera for now...
- LiveDisplay was removed before the initial release, because of a problem that could cause the kernel crashing, but it's already fixed and will be added back in the next build.
- I'm not really sure what's causing your problem with Time, because it's working fine on my "Z5" and should be the same on Z3+/Z4 too.
tarkzim said:
Code:
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
Introduction
LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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.
Bugs
What's working:
Boot
Bluetooth
Bluetooth Headphone (Media / In-Call)
Camera / Camcorder
Double Tap to Wake
Torch
RIL (LTE/Call/SMS)
GPS
WiFi
WiFi Hotspot (2.4/5Ghz)
USB (ADB/MTP/PTP)
Audio Playback
Video Playback
NFC
LED lights
Sensors
ExFAT SDCard
USB OTG (From Quick tiles -> Add USB OTG tile -> Press it)
Hardware Encryption
What's not working:
FM Radio
SELinux is permissive
You tell me.
Installation instructions
Download the zip(s).
Install a compatible Recovery
Perform a NANDroid backup of your current ROM (Optional)
Wipe system / data / cache partitions
Flash ROM.
Optional: Install the Google Apps addon package.
Optional: Install Magisk for Root.
Supported models:
E6533,E6553
Downloads
Recovery : My Unofficial TWRP
Gapps : NikGApps 11.0
Rom : Download
Sources
Device/Kernel/Vendor Tree: Sources
Donate
DONATE To Me
Big Thanks
LineageOS Team.
paradox.hm for being internal tester.
all sony-msm8994 contributors.
XDA:DevDB Information
LineageOS 18 for Z3+/Z4, ROM for the Sony Xperia Z3+/Z4
Contributors
tarkzim
Source Code: https://github.com/LineageOS
ROM OS Version: Android 11
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Stock 7.1
Based On: LineageOS
I don't have this device, just build it with my latest changes for Z3+/Z4 users.
Click to expand...
Click to collapse
Thank you so much for the work!
It worked nice on my XperiaZ4 during the last week.
And the radio app also worked well, much help.
Camera...nearly gone but frankly speaking, I won't count on the camera after unlocking a sony device
Fluencey is awesome, much better than official 7.1.2
Thanks a lot
New build released
Updated to Android 11.0.0_r37 with May security patches.
Upstream updates and fixes.
Kernel updates.
Added VoLTE features (But seems not working for now, please test normal telephony features)
Bring back LiveDisplay.
tarkzim said:
Code:
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
Introduction
LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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.
Bugs
What's working:
Boot
Bluetooth
Bluetooth Headphone (Media / In-Call)
Camera / Camcorder
FM Radio
Double Tap to Wake
Torch
RIL (LTE/Call/SMS)
GPS
WiFi
WiFi Hotspot (2.4/5Ghz)
USB (ADB/MTP/PTP)
Audio Playback
Video Playback
NFC
LED lights
Sensors
ExFAT SDCard
USB OTG (From Quick tiles -> Add USB OTG tile -> Press it)
Hardware Encryption
What's not working:
SELinux is permissive
You tell me.
Installation instructions
Download the zip(s).
Install a compatible Recovery
Perform a NANDroid backup of your current ROM (Optional)
Wipe system / data / cache partitions
Flash ROM.
Optional: Install the Google Apps addon package.
Optional: Install Magisk for Root.
Supported models:
E6533,E6553
Downloads
Recovery : My Unofficial TWRP
Gapps : NikGApps 11.0
Rom : Download
Sources
Device/Kernel/Vendor Tree: Sources
Donate
DONATE To Me
Big Thanks
LineageOS Team.
paradox.hm for being internal tester.
all sony-msm8994 contributors.
XDA:DevDB Information
LineageOS 18 for Z3+/Z4, ROM for the Sony Xperia Z3+/Z4
Contributors
tarkzim
Source Code: https://github.com/LineageOS
ROM OS Version: Android 11
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Stock 7.1
Based On: LineageOS
I don't have this device, just build it with my latest changes for Z3+/Z4 users.
Click to expand...
Click to collapse
I noticed some features that doesnt work on my device (E6533):
-Mic (when I try to use, the app force close).
-Bluetooth, first release it worked but for now, impossible to use.
-no sound when gaming (obb games in general).
-recovery wont work, a lot of error messages and wont flash anything.
-camera wont focus and taking a long time to shot (as you said camera wont work).
Otherhand multitasking and overall usage works nice, smooth animations, fast opening and excellent ram management.
julio140198 said:
I noticed some features that doesnt work on my device (E6533):
-Mic (when I try to use, the app force close).
-Bluetooth, first release it worked but for now, impossible to use.
-no sound when gaming (obb games in general).
-recovery wont work, a lot of error messages and wont flash anything.
-camera wont focus and taking a long time to shot (as you said camera wont work).
Otherhand multitasking and overall usage works nice, smooth animations, fast opening and excellent ram management.
Click to expand...
Click to collapse
Remember, that i don't have this device physically in hand, but i have a Z5 which is almost the same device.
And for reporting bugs, please attach logcat, otherwise it's not helping with anything, because some of them is totally fine on my device.
tarkzim said:
New build released
Updated to Android 11.0.0_r37 with May security patches.
Upstream updates and fixes.
Kernel updates.
Added VoLTE features (But seems not working for now, please test normal telephony features)
Bring back LiveDisplay.
Click to expand...
Click to collapse
First of all, I would like thanking you for the support to this device, as we Z3+/Z4 Users stuck in Nougat.
I have been using your rom for nearly three weeks, during long battery testes, performance, and the user experience. I classified how the system did, including the bugs I saw.
Level of ImportanceBug/ErrorPersonal OpinionMinimalSound is a bit choppy in higher frecuencies.This only has happened to me in 3rd party apps. Like Clock (when you set an alarm) , Twitch. It happens when the chip is surpassing the 41º degrees.MediumSome apps cannot play voice recordingsIt is working with the stock default recorder, but in messaging apps like Whatsapp and Recorder by Google. Few apps crashed at starting the record. The good thing is that is at least working in Telegram.MediumFM Radio not workingI know, it is already in the post. yet after some days it was working unexpectedly. I have no idea how, but after a reboot it just stopped giving signals.CriticalPlay Store cannot install apps containing OBB files
(Microsoft Office, Heavy games, among others...)I recently wanted to install manually a game with these kinds of files, and I realized something with a Root Explorer Manager....
(Check screenshot below)
Some permissions are not properly adjusted in this folder, this might be the bug. Was it caused by the GApps Package? I flashed NikGapps Full Package. (1-May-2021)CriticalCamera cannot recordingI wish you could finally make it work in 3rd party apps.
I recorded some logs if you want to take a look.
(Camera, Sound...)
Final Words...
I remember when the OS started for first time, it was really hot, more than usual, some Gapps just was keeping crashing, I let the phone to cold down, and worked.
After few hours sync was not working properly, so I decided to make an update manually from play store. Then all apps started to work perfectly.
Nothing to say about perfomance, it is much better than the Lineage 14.1 Nightly Build. You really nailed it!
Thanks for your time.
Retter_ said:
Level of ImportanceBug/ErrorPersonal OpinionMinimalSound is a bit choppy in higher frecuencies.This only has happened to me in 3rd party apps. Like Clock (when you set an alarm) , Twitch. It happens when the chip is surpassing the 41º degrees.MediumSome apps cannot play voice recordingsIt is working with the stock default recorder, but in messaging apps like Whatsapp and Recorder by Google. Few apps crashed at starting the record. The good thing is that is at least working in Telegram.MediumFM Radio not workingI know, it is already in the post. yet after some days it was working unexpectedly. I have no idea how, but after a reboot it just stopped giving signals.CriticalPlay Store cannot install apps containing OBB files
(Microsoft Office, Heavy games, among others...)I recently wanted to install manually a game with these kinds of files, and I realized something with a Root Explorer Manager....
(Check screenshot below)
Some permissions are not properly adjusted in this folder, this might be the bug. Was it caused by the GApps Package? I flashed NikGapps Full Package. (1-May-2021)CriticalCamera cannot recordingI wish you could finally make it work in 3rd party apps.
Click to expand...
Click to collapse
About your feedback:
-Sound issues should be improved in the next build.
-Haven't met any voice recording problems here. (Z5)
-FM Radio was always a pain in the ass, since my headphone jack is broken and my device is Z5,
I don't really know how to deal with it. but someone reported that it works.
-I have faced some problems like you while trying to download apps with obb, but after flash GAPPS package
over it again, i am able to download them, but still don't know the real reason. (using MindTheGapps)
-As i said camera stuff in this device is a mess, i can't really make any change to it, you will know if some progress has been made.
tarkzim said:
About your feedback:
-Sound issues should be improved in the next build.
-Haven't met any voice recording problems here. (Z5)
-FM Radio was always a pain in the ass, since my headphone jack is broken and my device is Z5,
I don't really know how to deal with it. but someone reported that it works.
-I have faced some problems like you while trying to download apps with obb, but after flash GAPPS package
over it again, i am able to download them, but still don't know the real reason. (using MindTheGapps)
-As i said camera stuff in this device is a mess, i can't really make any change to it, you will know if some progress has been made.
Click to expand...
Click to collapse
What a pity to heard that about your headphone jack, but you know it was working totally fine, then one day the app keep closing by itself, I don't even modified the system partition. I should clean cache... Maybe could work.
Thanks! Next build I will flash MindTheGApps, there seems to be a problem with NikGApps, luckily there are more Unofficial Gapps to try out.
I will be always up to day for every publication!
New build released
Updated to Android 11.0.0_r38 with June security patches.
Upstream updates and fixes.
Fixed Bluetooth audio issues.
Fixed WiFi Mac address issues.
Fixed connection of WPA3 WiFi APs.
Fixed some audio performance issues.
VoIP audio related changes.
Switched to OnePlus2's Perf/Thermal stack - for better thermal controlling and performances.
It is really great than 7.0 is much better. The temperature limit also very high is very good.
Please i want to ask you some questions iam beginner in this field and i have flashed twrp after i flashed it i must download all this build and flashed it orderd or i must to download last build only the third and flashed it this first one , the second i didnot know what i should to download google package or give my direct link for download sorry for my bad english and thank you at all
Thank you at all I flashed last build and flashed nikgapp but I faced problem with it so I replace it with mind gapp and it worked well , and i want to told you about something I had faced this problem before (focus in camera) when i flashed unofficial android 7 before , I fixed it with flashed this twrp but after I flashed this build I flashed this twrp but not fix this problem I attached file to look on it may fix this problem in next build , third one i want to ask you who i can disable fast charge in this build ,finally thank you for your effort sorry for my bad English
.................
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS is a free, community built, aftermarket firmware distribution of Android 13, which is designed to increase performance and reliability over stock Android for your device.
* Your warranty is now void.
(But I mean it's probably already void at this point... bleh.)
* We are 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!
* YOU are choosing to make these modifications and if
* YOU point the finger at us for messing up your device,
* WE will laugh at you.
Click to expand...
Click to collapse
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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
Base source code is available in the LineageOS GitHub repo.
If you would like to contribute to the upstream LineageOS project, please visit our Gerrit Code Review.
If you would like to contribute to LineageOS for this device, please see the source code listed below.
Known issues:
Wi-Fi is flaky for some users. Fixed next build:
h932: 2023-03-18
joan: 2023-03-21
Instructions :
All NON-H932 devices:
https://wiki.lineageos.org/devices/joan
H932 devices:
https://wiki.lineageos.org/devices/h932
Downloads :
All NON-H932 devices:
https://download.lineageos.org/devices/joan
H932 devices:
Coming soon!
Device source code:
https://github.com/LineageOS/android_device_lge_joan-common
https://github.com/LineageOS/android_device_lge_joan
https://github.com/LineageOS/android_device_lge_h932
https://github.com/LineageOS/android_kernel_lge_msm8998
V30 development (including other ROMs) usually happens over at Telegram: https://t.me/LGEV30.
You can still use this thread for bug reports.
Credits:
@SGCMarkus for all of the work with the V30 over the years
also a co-developer!
Slowhy (Android 12 maintenance)
LineageOS team
Simpler instructions(?):
- H932: unlock bootloader here: https://forum.xda-developers.com/t/3842550/
- All others: unlock bootloader here: https://forum.xda-developers.com/t/3790500/page-10#post-76584629
- For all other devices, I highly recommend staying on US998/H930/H930DS/V300K firmware.
After bootloader unlock, do something to update to stock Pie first, be it LG UP or TWRP zip. KDZ seems to be more stable, however. Do NOT update recovery when doing this, and immediately reboot to recovery afterwards.
Then literally just go install the ROM in a recovery of your choice. LineageOS recovery strongly recommended as shown in the guide.
reserved
I guess I'll hold a spot for testing at some point.
InSaiyanone said:
I guess I'll hold a spot for testing at some point.
Click to expand...
Click to collapse
hahha
New build: 20220621
- Update kernel to 4.4.250
- Fix Vulkan rendering (reverted to stock V30 driver)
Available through the built-in updater or at DL link in OP.
Has anyone tested on H932 yet?
hello, i installed los, nikgapps and magisk.
can someone guide me through encryting the phone please?
looks like wide-angle camera is not available... is it only me? can I activate it?
murrun said:
looks like wide-angle camera is not available... is it only me? can I activate it?
Click to expand...
Click to collapse
You can try using Gcam and see if that helps
tech_infinity said:
You can try using Gcam and see if that helps
Click to expand...
Click to collapse
I tried with Google Camera and Gcam. All same. ¯\_(ツ)_/¯
Thanks everyone for all the great ROMs, especially the LineageOS ROMs. Unfortunately, it's time to retire my V30 since my T-Mobile is now requiring VoIP. Loved this phone and I'm sad to have to switch. Thanks again for keeping this thing feeling fast and fresh, but never being able to do VoIP on a custom ROM means it's time to buy something new.
murrun said:
I tried with Google Camera and Gcam. All same. ¯\_(ツ)_/¯
Click to expand...
Click to collapse
My GCam works. Seems the LOS camera does not have multiple camera functions at all?
There's a specific gcam build for V30 in the telegram chat which is posted somewhere on this forum that I don't remember where.
New build: 20220714
- July security patch
- Fingerprint changed back to stock Pie, since using Oreo fingerprint didn't actually pass SafetyNet
Available through the built-in updater or at DL link in OP.
For anyone interested; wide-angle camera works with GCAM_8.4.400.42.XX_SHAMIM_V21
New build: 20220721
- SELinux is now enforcing
- Build fingerprint is back to Oreo.
- As a result of the above, SafetyNet is fully passing without Magisk!
- Call recording is enabled where legal (untested, because it is illegal where I live)
IMPORTANT NOTES:
- I am not a security expert.
- This is a major update, and Enforcing may break some things (nothing permanent). Make a TWRP backup as always.
- Registering a new fingerprint is broken in this build. Will be fixed next build.
- You may need to reinstall all Google apps. This seemed to constantly break whenever I changed a policy, and while reinstalling gapps fixed it, other Google-based apps broke as a result. Other apps appear unaffected at this time.
Available through the built-in updater or at DL link in OP. (I highly suggest not using the built-in updater this time, however, with enforcing and all.)
lifehackerhansol said:
New build: 20220721
- SELinux is now enforcing
- Build fingerprint is back to Oreo.
- As a result of the above, SafetyNet is fully passing without Magisk!
IMPORTANT NOTES:
- I am not a security expert.
- This is a major update, and Enforcing may break some things (nothing permanent). Make a TWRP backup as always.
- Registering a new fingerprint is broken in this build. Will be fixed next build.
- You may need to reinstall all Google apps. This seemed to constantly break whenever I changed a policy, and while reinstalling gapps fixed it, other Google-based apps broke as a result. Other apps appear unaffected at this time.
- Wi-Fi signal may be weak. Please report if it is! (with logs)
Available through the built-in updater or at DL link in OP. (I highly suggest not using the built-in updater this time, however, with enforcing and all.)
Click to expand...
Click to collapse
Amazing to see an enforcing AOSP ROM after so long(that too one which is being regularly updated). Thanks a lot !
New build: 20220722
- Fixed fingerprint registration
- Fixed Wi-Fi issues (files taken from LG V40)
I'll be going back to monthly build schedule after this
Available through the built-in updater or at DL link in OP.
New build: 20220810
Changelog:
- August security patch merged
- ARCore now supported (thanks LG for doing it weirdly)
- Fully implemented thermal-engine. This may improve battery, but I don't know. joan is weird and it's different every damn time
- Some improvements to fingerprint sensor randomly cutting off
- Try to fix NFC randomly cutting off
Available through the built-in updater or at DL link in OP.
Fantastic, thank you very much for bringing android 11 to this rather old device. However after clean wiping and flashing the 0810 version I couldn't use wifi at all (the mac address has become unavailable, device name and phone number unknown). The system UI also crashes from time to time (I think because of the unavailable wifi). The mobile network seems to work just fine though. I tried restoring modem and efs from a backup but couldn't solve the problem. Currently downloading the 0722 version to test if it work, I will update if I could fix this myself. Also the system's boot time seems to be quite long (1~2 minutes each) in comparison to the previous LOS 16.1 on the same device?