yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] kessaras:
Quantum hd is an oled type. LG only made oled screens since many years and now they developed something new.

Just think something else too (besides the articles where you can read for this type of screen), is it LCD ? No. Is it amoled ? No. What else was there the year 2012 ?
[G4 Android Development] szafranski:
In my case, the solution is to reboot into recovery (TWRP) and from there reboot to system. Works 100% times :)
[G4 Android Development] nigxxx:
Right now the phone see me and with a simple 1 tap it goes directly to homescreen.

If it doesn't see me it asks for pass.

Quite amazing this auto face unlock + single tap combo, haha[/QUOTE]

wow, that is awsome. cant wait to try it. you will include this in 5.3 or you will skip to 5.4
[G4 Android Development] bluelagoon8951:
wow, that is awsome. cant wait to try it. you will include this in 5.3 or you will skip to 5.4[/QUOTE]

Apparently will be up Saturday or later.
[G4 Android Development] raptorddd:
why are guys asking for ETA? thats against the rules let kessaras work you only slow him down responding to questions that shouldnt be posted.
[G4 Android Development] choice2rejoice:
Ok, that's really ****ty. Thx for trying. I guess an older version is enough to stay on. ?
[G4 Android Development] ThePiGuy:
I think you missed the post where he says he fixed it.
[G4 Android Development] lordc:
Just I stupid question. If we have OLED can we expect a battery friendly always on feature on a near future?
[G4 Android Development] ThePiGuy:
Looking on GSM Arena, it definitely says we have an IPS LCD display. I remember LG marketing it as an IPS display, so I think it is an LCD. Also, at low brightness in a dark room, you can see the backlight on dark areas (oleds are completely black on the black areas)
[G4 Android Development] SeewolfPK:
For information or not:

It may be that I make myself unpopular, but it is a fact: ROM 20180216 with 'Double Tap' on has a better battery performance than 20180225 with disabled 'Double Tape' but 20180225 is better with disabled "Double Tap" of course.

What makes 20180216 better?

It's Oreo too

If my information is unwanted, kessaras, tell me and I'll never write about battery consumption again
[G4 Android Development] Goatville:
I know kessaras is a well respected developer, i'm using this Rom right now in fact and absolutely appreciate the amazing work that went into it. But I can't see any way the G4 display could be an OLED. As ThePiGuy said, you can immediately tell an OLED screen from an LCD just due to the black levels. Subjectively, I also find OLED screen are noticeably more sharp and higher contrast than even the best LCDs. It's easy to distinguish OLED from LCD.

I've also yet to see an OLED display that wasn't susceptible to permanent burn-in when displaying static imagery for too long. Newer phones haven't fixed this from my experience. Temporary image retention on LCD is possible, but usually only in defective or damaged screens. I've yet to see permanent LCD burn in. My previous G4's battery overheated, expanded and damaged the display. This caused image retention, but it still wasn't permanent. Images faded within a minute. My replacement G4 has no issues, and i've kept it on static images for periods that would definitely burn in on an OLED.

The only LG phones I know of with OLED displays are the G Flex 1 and 2 along with the v30 (might be a few others i don't know about). Referred to as P-OLED. Any time LG phones use OLED displays, they look completely different from LCD and LG advertises it as a selling point. All sources online state the LG G4 uses IPS LCD.

I don't think there's a halfway point between LCD and OLED, it's either/or. LG are also still manufacturing LCD TVs alongside OLED even in their new upcoming 2018 models-

https://www.techradar.com/news/lg-tv-catalog-2018-heres-every-lg-tv-coming-in-2018
[G4 Android Development] Minto107:
[MENTION=5461026]kessaras[/MENTION]

About Bluetooth hals. How about Nexus 5X? It has same specs as G4 and official Oreo from Google. It's software is open source of course ;)
[G4 Android Development] Goatville:
An addition to my previous comment. Here's an article with a detailed explanation of the tech inside the G4 display and what they did to improve the screen-

https://www.pocket-lint.com/phones/...explained-how-is-it-different-to-a-normal-lcd

They apparently positioned the electrodes used to manipulate the pass-through of light differently than other LCD displays. This allowed both more AND less light to pass through than normal LCDs. So the display could be brighter without using any extra energy, and creating superior black levels and contrast, 1500:1 ratio instead of the usual 1000:1. Still a far cry from the contrast an OLED is capable of.

LG themselves refer to the G4 screen as Liquid Crystal in slides from their presentations. It is not an OLED.
[G4 Android Development] kessaras:
They don't work. It has its own drivers. We need quantum hd drivers to be compatible. But I think I said I fixed it.
[G4 Android Development] Minto107:
But we still talk about Bluetooth? Quantum LCD is screen tight right?
[G4 Android Development] tambukey:
This, this right here. They use the same audio codec. Not sure if the codecs are used for calls though. I am currently running through some of the audio files to compare, but they use the same bt-sco format.

https://www.ifixit.com/Teardown/Nexus+5X+Teardown/51318

They mention about 5 things that are absolutely identical to the G4 and a few things that are only one or so generations newer.
[G4 Android Development] kessaras:
yeah im at work and read fast. bluetooth audio is audio problem not bluetooth.

i got no idea
[G4 Android Development] Lurensu:
Sooo I didn't understand:

In the latest 5.3 build is there double tap to wake?
[G4 Android Development] ThePiGuy:
Yes, but that is the buggy version that drains the battery. [MENTION=5461026]kessaras[/MENTION] believes he has found the problem and has said he will hopefully release 5.3 containing the fixes around Saturday
[G4 Android Development] Lurensu:
Oks, thank you, I'll try that build
[G4 Android Development] tambukey:
I'm going to keep looking into it. Hopefully I can contact someone soon who has helped bring Oreo to non oreo devices.

Quick question as well. As I said before I like your idea for face unlock and single tap, but for clarification, due to the way face unlock works currently, are you setting it so that you have a screen off phone -> tap screen once(this brings screen on and starts face scan)-> then swipe to finish unlocking? Only difference between normal face unlock and your idea would be tapping screen instead of power button?
[G4 Android Development] ThePiGuy:
I mean, you can do if you want. It won't be right until at least the coming Saturday, so until then you will still get battery drain issues
[G4 Android Development] kessaras:
No. My idea is to fix the systemui wtf error that drains battery that's all. Now i'm back to double tap and rarely again not working but the error is gone. That's what I want.

I don't care how it will unlock. I want it to not drain my battery suddenly when I'm away from home. Otherwise I will be forced to stop O for good
[G4 Android Development] tambukey:
Okay, awesome! I'm glad you were able to find the error. That was something I mentioned a while ago, but it happened so infrequently that I could never trace it to its source. For all I know it may have been a different systemui crash.
[G4 Android Development] Headlamp:
As seawolf Said. Last build drained battery fast. I make clean Flash and disabled d2w

// I just see that it is undesirable to pass on the battery behavior.

Sry for that. Bye
[G4 Android Development] Kye2000:
There's a possible fix for BT calling. Might not work for the G4 but it was fixed for the G6/G5/V20 recently. I'll PM op to see if he wants to test it
[G4 Android Development] Shadicbypass:
Where are the apn's stored I can't delete ting and want to remove it so fast.T-Mobile is the only APN left cause it keeps swapping apn's randomely on me
[G4 Android Development] raptorddd:
root/ect/ apns-conf .xlm
[G4 Android Development] SeewolfPK:
Hi kessaras, *double ThumpsUp*, your today build runs now 1 hour on my device and has 0 battery-consumtion.

That i never had before with no other ROM.

[joke on] did you disable showing consumtion? [/joke off]
[G4 Android Development] szafranski:
Forgive me if it's stupid question, but what do you mean by today build? I can't find any "new" build on official site.

Cherrs and thanks for every person that makes using older phones with new roms possibile.
[G4 Android Development] SeewolfPK:
Not official build. You can look http://droid.binbash.it:8008/aoscp/oreo/h815/
[G4 Android Development] Devil0Pr:
System UI Crashing

In the 28022018 unofficial build, every time I try to swipe a notification to dismiss it, the systemui keeps crashing. Is anyone else experiencing this? If so I will try and capture a logcat, if not I'll try wiping system etc and try a reflash. I wiped dalvik and cache only. I'm using Substratum with Swift Black theme, not sure if this makes a difference.
[G4 Android Development] kessaras:
yes it does and i dont know if its from substratum.

what i know for sure is that yes its only yours crashing.

Thanks , [MENTION=5127552]SeewolfPK[/MENTION]. Don't hurry to dudge. its still under testing. systemui may act again, i don't know.

just by running for one day without any issue it doesn't mean that it's ok. We will see.
[G4 Android Development] Devil0Pr:
It was the Swift Black theme, an update was available which I wasn't aware of. Apologies, I should've checked that first.
[G4 Android Development] SeewolfPK:
I have no problem. I always Wipe Dalvik, Cache and System.

I will let it as my daily driver ... We will see
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION],

Where would I find the audio HAL in question that we believe is causing the bluetooth audio issues. (sorry if this is interfering - I would just like to get to know how everything works)
[G4 Android Development] ojcu:
Flashing time tomorrow then ?
[G4 Android Development] kessaras:
sadly the problem is with the audioserver and the profiles.

i do not know what audio format to use for the bluetooth audio to work here. that's the problem.

i already post a few days ago the related files.
[G4 Android Development] tambukey:
In case you hadn't seen it yet.

I compared it to ours and we are missing the line

SCO_WBS_SAMPLE_RATE = 0

within our libbt_vndcfg.txt. obviously I have no idea if this is the cause, but that could be the issue since he is claiming that they had the same problem on the G6 with the Oreo update, but by changing those it fixed the bluetooth calling. I would gladly edit and add it for testing, but I do not know where that gets added since that comes from a build script?
[G4 Android Development] pizzaboy192:
Anyone on T-Mobile able to check if the H811 has working VoLTE?
[G4 Android Development] ThePiGuy:
No idea if this is any help, but I was comparing the mixer_paths.xml to the Nexus 5X file (purely because somebody stated that it had the same audio chip - I might be completely wrong), and I noticed there are a few chunks of code containing bt-sco that are completely missing (alongside other bits).

I could be completely wrong, but I just thought I should mention it as I noticed it
[G4 Android Development] tambukey:
I messed around with that a bunch, and Kessaras said he had before, but most I ever got to "change" was I lost bluetooth calling for a bit, started restoring things, and changing other settings, but nothing worked. Changing bitrate and the few other settings doesn't fix anything. I believe it is somewhere within the programming of the HAL and not the XML settings, but currently I do not know how to go in and read through the programming.

edit: I also actually loaded the Nexus mixer_paths and used that without changing anything, and it had the same issue as what we have.
[G4 Android Development] ThePiGuy:
OK. Where is the HAL programming? I'm looking at the files that kessaras linked to 5 days ago, and I have just been comparing those.

I also noticed that in the audio_policy_configuration.xml under routes, there is a raw attribute in the nexus file and low_latency in the g4 file. I think this is probably an optimisation though, as it is set like that for all the audio profiles, and the bluetooth audio is the only one that doesn't work
[G4 Android Development] tambukey:
That's where I don't know much. My post from earlier pointing out what was fixed on the G6 to fix bluetooth calling, is what I hope could fix ours. But from what I can guess at, it is a setting loaded during the building process and not something we can edit on a live system. I don't know how to build android yet, I am trying to learn but I don't get a lot of time at home where I can actually work on it, yet at work I waste all day on here and reddit.... If only I could bring my desktop here. Hopefully [MENTION=1732909]kessar[/MENTION]s responds soon to the possible G6 fix.
[G4 Android Development] bluelagoon8951:
I've looked around - doesn't look like anyone's gotten BL audio at all working on oreo ROMs for the G5 either so no non-LG fixes there yet.

Also - just like to say that charging speed on 28/02 unofficial is insanely fast. I'm getting 1% a minute with the screen ON on quite high brightness with Bluetooth on.
[G4 Android Development] ThePiGuy:
There aren't very many oreo roms for the G5 though - I just looked on XDA and it seems to be a very inactive device
[G4 Android Development] bluelagoon8951:
Yeah - I only saw a very unstable/mostly broken LOS ROM so it is very. I guess even more people moved on from the G5 that did from the G4.
[G4 Android Development] nigxxx:
camera crashes everytime
[G4 Android Development] steadfasterX:
Information buffer overflow!
[G4 Android Development] bluelagoon8951:
A) People need more info. Which build? Which camera app? Did you try restarting. Did you try clean flashing? Do you have logs? Etc.

B) Very likely user error.
[G4 Android Development] brossovitch:
Can anyone tell how to charge the device while it's turned off?

While this ROM is installed it's absolutely impossible. When I power off while charging it reboots. When I plug it in while off it immediately boots. Why? I'm trying to prevent the device from heating
[G4 Android Development] tambukey:
That's been a thing in all custom ROMs on this phone, don't ask me why

As far as I know it's something that won't change. I think it's to protect it from heating using a not restrictive charger partition and kernel. There phone won't heat any differently between on or off if you're not doing anything with it. There is no point to charge while off because of how negligible the rate change is.
[G4 Android Development] brossovitch:
I always charge while off. Always have on all roms. Found it safer for years.

Besides G4 heats up a lot especially now.

Besides I'm not trying to have the device running just charge. This has never been an issue with any ROM ever.

Except LineageOS liked to boot into Download mode sometimes when booting up. Dunno.

And theres a very noticeable difference between heat while running and while off.
[G4 Android Development] tambukey:
I never have any excess heat from changing and that's while achieving (through ampere) 600-1400mA rates. I use the magisk module cs charge switch to ensure protection. You can even set it too 100%, it'll cap and then turn off charge until it hits whatever low limit you set it to
[G4 Android Development] brossovitch:
Whatever. I just want the device off like it always was for the past ALL ROMs ever.

If you don't know how to do it you're wasting your time.
[G4 Android Development] tambukey:
Dude you're in the wrong place then. Follow your own advice and quit wasting your own time. There isn't some magical switch or anything you can change in Android for that. It is built into the charging partition which is entirely separate but gets loaded when flashing the rom. Kessaras isn't going to change that either because there is no point to. This also isn't a thing in ALL ROMs. This is my fourth rom that does this for the g4
[G4 Android Development] ntnlzr:
hold vol down when u power off device with attacched powerac
[G4 Android Development] raptorddd:
i use my own rom based on h811 port stock and it does the same
[G4 Android Development] troullis2004:
Patched boot.img with root access

Hello everyone. My volume+ volume- and power buttons have all stopped working. I tried to flash latest rom version but twrp failed. I know the problem, I just need someone to provide me with a patched boot.img that has root, so that I can flash it via fastboot. I have lost root access and adb reboot recovery boots in a black screen. (they have disabled the fastboot boot recovery command unfortunately). [MENTION=5461026]kessaras[/MENTION] please help me. Just a patched boot.img prerooted. Thank you everyone. :good:
[G4 Android Development] Kortex@XDA:
I'm running 0228 build and it's quite good. No more RIL failure on boot, great :) Thx for this really great job :good:

I've got a notification "Now playing", I don't know where it comes from and how to disable it. Does anyone has a solution ?

Thx :)
[G4 Android Development] ziomus684:
Whay, when I turn on gest lock screen, i can't unlocking my phone? After reboot.
[G4 Android Development] Dade97:
is "Ambient Play" , you can disable it in Settings>>Audio>>Advanced

It recognise music in any time by the mic of your phone

It happen also to me,

I clean install latest build and aroma gapps
[G4 Android Development] A_Kirsh:
I've tried disabling ambient play as well without success, only disables on lockscreen. It's pretty processor intensive as well.
[G4 Android Development] tambukey:
I noticed the now playing too, not higher cpu use though. For me, I'm using Magisk module greenify, and I just went and added all my music apps to it. It basically force closes them and then watches to ensure they don't run in background, and with that I don't get the now playing notification.
[G4 Android Development] A_Kirsh:
I have to add though, that I've clean flashed and the ROM runs smoothly overall, with a very noticeable improvement in battery consumption (based on half a day of normal usage), so thanks for all the hard work :)
[G4 Android Development] kessaras:
adb reboot bootloader

You don't need root.

You can also adb reboot recovery.

I can't root and share pre rooted boot image.

You need a pre rooted boot plus my data partition.

Root patches boot image to persist on reboot , but the whole root is in a separate partition /magisk and it's settings are in /data partition.

So try do something without pre rooted boot.img
[G4 Android Development] troullis2004:
It's getting too complicated. Without vol- I can't enter recovery. Without root I can't reboot to recovery. Adb reboot recovery get's me to a black screen after LG logo, nothing there to do. Reflashing twrp through fastboot did things worse, because you have to manually enter recovery through Power+Vol- or android flashes over stock recovery (or am I wrong?). So, any way to flash supersu or magisk without recovery (fastboot or adb?) Basically, I'm stuck without recovery and root, with all button behind the phone not working! Thank you!
[G4 Android Development] ThePiGuy:
Are you on stock firmware. If so then you can use LG bridge update error recovery to restore your phone to stock and start again
[G4 Android Development] kessaras:
Just do adb reboot bootloader and erase recovery and reflash recovery and adb reboot recovery while booting.
[G4 Android Development] :
For ages I couldn't boot recovery, so I 'adb reboot bootloader' to get to the LG bootloader screen with lots of writing in the top left. then `fastboot boot twrp.img' !NOT FLASH! and that got me into recovery where I could flash the rom, flash SuperSU and install the TWRP recovery image

I know you can get to advanced reboot options including recovery from within the ROM from there on

Also, make sure you get the preview N TWRP from the front page - big difference!
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION] does this help?
[G4 Android Development] kessaras:
we dont have a file like that anywhere. i don't understand how he compared something that doesn't exist and with what he compared since we r the last LG with O

SCO_WBS_SAMPLE_RATE exists in broadcom bluetooth hals. in qualcomm we don't have that.
[G4 Android Development] troullis2004:
Both you guys are a lifesaver! I didn't think about erase command and adb while booting!!!!!!!!
[G4 Android Development] SeewolfPK:
ROM runs 28 hours and battery is 68%. [MENTION=5461026]kessaras[/MENTION] you make it pefect.

Camera: I use Google Kamera 4.4.020.163412804 without problems.
[G4 Android Development] kessaras:
i know. same here. its under observation and testing. we dont know how it will act again. wait a few days
[G4 Android Development] tambukey:
That file is right here

https://github.com/CypherOS/device_lge_g4-common/blob/oreo-mr1-release/bluetooth/libbt_vndcfg.txt

from
[G4 Android Development] ThePiGuy:
Is it not possible to add that line in before build then and test it?
[G4 Android Development] cafissimo:
Please, can you post download link for the Google Camera that you are using? Or is it from play store?

Thanks
[G4 Android Development] tambukey:
He should be able to add it to the build, but I was hoping to add it to live system. But he hasn't responded to that, because he was under the impression that that file didn't exist.
[G4 Android Development] ThePiGuy:
Fair enough
[G4 Android Development] SeewolfPK:
While searching the link: https://www.apkmirror.com/apk/google-inc/camera/

I see there is a newer apk. We have to test :D
[G4 Android Development] tambukey:
Also we use a broadcom wifi/bluetooth chip in the G4

https://www.ifixit.com/Teardown/LG+G4+Teardown/42705
[G4 Android Development] kessaras:
The file is not in our rom. I will look at it. I didn't know it's existence. But I don't think a txt will change anything
[G4 Android Development] ojcu:
Flashed 5.3 0228 today and so far so good. Major improvement with battery life from official 5.2. Couple of things I noticed:

- setup wizard crashed when installing apps, but it might be just a random crash

- torch tile doesn't work

- ambient play keeps working even though I switched it off.

Anyway it's amazing job ?
[G4 Android Development] tambukey:
Maybe it will, maybe not. I asked stony(the one that said they fixed G6 issue this way) but I am waiting ona reply. According to him they had the exact same issue, only bluetooth calling was distorted. I know this was applied to a Nougat build, but who knows maybe it could work. The most I have learned is in mixer_paths.xml

<path name="voice-call bt-sco">
<ctl name="SEC_AUX_PCM_RX_Voice Mixer CSVoice" value="1" />
<ctl name="Voice_Tx Mixer SEC_AUX_PCM_TX_Voice" value="1" />
</path>

is the only bit that has affected calling out of the files you linked. I messed with the values associated with that and the bitrate and all that, but nothing changed the actual affect.

This by the way is everything about our braodcom chip, useless information towards this probably, but maybe it could help anyone who understands the coding of how the chip and software communicate.

http://www.cypress.com/file/298016/download

Edit, sorry gapps official not ready for arm64, my bad
[G4 Android Development] jorgecft:
are you getting the ota updates?
[G4 Android Development] tambukey:
If that was at me, no I always use unofficial so I always need Gapps.
[G4 Android Development] kessaras:
we already use that

[MENTION=8773512]tambukey[/MENTION]. np, as said nothing changed with SCO_WBS_SAMPLE_RATE = 0
[G4 Android Development] cafissimo:
Ah ok, so it's the official one, Iv'e thought you were using the gcam mod like this one: https://androidfilehost.com/?fid=673791459329071722
[G4 Android Development] nigxxx:
[MENTION=5545101]steadfasterX[/MENTION] sorry about my lack of info... it was a glitch or something, did a couple reboots and it works. my bad. 28022018 build , still battery draining, not like before but it need still some work. just keep up good work guys it will be good