[Android 11/R] LineageOS 18.1 for LG G3 (Unofficial)

Search This thread

mohamedfaky

Senior Member
Nov 14, 2014
57
6
Hi, I'm getting boot certification verify error with red blue flashing light on my d855 when I try to flash this from custom recovery, had to go back to stock Android 5.0 rom after softbreak, also flashing any custom recovery (TWRP 3.7.0 from twrp official site, twrp 2.8.0 bump from other site, lineageOS recovery for d855 from official site) and booting to any of them cause same verification error to happen, while using fastboot to boot recovery img on fly (with fastboot boot twrp-XXX.img) works and custom recovery gets booted without issue, I believe most of those custom recoveries are bumped and should work without issues, so why this happen? I can directly access fastboot because I used dd to write zeros on laf partition along time ago, maybe this have something to do with boot certification error? should I write back laf again?

[EDIT: I realised that I should have downgrading bootloader to KK before flashing and after doing that I was able to boot bumped custom recovery and I managed to boot LineageOS 18.1 without issues..]
 
Last edited:

Bwangster12

Senior Member
Jan 3, 2011
965
107
New York
Recently picked up an old G3 D850 and it's running the debloated stock 5.0.1. I wanted to try and install the LineageOS 18.1, but every time I attempt to flash in TWRP, I get the error 1 issue. It says that this rom is for the D850, but I have "."
 

Semen8991

New member
Jan 17, 2023
2
0
Does anyone have problems with NFC? I There is a problem with NFC. When I put the card to the phone - it turns off and turns on immediately. In Android 10 everything works perfectly. The problem is only in Android 11. Can you make a fix, please? 😢🥺
 

mfessler

Member
Apr 14, 2021
6
0
Does anyone know what the last official version was?
Google spits out "lineage-18.1-20221008-nightly-d855-signed.zip" - is that correct?

Is there hope for a new maintainer?
How well does /e/OS run on the G3?

Thanks and greetings,
Martin
 

Falar85

Senior Member
Jan 5, 2015
52
18
Does anyone know what the last official version was?
Google spits out "lineage-18.1-20221008-nightly-d855-signed.zip" - is that correct?

Is there hope for a new maintainer?
How well does /e/OS run on the G3?

Thanks and greetings,
Martin
I have the last version that was available OTA, it is 20221002. There are still two recent releases available in the MicroG repository.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    How do we apply this as laymen?
    You can just wait for HardStyl3r's next build (I've seen that he has already committed the changes in his repo) or flash the attached file (just to be used with the 202304 builds) from recovery--tested with the latest TWRP. You could also edit the above-mentioned file directly on device if you can become root.

    Addition 2023-05-23:
    I made the patch file below from a patch I had made for myself several months ago. I had added patch persistence during LOS updates by adding a file for the LOS addon.d system.
    So, before you install a newer LOS build, you have to flash the undo-file to delete the addon.d-persistence right before flashing the newer build, unless you're going to format system anyway before installing the newer build. Otherwise the file "init.g3.rc" will be reset to the version from my patch, which might be undesirable if the newer build contains other improvements there.
    1
    Heh, long time no see. :p
    I've managed to narrow down every single bug I could find and increase performance wherever applicable.
    LineageOS 20 is work in progress. I just need more time and start off with a clean 18.1 base. I can't fix LineageOS 20 when previous versions were unstable.
    I've swapped download links and updated the main thread.

    Thoroughly tested on d855, other variants are built as usual, so I need a lot of feedback. If everything goes well with these builds, I'll try to move back to Official releases with OTA.
    Thanks a lot for keeping this alive! =)

    Installed the 202304 build (for D855) as an update to the last published official nightly, and everything went pretty well. (y)

    When looking at the changes, I found that there are 2 glitches in "init.g3.rc" that prevent proper activation of ZRAM swapping:
    (1) Before the swapdisk is mounted with a size relative to RAM, a fixed size of 512M is set in the initfile - this will not change later regardless of the parameters in fstab. This line should be omitted IMHO. (2) The swapon command refers to the wrong fstab filename (which is "fstab.g3", not "fstab.qcom" on this device), so that swap is not activated at all.
    I would propose the attached patch.
    1
    Thanks a lot for keeping this alive! =)

    Installed the 202304 build (for D855) as an update to the last published official nightly, and everything went pretty well. (y)

    When looking at the changes, I found that there are 2 glitches in "init.g3.rc" that prevent proper activation of ZRAM swapping:
    (1) Before the swapdisk is mounted with a size relative to RAM, a fixed size of 512M is set in the initfile - this will not change later regardless of the parameters in fstab. This line should be omitted IMHO. (2) The swapon command refers to the wrong fstab filename (which is "fstab.g3", not "fstab.qcom" on this device), so that swap is not activated at all.
    I would propose the attached patch.
    Thank you very much :) I didn't pay enough attention.
    View attachment 5902677
    Not sure why i can't get it working. tried stock battery also. I might flash stock and see if it works
    If the new back cover has a different NFC chip than the stock one, it most likely won't work.
    1
    Hi, I have 2 different LG G3 phones.

    Each is running Official LineageOS 18.1 released some time last year.

    My problem is that I can't seem to make their quick circle cases work.
    (The quick circle cases worked as expected when the phones had stock firmware.)

    For one thing, the circle area doesn't show the clock face upon closing the lid. (I believe I set up this feature correctly in the Settings app)

    FWIW, I have 2 Samsung Galaxy S4 phones which also have a similar feature called S-View with flip cases specifically designed for this end.

    And quite similarly the clock face feature for these phones also worked correctly with their stock firmware,

    but once I installed official LineagesOS 18.1 onto them last year, I could not make this feature work anymore.

    So while I'm not an expert, I suspect it might be possible that some generic code changes rendered this feature not functional for different phone models.

    Their were some other quirks with this quick circle feature on LG G3,

    but it's been a while since I last used these phones,

    so I'm afraid I currently cannot provide any more correct information including the phones' models. (I think both are North-American models)

    I'm going to take out my phones and check upon more information as necessary,

    so feel free to ask me.
    I have the official LG Quick Circle case, and it works just fine. The app FlipFlap https://github.com/LineageOS/android_packages_apps_FlipFlap, which is preinstalled in all G3 builds, is responsible for it. I am not sure what could be the problem here.
  • 24
    V1KTmBM.png



    sFC1ljz.png

    LineageOS 18.1 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.

    Features:
    RIL: LTE, Calling + recording, SMS and MMS
    Wi-Fi: Connection to 2.4 and 5 GHz, Wi-Fi Display with audio
    Bluetooth pairing, sharing and audio
    Audio & video playback, streaming and recording
    NFC
    GPS and sensors
    Camera
    Powered on/off and wireless charging
    USB file transfer/MTP and charging
    USB, Bluetooth and Wi-Fi tethering (hotspot)
    Google services and SafetyNet compliant (banking apps and Google Wallet work out of the box)
    Storage encryption and SDCard
    LineageOS Recovery with encryption support (not required, but endorsed :))
    Slimport HDMI
    LG Quick Circle case support with FlipFlap

    Known issues:
    DRM/Widevine L3: Amazon Prime and Play Now (Polish TV stream) are working and streaming, but the quality is 540p.
    YouTube doesn't show 1440p in video quality options.
    Slimport HDMI connection creates screen flickering, but it's not visible on an external display.

    Won't work:
    VoLTE

    Check out the changelog in the post below.

    F2KbTDc.png

    Make sure you're on the correct firmware for your variant.
    1. If you're coming from another ROM or performing a clean flash:
    • Reboot to Recovery
    • Backup any important data
    • Format Data partition
    • Wipe Dalvik, Cache and System
    • Flash the ROM
    • Flash GApps (optional, can't be flashed after the first boot)
    • Reboot to System
    2. If you're updating the ROM or performing a dirty flash:
    • Reboot to Recovery
    • Flash the ROM
    • Wipe Cache
    • Reboot to System

    TK3TVvO.png

    Download LineageOS 18.1 ROM and Recovery
    Alternative download for LineageOS 18.1
    TWRP for LG G3
    Google apps (MindTheGapps recommended)
    Rooting your phone by Linus Tech Tips
    Stock ROM by @MESA
    3__HacerPermisivo.zip - this switches your selinux to permissive
    bootimage_adb_unsecure by @AdrianDC - debugging, disables adb auth
    Mr_Bump.zip by @dadi11 - fix for Secure booting error (boot certification verify)

    Nh9aiVb.png

    Join G3 development channel on Telegram to get more info about my projects.

    DPxaQu8.png

    LineageOS GitHub repo
    github.com/itsHardStyl3r
    device and kernel sources
    8
    Heh, long time no see. :p
    I've managed to narrow down every single bug I could find and increase performance wherever applicable.
    LineageOS 20 is work in progress. I just need more time and start off with a clean 18.1 base. I can't fix LineageOS 20 when previous versions were unstable.
    I've swapped download links and updated the main thread.

    Thoroughly tested on d855, other variants are built as usual, so I need a lot of feedback. If everything goes well with these builds, I'll try to move back to Official releases with OTA.
    7
    A new update (for a short while) before we'll have official builds. Once the builds are available to download, I'll convert this thread to Official and close 17.1.
    Enjoy.
    7
    I just wanted to say thank you to HardStyl3r for all the great work that was done to LS990 with LineageOS. The phone just got new life with this ROM.
    And also want to know some news about Android 12 :) Would you concider to port it to LS990? LineageOS 19? :)
    I do plan to release Android 12.
    Can i use this rom for lg g3 US990?
    If it doesn't have msm8974ac, I am afraid you can't.
    5
    sZtGfmf.png

    18.1, 23.04.2023
    u434BM7.png

    Code:
     * Kernel: Updated prima driver (Wi-Fi)
     * Kernel: Updated sdFAT driver from 2.3.0 to 2.4.5
     * Kernel: Fixed race condition for TCP listens (https://gitlab.com/LineageOS/issues/android/-/issues/3916#note_669493796)
     * Enabled DRM Clearkey 1.3 plugin
     * Reimplemented ZRAM
     * Fixed geotagging in photos
     * Disabled wallpaper zooming effect to increase performance of app drawer
     * Fixed Wi-Fi settings not being applied, including LG G3 default hotspot name
     * Fixed Wi-Fi WPA3 networks
     * Fixed turning off DiscoveryService and NearbyMessagesService
     * Adjusted sepolicy settings
     * G3 should now appear as a phone in File Managers via USB
     * d85x, f400, vs985: Declared support for Mifare NFC tags
       - ls990 does not have pn547 NFC chip, so I can't confirm it works.
     * Reverted "Disable wifi AP MAC randomization" to fix 5 Ghz hotspot
       - It works now: https://imgur.com/a/6JgSynU.
     * Enabled XZ compression
     * Fixed HIDL power stats, TetherController and TelephonyManager errors
     * Updated screenshots

    18.1, 14.04.2021
    u434BM7.png

    Code:
     * April 2021 Android Security Bulletin: r34
     * Promotion to Official 18.1 #306996 #306997
     * Sanitized sources so I could push to LineageOS (mostly vendor stuff) - not really worth mentioning
     * Fixed TimeKeep implementation
     * Fixed "Switched to AOSP RenderScript" from 31.03.2021 update

    18.1, 31.03.2021
    u434BM7.png

    Code:
     * March 2021 Android Security Bulletin: r32
     * Fixed encryption
     * DRM protected now works (e.g. Netflix)
     * Switched to AOSP RenderScript
     * Builds now come with smaller font footprint

    18.1, 14.02.2021
    UgK3dlI.png

    Code:
     * Updated source (LineageOS/lineage-18.1)
    * sepolicy additions
    * device tree updates (Trust VINTF)
    * CameraServiceProxy error fix
    * more bringup

    18.1, 20.12.2020
    UgK3dlI.png

    Code:
     * Initial release