yashsingh1/xdaforums huggingface dataset:
[G3 Android Development] draxx31:
Many Thanks @walter79 for your private server and the related d855 build.

I was able to revive my old Lg G3 D855. The build

lineage-18.1-20221221-UNOFFICIAL-d855.zip

works like a charm.

My only concern is a "force close" on gapps at startup.

Will you keep the builds up to date on your server?
[G3 Android Development] draxx31:
Probably because there is no more official maintainer for that...
[G3 Android Development] Af0x:
Are there any actively maintained alternatives for the d855?
[G3 Android Development] Bwangster12:
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 "."
[G3 Android Development] Semen8991:
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? 😢🥺
[G3 Android Development] Nexus-3:
Sadly not.

Ever since upgrading to LineageOS v18.1 (incl. lineage-18.1-20221221-UNOFFICIAL-d855.zip) WiFi connections to my router (FritzBox 7590) no longer work. The workaround @Zirila mentioned here also doesn't work.

However WiFi hotspots from other Android phones are fine (as well as LineageOS v17 images).
[G3 Android Development] sasuke chen:
Is there anybody has the last nightlies build of D855?

I need the download link thank you very much!
[G3 Android Development] Azukegi:
Damn I only have a D852 build in my files. Why the does Lineage remove the old builds?
[G3 Android Development] draxx31:
@sasuke chen ,​

​

All builds are available here : https://server.zacherts.de/smartphone/LG-G3/?C=N;O=D
[G3 Android Development] Azukegi:
Has anyone had luck with wireless charging for the G3?
[G3 Android Development] Vincent_b:
What is e-0.21-o-20221230-UNOFFICIAL-d855.zip on https://server.zacherts.de/smartphone/LG-G3/ ?

Thanks
[G3 Android Development] Azukegi:
Can get 21+ days sand by (10 minutes screen usage, Wi-Fi off) with this 6200mAh battery 😂
[G3 Android Development] Af0x:
@HardStyl3r Just out of curiosity: why did you stop building? Is there any hope that you or someone else will pick up the development again?
[G3 Android Development] djibe89:
Hi I did a backup for lineage-18.1-20230127-UNOFFICIAL-d855.zip :

lineage-18.1-20230127-UNOFFICIAL-d855.zip | by djibe for G3

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com
[G3 Android Development] mfessler:
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
[G3 Android Development] Falar85:
I have the last version that was available OTA, it is 20221002. There are still two recent releases available in the MicroG repository.
[G3 Android Development] Af0x:
Anyone already tried the /e/OS build on a d855? Is it working?
[G3 Android Development] Bojan030:
USB file transfer doesn't work, only in PTP mode but regular file transfer not
[G3 Android Development] HardStyl3r:
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.
[G3 Android Development] walter79:
Good work. New rom fix two bugs with AVM FritzBox no connection if WPA2+WPA3 encryption is enabled and wifi disconnect during standby.
[G3 Android Development] Azukegi:
I managed to find one of those Wireless Charging backs for the G3 but I can't manage to get it working with this rom 😅 also is Nearby Share working for anybody on the latest rom?
[G3 Android Development] walter79:
Wireless Charging works well.
[G3 Android Development] macgyver77:
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.
[G3 Android Development] Azukegi:
Not sure why i can't get it working. tried stock battery also. I might flash stock and see if it works
[G3 Android Development] HardStyl3r:
Thank you very much :) I didn't pay enough attention.

If the new back cover has a different NFC chip than the stock one, it most likely won't work.
[G3 Android Development] NoUserNameForYou:
How do we apply this as laymen?
[G3 Android Development] macgyver77:
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.
[G3 Android Development] NoUserNameForYou:
Thanks so much.
[G3 Android Development] kitros3942:
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.
[G3 Android Development] Falar85:
I'm not sure, but compatibility with the case probably requires some proprietary code so implementing this on Lineage is unlikely to be possible.
[G3 Android Development] kitros3942:
Edit: okay, in retrospect I seem to have forgotten to mention the most important point in my post above: i.e. this clock face feature is said to be supported by LineageOS both for LG G3 and Samsung Galaxy S4, in the 1st post of this thread and from my own Internet research.

This is the screenshot of the clock face in the quick circle area shown by LineageOS, attached in the 3rd post of this thread by HardStyl3r.

I also remember seeing someone else using LG G3 saying the quick circle case was working for him on LineageOS on another website in the past, which is relevant with the quick circle case being among the supported features in the 1st post.

So I personally suspect it got broken in the past couple years.
[G3 Android Development] HardStyl3r:
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.
[G3 Android Development] kitros3942:
Thank you very much for clarifying this.

I'll charge my G3 phones and try again tomorrow.
[G3 Android Development] djcaptpln880:
I have a LG G3 D852G

I cannot seem to flash TWRP or CVM?

It gives me "secure boot error" each time I try to flash using command line OR flashify!

Does anyone know how to install Lineage latest with latest recovery?
[G3 Android Development] HardStyl3r:
Secure boot error means the image you've flashed is not "bumped". I am not sure about the G in the codename, but maybe you could try flashing d852's TWRP and then a custom ROM. Flashing ROM via command line or Flashify seems sketchy.
[G3 Android Development] djcaptpln880:
Greetings

I have tried downloadind the "bumped" file and no luck!

Maybe I messed something up with the file name or something?

Any advice?
[G3 Android Development] djcaptpln880:
I followed the directions from the links I sent you... still no luck
[G3 Android Development] HardStyl3r:
I've never heard of D852G, maybe it's just not compatible. Sorry.
[G3 Android Development] djcaptpln880:
Hello

In software it says D852G

But on the hardware under the battery cover it says D850
[G3 Android Development] Azukegi:
This thread might be able to help you figure out what device that is, looks like a Canadian variant https://xdaforums.com/t/lg-g3-d852-or-d852g-please-help.3551246/
[G3 Android Development] djcaptpln880:
Greetings

Yes I checked that thread

not much there to help ID the phone

Any tips? :)
[G3 Android Development] waltibaba:
Hello, and thanks for your hard work reviving our old phones!

My G3 d855 just boot loops after I enable encryption in security settings, is there something else that needs to be done before? Is there a flashable zip to enable FBEv1 or some other trick like on other phones? I'm running the latest available 20230424 release system and recovery.
[G3 Android Development] HardStyl3r:
What software?

Are you sure you're on a correct modem version? I've checked personally that encryption works. No external tools or zips required. Maybe you could grab a log for me, too?
[G3 Android Development] waltibaba:
Hmm that's a good question, is there a specific version that should be used? Wifi, SIM, etc. all work fine on a 2023 /e/ OS release with no other changes, just adb shell dd flashed recovery, then wiped and flashed your LOS zip. My device has had a mainboard swap, but it's still a d855.

Which modem should I have? An official one extracted from a stock .kdz? I was running a 10L I think, but just flashed a 30B from a flashable .zip I still had, same bootloop.

It just barely gets past the LG logo, to the Lineage animation beginning, the green line, and crashes to black, then reboots. How can I get a log from there? Recovery still works.
[G3 Android Development] HardStyl3r:
You need a computer, then use adb logcat -b all and save to file. Enable usb debugging first and authorize. Do it after first boot after encryption.
[G3 Android Development] waltibaba:
It never boots after encryption, what I wrote earlier happens right away - after encrypt storage command, it tries to reboot, and boot loops forever.

Which modem do you use? Do you have a download link?
[G3 Android Development] HardStyl3r:
I am using 21C, linked in thread.

This is what I meant by after the first boot. Adb should be working right before Lineage boot animation is shown. Keep the command in the console of your computer, it will wait for the device and then immediately start logging when it responds. Of course, keep it connected to the computer.

Edit:

Additionally, I've grabbed some screenshots to help back me up:

. Get me the log and we'll find out what's wrong.
[G3 Android Development] waltibaba:
Read all 300 posts in the thread, there is no link to any modem or thread with modems or similar in any post including OP. Also I didn't find any flashable 21C modem or full KDZ or TOT on any old site (that storagecow link, various mega links etc.). Do you have a link for me?

ADB is not connecting, enabled it pre-encrypting, ticked always allow computer. Device is bootlooping connected to PC. See attached logcat from the first tap of the encrypt button attached. EDIT: tried attaching 5 times, XDA says it's successful then doesn't show it... MEGA link instead
[G3 Android Development] HardStyl3r:
Yeah, my bad. I've forgotten to put the link here. Here it is: https://xdaforums.com/t/radio-modem-d855-lg-g3.3110376/. And I can't see any attachments.
[G3 Android Development] waltibaba:
Thanks for the link! Sorry about the attachments, XDA attaches it then it doesn't show up... MEGA upload instead: https://mega.nz/file/ykYxHYyK#fCUVgiTAe8eA_bbh6UA8rvpAke359bHOKMK1pb3hCks

I have no clue why I never noticed an issue with 30* base firmware before, I ran the phone on custom roms for a long time, likely unencrypted though.

EDIT: flashed it to 21C now and clean installed your LOS, no change sadly. Bootloops as before
[G3 Android Development] waltibaba:
04-24 10:35:37.281 239 4788 I Cryptfs : Using scrypt with keymaster for cryptfs KDF
04-24 10:35:38.120 239 4788 E Cryptfs : Unknown KDF type 2
04-24 10:35:38.120 239 4788 E Cryptfs : Signing failed
04-24 10:35:38.121 239 4788 E Cryptfs : scrypt failed
04-24 10:35:31.658 0 0 E QSEECOM : __qseecom_process_incomplete_cmd: fail:resp res= -68,app_id = 0,lstr = 8192
04-24 10:35:37.818 380 3592 I ServiceManager: Waiting for service 'media.metrics' on '/dev/binder'...
04-24 10:35:38.146 273 273 E QSEECOMAPI: : Error::ioctl call to create encryption key for usage 1 failed with ret = -1, errno = 22
04-24 10:35:38.147 273 273 E vendor.qti.hardware.cryptfshw@1.0-impl-qti.qsee: Error::Qseecom call to create encryption key for usage 1 failed with ret = -7, errno = 22
04-24 10:35:38.147 239 4788 E Cryptfs : Error enabling encryption after framework is shutdown, no data changed, restarting system
04-24 10:35:31.658 0 0 E QSEECOM : __qseecom_generate_and_save_key: process_incomplete_cmd FAILED, resp.result -68
04-24 10:35:31.659 0 0 E QSEECOM : qseecom_create_key: Failed to generate key on storage: -22
04-24 10:35:31.659 0 0 E QSEECOM : qseecom_ioctl: failed to create encryption key: -22

These lines pop up every time, seems to be an issue with generating a key in QSEECOM driver - not sure whether that's in the modem partition or somewhere else...

I flashed the 21C modem and also 21C RPM/TZ partition from your link before trying.

Tried creating a pattern before encrypting, or no screen lock, both had the same failure.

Error might also start in google AOSP vold: https://android.googlesource.com/pl...dcdb4a5b7f61a61f824ab8e9b8af9/cryptfs.cpp#170

Depending on whether the logcat is chronological or in reverse order (like a stack trace), not sure on that. It would make more sense that QSEECOM fails to get a base key from crypto enclave, then vold fails to sign objects. Not sure what error 22 is, vold only has negatives and qseecomi.h has none that high
[G3 Android Development] betelgeuse1031:
Hi guys,

Does this rom can be installed on D858HK dual sim of LG G3?

Does anyone know any latest custom rom that support dual sim?
[G3 Android Development] mfessler:
Hello,

first of all: Thank you for this rom!

When flashing the MindTheGapps in TWRP I unfortunately get the error message "Could not mount /mnt/system! Aborting".

It works fine with LineageOS Recovery.

I could use Open GApps, which can be flashed fine with TWRP, but both LOS and HardStyl3r recommend MindTheGapps.

Does anyone have an idea how to fix the above mentioned error?

Maybe mounting system manually in the terminal before flashing the zip?

Thanks and greetings,

Martin
[G3 Android Development] walter79:
Mount /system in TWRP first. Or try ADB sideload
[G3 Android Development] mfessler:
Thank you for your answer!

I had already tried to mount the system in TWRP before installing MindTheGapps.

ADB sideload... I will try that, but isn't the installation routine the same?
[G3 Android Development] mfessler:
Hello everyone,

first of all, thank you for keeping the device alive! :D

One Problem: I only get heavily fluctuating one digits Mbit/s DL speed via WiFi 2.4GHz.

When i connect to the 5GHz network i get the full speed.

But... maybe it's just a compatibility problem, because I have another device (Xperia Z1c also with LOS 18.1) which behaves similarly.

However, the 2.4G works perfectly fine with a Galaxy S4 (also LOS 18.1) and other devices.

Has anyone noticed the same behaviour? :unsure:

Thanks and greetings,

Martin
[G3 Android Development] sunny1207:
Problem with D858hk variant

First of all,English is not my language,so please forgive my poor English.

Since many apps tocday does not support android 5 or below, but i cannot find suitable custom rom for D858hk variant og lg g3, so i try to install LineageOS18.1 rom for D855 variant on D858hk. However, there is many problem when installing.

I have tried to edit \lineage-18.1-20230424-UNOFFICIAL-d855.zip\META-

INF\com\google\android\updater-script by deleting the first two line with 'getprop' to avoid device limitation.

But when try to install rom with twrp 3.0.0, it show two "E:unknown command [log]" and "script succeeded: result was [1.000000]" while twrp showing that the installation was successful.When reboot the phone as twrp suggest, the phone cannot get into the system but get into fastboot mode.

So i want to ask how can i install Lineage OS 18 into LG G3 D858hk(or any other suitable rom which support most of the today apps recommended)?

Thanks a lot!!!
[G3 Android Development] HardStyl3r:
This is not a supported variant.

You can't flash MindTheGapps with TWRP, unfortunately. This is why I recommended switching to provided LineageOS recovery.

I will check that when I am back from holiday.

I am sorry, but I have no idea what could be happening there. I remember having encryption errors during early stages of bringup and, on another occasion, when my partitions were somehow broken. I've reflashed my whole phone using TOT files, rooted stock rom and got everything back on track again. You could also try flashing Clean ROM, and then coming back to Lineage. It used to fix weird issues with camera and sensors back in the day. It's linked in the thread.
[G3 Android Development] gandul:
Thanks again for your great work to keep our phones alive!

I tried to read a USB stick with the last buid of april 2023 but sadly it still doesn't work after rooting my phone with Magisk

Here attached a log of the error if it could help

Thanks again for amazing work!
[G3 Android Development] waltibaba:
I got encryption working on CleanROM as you suggested, after wiping and formatting encrypt (/dev/block/platform/msm.sdcc.1/by-name/encrypt) with dd /dev/zero then mkfs.fat. Tried ext2 and just zeroed as well but those didn't work. I had different but similar issues there, but I found a Sony kernel github issue where they said its an android linux kernel issue - So it only worked on CleanROM if I chose the latest stock LG kernel (~mid 2018) rather than any of the Xceed kernel options (~2016 to late 2017), likely just a kernel bug I'm guessing.

A slightly more comprehensive log is in the spoiler below

Spoiler content hidden.

It seems like that hwservicemanager shows the real issue: it can't find any hardware encryption methods, only software ones. So it uses Google SoftwareKeymasterDevice, which says it can do scrypt, but when it tries to run scrypt it can't generate a key.

This is either a driver issue in the kernel, or incorrect other random partitions. TZ is trustzone, so that would make sense if there's a kernel driver that expects a different binary in that partition.

Also there's a bug in the OS: in the last line it says it stopped enabling encryption, but it just bootloops after rebooting, so it leaves some persistent data there where it shouldn't, so a bug in the error handling of cryptfs.

EDIT: from a complete fresh wipe

- starting with V10e TOT in refurbish mode in LG UP,

- using Germany_D85510L.kdz also in refurbish mode in LG UP,

- Purpledrake root

- adb shell and dd /dev/zero to recovery partition (/dev/block/msm_sdcc.1/by-name/recovery)

- then dd twrp_3.7.0.img and reboot to recovery

- wipe system+cache+dalvik and format userdata

- flash lineage

- do quick first setup wizard

- set lockscreen pin (not pattern, just in case that is the problem)

- enable developer, enable adb

- adb logcat on the pc

- click the encrypt device button in security menu

same issue as above.

So either my hardware has some difference where it's missing the QTI/QSeeCom/TrustZone/whatever Qualcomm secure enclave/crypto features, or the driver in the rom has an issue, or something you did like using a specific base TOT/kdz that caused a specific version of modem, TZ, RPM, modemst1/modemst2, encrypt or other partition to exist on your device, but isn't written down anywhere in this thread (besides our previous mention of step-han's 21C packaged modem).

I would really like to use the G3, but I've been stuck for a long time now, and without full instructions on which specific versions of the 100's of available LG kdz system images to use, it's basically impossible sadly.
[G3 Android Development] Af0x:
Will the LG G3 even work with Lineage 20 as it has an older kernel (afaik) and there was some kind of deprecation because of missing BPF support?
[G3 Android Development] HardStyl3r:
There is a workout which makes LineageOS 20 boot on older hardware and I was, indeed, working on it. I had to temporarily suspend all work on it, because I've gotten employed in the Netherlands and I couldn't move my computer from Poland there.

There was a kernel patch I've applied a long, long time ago to fix encryption. I will take a look at it when I come back home.

I will take a look, too.
[G3 Android Development] spirop35:
can you help me i have the same problem
[G3 Android Development] Azukegi:
(delete)
[G3 Android Development] davidrf:
I can't seem to install MindtheGapps. I always get the message "unable to mount System". I tried to install the file both from SD and local storage. I also manually mounted System, but to no avail. Any ideas? Thanks!
[G3 Android Development] mihawk101:
Hello, is there a way to turn off the screen with a double tap on the launcher wallpaper as was done with the original LG cape, I don't like turning off the screen in the notification bar, it is very annoying because sometimes the finger does not It reacts in that part because that area is too thin.

Edit: Don't worry, it doesn't matter, I find the double tap app in the Play Store. 😁
[G3 Android Development] salih_4187:
Can i build LineageOS 19.1 with your device tree? (And did you try to build this for LG G3?)
[G3 Android Development] Scowlingsky:
What? Where?
[G3 Android Development] romaxaa:
Can I run Nvidia Shield games in this LineageOS?
[G3 Android Development] Af0x:
Not want to stress but is there still hope for the G3 to be continued?
[G3 Android Development] timematcher:
Great work @HardStyl3r I have an LG D856 and another LG D858HK lying around with Fulmics on it which is dating and slow!

I wonder if you could create an D856/D858HK/LG G3DS variant too.

Appreciate your hardwork!. Thanks so much
[G3 Android Development] waltibaba:
There is /e/ OS https://doc.e.foundation/devices/d855