yashsingh1/xdaforums huggingface dataset:
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I use Apple music app and my settings are set to maximum audio quality (Lossless 24 bits, 192 khz). When I run the command, I was playing one of the few albums on apple music that is sampled 24 bits/192 kHz (Pantera - Vulgar display of Power). For your information, I did A/B testing this morning between my headphone amp/DAC and LG V20. I see little to no difference between the two. I'm impressed!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
You put a lot of work into it for sure and it pays off. I will try the new version this afternoon.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I bet it does! Again, thanks for all the work. I got an off topic question, Is there any way to replace the boot screen that says Your device has failed a routine safety check... I know it's not a problem tho.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Honestly I didn't know this phone was this good when i bought it last year. With this ROM, I can enjoy it even more. My model is LG-US996.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
It's fixed, As a user told in the thread, the flashable zip from OP works with US996 phone.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Well... that said, I had the impression that my left ear tip was not fitted in my left ear haha. I tried the last version 112.3. Sounds real good on my S12 Pro, punchy bass, clarity and a lot of detail retrieval.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
And I didn't noticed till this version but the left channel on LG V20 is different from the one of my amp. How can I put it, the snare on Angel by Massive Attack is in my left ear when I listen to it on my amp and in my right ear on LG V20. I double checked on my amp and everything is plugged like it should be.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I also thought that it was my old ears haha! It really look like a challenge to program this DAC!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
The same issue seems to happen again with version 115.1. Sounds on left side for the V20 and same sounds on right side for the amp. On version 114.6, it was fixed.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Yes, it was obvious on my test track. That is odd for sure.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I can't wait to try it. 😃
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I got some time to test it. I will try it now
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Well I got to apologize, I shoulded push my test a little further. I did a left/right sound test and it came out that the cable that goes from my dac to my headphone amp is misidentified. The white cable is actually the red side and red cable is the white one... So, no mistake on your side. The new tuning sound really good. I have the impression that the separation of the instruments is even better.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Thank you so much. I'm thrilled to have a mobile setup that match the quality of my desktop one. Merry Christmas!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I'm glad i could help :)
[LG V20 Themes, Apps, and Mods] ShazamMan:
Yep, I did Format Data.

Wipe > Factory Reset

Advanced Wipe > Dalvik Cache + System + Cash + Data + Internal Storage

Wipe > Format Data > types 'yes'

Reboot into TWRP

Flashed ROM + AutoDebloat.

Wipe Dalvik Cache.

Reboot System.
[LG V20 Themes, Apps, and Mods] ShazamMan:
Ah. How do I reboot into fastboot from this stage? Can't I get back into TWRP with phone button combinations and reformat everything?
[LG V20 Themes, Apps, and Mods] ShazamMan:
Alright, I'm in fastboot now as you instructed. I'm gonna re-run STEP3.BAT with the original twrp-3.0.2-1-us996.

If I don't report back for a while, I probably when to sleep and I'll resume the rest later. Cheers for the help, dude!!!
[LG V20 Themes, Apps, and Mods] ShazamMan:
Done everything successfully. I'm at the last step now, installing Auto_Debloat.

Do I still need to do Advanced Wipe > Dalvik Cache + System + Cash + Data + Internal Storage now, or just go straight to doing Steps 7 - 10 from this Auto_Debloat guide?
[LG V20 Themes, Apps, and Mods] ShazamMan:
Is the "sure" for Advanced Wipe the above before flashing the ROM and Auto_Debloat? Hahaha.
[LG V20 Themes, Apps, and Mods] ShazamMan:
I'M IN!!! Hello from the debloated H91020g! Restoring my Google account from the cloud now.

Okay, I'll put my SIM card later to see if it reads it (final test) since I'm going to sleep now, but otherwise, THANK YOU!!!! You're a damn hero.

Note: Someone needs to write an FAQ somewhere that runs through my issues (like the driver problem). And yes, my own mistake was switching to a newer TWRP in STEP3.BAT (which worked for the guy in the video). There needs to be a warning: "STAY ON TWRP-3.0.2-1-us996.img TO AVOID Secure Start-Up!!!!"
[LG V20 Themes, Apps, and Mods] ShazamMan:
All set up, but no cellular signal (no bars with an X above). SIM card is detected though. I live in the UK with carrier being o2. Phone had the network unlocked. Any idea?
[LG V20 Themes, Apps, and Mods] ShazamMan:
Okay dokay. I think I got the gist of what he was doing in that guide, but I never used Linux before. I'm on Windows 10.

What's the best and simplest way to run his Linux commands on my machine? Want something that's almost plug-and-play.

EDIT: Would this work for his guide? https://itsfoss.com/install-bash-on-windows/
[LG V20 Themes, Apps, and Mods] ShazamMan:
No signal (no signal bars, with a small X above), but the SIM card (UK carrier) gets detected. The phone is an unlocked AT&T H910 model, originally on stock Nougat H91010L.

Yes, my phone had cellular signal before I flashed your custom ROM. I was able to call/receive calls, send/receive SMSs, and use 4G.

Moreover, I have another unlocked V20 (same model, but got water damaged) running on stock Oreo H91020h which has cellular signal. The same SIM card gets detected too.

I haven't done the Linux part yet (I'm busy right now), but I hope it will fix the problem. If I can fix this, then you should add something in your guide for fixing cellular signal after flashing, for people who have this phone but live outside the USA.
[LG V20 Themes, Apps, and Mods] andruyd:
Hi everyone, some questions:

My hardware is an H915 but I'm on a H910 Lineage OS 18.1 rom. Is this phone compatible with this mod and what is the process for switching to this rom from that?

How does the DAC work compared to pure stock? I'm on LOS 18.1 right now and it doesn't auto-detect the impedance of the headphones connected. It's always on high impedance mode which I realized is necessary.

Are all the three microphones functional as and is the stock voice (audio) recorder present? In LOS 18.1, it isn't. Only the bottom mic works.

Thanks.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Do you mean until v124.3?
[LG V20 Themes, Apps, and Mods] fzhu052:
the newest version (124.3) is great. Previous versions, and i lost track on where it started, did not drive my beyerdynamic DT 770 pro 250ohm properly. The sound was weak. However they drove less hungry earbuds pretty well. I guess the DAC switch is the culprit. Thank you so much for the work... i have been following along with each version and it is so much fun on my side. :-)
[LG V20 Themes, Apps, and Mods] DonVasaschi:
Hey bro, appreciate the hard work but I'm encountering an issue in which the phone is not detecting anything in the 3.5mm jack nor when I try to listen to an audio/voice message by putting the phone to my ear the screen turns black but there is no audio or sound.

What can I do to fix this issue?

Can I flash a previous version for I'm on the lastest version would me doing that have any crazy (bad) results?
[LG V20 Themes, Apps, and Mods] DonVasaschi:
H910
[LG V20 Themes, Apps, and Mods] DonVasaschi:
Yep that's the Oreo ROM I'm on.

Okay, I'll download and flash and report back here
[LG V20 Themes, Apps, and Mods] DonVasaschi:
Alright I'll give those recommendations a try.
[LG V20 Themes, Apps, and Mods] DonVasaschi:
Reporting back after going through your recommended steps and I'm still encountering the same issue.

Could you possible reupload v119.1 for I was on that version when things were fine and dandy.

I'll do the downgrade through an update then report my findings.
[LG V20 Themes, Apps, and Mods] DonVasaschi:
So after losing twrp for being a moron I have returned to share the final result along with the various steps taken and tried.

Results

Same issue persists :(

I followed the steps just like in the post but encountered the same issue even when I downflashed the version from v124 to v123 to v119 but still no dice.

So then I reflashed the oreo rom and tested it and everything was in order. So then I proceeded to flash the v119 but same issue, again I went back and format the phone and flash the A8 rom only (again everythjng was in stabding order) so then I flashed the kernel so far so good next I went to flash the audio mod and boom back into the same issue so I guess I'll have to do without the mod :(.

Sidenote without having to format and flash the A8 Rom again it would be good to develop an uninstaller zip for the mod.

Sidenote sidenote hehe. I understand that it may be a big ask but could you remake the mod without modifying the audio aspect putting everything else that is stated in the changelog? The v20 on the mod was excellent temp and perf wise but in my case with the audio issues the mod made the phone super quick. I'd be grately appreciative if you could do this for me. Thanks much fam
[LG V20 Themes, Apps, and Mods] fzhu052:
I have VS995 crossflashed into H910 and the steps have always worked. The reason I chose H910 is that it has fewer bloatware in LemonDrop than in VS995. And of course I only use it as a media player, since along the way I lost IMEI by not having a backup.

I would also like to have a LemonDrop version that keeps the original factory audio configuration. It may be helpful to have it as 'baseline' that we can switch and compare. Currently I keep 9.84 for that purpose (partially).

Lastly, the V20 Oreo supports LDAC in bluetooth. I am not able to get a consistent 990kbps but it is somewhat stable at 660kbps, which might be a minor but noticeable improvement over aptX codec.

PS. Just did some research the bit rate of aptx (and hd). if you are able to keep the max 576 kbps, then it would be almost same but more stable than LDAC at 660kbps. The 'bluetooth codec changer' does not work on oreo, so the only way to manual select is the dev options, and I can't keep the setting static.
[LG V20 Themes, Apps, and Mods] DonVasaschi:
Yes I know that the kernel was already included in the mod. What I wanted to check for myself was if it was the kernel included in the mod that was causing the issue (it wasn't).

I did indeed flash just the two files (the ROM and the mod) and I'd get no audio through the earpiece nor would the phone recognize the 3.5mm jack. But starting fresh with the rooted ROM everything works as normal. But if I just flash the mod I will get the previously mentioned issue so that's why I only flashed the kernel and the issues weren't present.
[LG V20 Themes, Apps, and Mods] DonVasaschi:
I'll try to give those steps a try. But this time I'll do a backup of the ROM so as to not start from scratch again.

Steps 1-5 are the steps that I've been doing since I discovered your mod.

As it relates to the EFS I didn't do that for it was not necessary (or so it seems now) I do not use the phone as a DD but I do use the 3.5mm jack sometimes as well I receive audio messages that I listen to through the earpiece.

As the last last last resort I'll try the reroot process.
[LG V20 Themes, Apps, and Mods] stingbandel:
Ok sir, for the universal one, do u also include the kernel? I prefer not to include the kernel as I use the mk2000 one… havent tried the latest one yet though…
[LG V20 Themes, Apps, and Mods] stingbandel:
Well, on my phone mk2k.is working just fine. Let me try your latest one sir… will report later… thanks
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I'm testing it right now and it sounds really good. I feel that the sub bass hits harder than before! Haha, I thought that you reached the limit of this phone!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Thank you for the detailed post. I really appreciate that you take time to explain the changes you've made so far. I really enjoy it right now!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
OC is perfect for me. I already installed v135.1. Should I update to v136.1?
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I don't know if you doubled it but I do feel the music is more lively and more opened. It's funny because I wasn't using my phone lately for music because it would not drive my iems or headphones properly and it would not matched my desktop setup. Now, it represent exactly what I want as a portable setup and more. Thanks... again for making this rom happen. It would be interesting to test it against a HIBY or a FIIO DAP ;)
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I swear, I don't think I can hear any differences... It is really impressive!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I will try it later today and do some A/B test with my headphone Amp/Dac. I will let you know for sure. 2 am here ;) Happy new year!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
When you say that it will take about an hour or two for the the DAC to acclimate. Do you mean that we have to play music during that time?
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Sounds good to me! I didn't tought we had to burn in the DAC. How did you find this information? Looks like I'm gonna listen to music later tonight!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
My bad, I didn't know this was all programming. It truly impressed me!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Now I want to buy a stock LG V20 just to see the improvements you did on the QuadDAC. I think it is quite a step up in quality vs the stock rom.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Is there any impact on the performance of the QuadDac if I use the battery saver mode?
[LG V20 Themes, Apps, and Mods] xxseva44:
Hey! Fellow dev for the v20 here. I was just curious about what resources and documentation you are using to find these tunable items for the dac. Stock doesn't seem to have the items that you have added so I'm wondering what other sources we could look at for documentation about adjustments that can be made.
[LG V20 Themes, Apps, and Mods] monc1975@yahoo.com:
Sorry, Im a noob & dont want to open a can of worms but can this audio be transferred over to LOS 20. Bear in mind Im a noob, so just wondered if I can copy any particular files over? Thanks for any replies Darnrain. Or is it not possible without stock based Oreo
[LG V20 Themes, Apps, and Mods] monc1975@yahoo.com:
Well, like I say Im a noob, which files would I need to copy over or is that something to be left to developers? Thanks for your prompt reply, much appreciated
[LG V20 Themes, Apps, and Mods] xxseva44:
Some of the changes include interface changes, why were these made? Dac is routed through the tertiary backends in the kernel.

EDIT:

Turns out i looked at the wrong section. My apologies , you can disregard what i said.

Another question however, where do these spline ctls originate from?
[LG V20 Themes, Apps, and Mods] xxseva44:
Lemon-Drop-Hi-Res-audio-source-code/modded/mixer_paths_tasha.xml.modded at main · darnrain/Lemon-Drop-Hi-Res-audio-source-code

Audio souce code for Lemon Drop Hi-Res rom Lgv20. Contribute to darnrain/Lemon-Drop-Hi-Res-audio-source-code development by creating an account on GitHub.

github.com

Where did these ctls originate? I don't recall seeing these on stock nor have i found any documentation or sources that reference these. Also, what exactly is the true native code? And pulling back, what is true native mode itself?
[LG V20 Themes, Apps, and Mods] xxseva44:
Hmm so it was a matter of tweaking the hph properties. Sidenote, that android mixer file is not just a plain old mixer file, that lets the os know what interfaces and routes are available, and what backends they should be using.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
My computer? Of course but against my headphone amp + accurate DAC (desktop setup), it's a hard task to be honest. That said, I have quality IEMS and headphones and I swear, it's hard to find any difference between the LG V20 and the desktop setup. If I go back to early december before you reprogrammed the QuadDac, it was quite noticeable that the LG V20 was not able to reach the same level. Like I said, I think It is quite an achievement!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
So, I have an album ripped in 24 bit 96 kHz which is Fleetwood Mac - Rumors, one of the best recorded album. Let me try it on Poweramp
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Just an update, I'm having trouble finding the same versions for both music players and I had no luck with these 2 albums

Fleetwood Mac - Rumors

Winner: apple music (sounds much more natural as I could hear the echo of the drums in the recording room). Then I noticed that the length of the songs was not the same on apple music vs the one I played on Poweramp

Dire Strait - Brothers in arms

Winner: Poweramp (sounds was more fuller, less thin as opposed to apple music).

Later, I realized that the Apple music version was the remastered version in 1996 and the one I played on Poweramp was the original version from 1985.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Update: I played Random access memories from Daft Punk and Thirteen Step from A perfect circle on Poweramp and apple music app. Quality is on par. Still, I think I will buy Poweramp to use the equalizer for some of my headphones/earphones. Thanks for the rec!
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I don't know why but I can't install the Poweramp equalizer app on my Lg V20. It says that my phone is not compatible. I can't find it on google play store.
[LG V20 Themes, Apps, and Mods] TrueNativeUser:
Hello sar I just wanted to thank you for all your hard work, rappin for Jesus (my favorite song) has never sounded better with true native mode enabled. After hearing some terrible news that truly ruined my day true native mode made it much better! Where did you learn to become such a amazing programmer?
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I have found that USB Audio Player Pro (UAPP) app works with Android 8.0. In the App, you can stream from TIDAL or Qobuz and use the 10 bands equalizer.

From official website

"When connecting an Android phone or tablet to a USB DAC, USB Audio Player PRO will unleash the full power of the DAC, by using our custom developed USB audio driver. This bypasses the Android audio system completely, meaning that Android's limitations regarding bit resolution and sample rate (16-bit/48kHz) are made irrelevant and high quality audio streams are fed directly to the DAC, making playback up to 32-bit at 384kHz possible (depending on the DAC capabilities) or even DSD."

Even if they mention "USB DAC" It is confirmed that it works with internal DAC as Lg phones.
[LG V20 Themes, Apps, and Mods] xxseva44:
"Usb dac" is not the same as an internal dac in the v20.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I know it says USB DAC but it works with internal DAC of the LG V... or a DAP and any other phone with a quality DAC
[LG V20 Themes, Apps, and Mods] xxseva44:
Ah i see, then yea it is entirely dependent on how the device is handling it, more specifically what type of stream it sets up. Dumping the audio service should give you this information. No amount of tweaking the mixerpaths will change how the app is setting up the audio stream and how the hal is setting things up. Now the app does list the v series as supported so it's possible either a setting hasn't been set right in the app OR, the build prop changes are affecting it in some manner.
[LG V20 Themes, Apps, and Mods] xxseva44:
Can you send the log output of the dac and the bitrate and sampling rate it's running at?. You can find this by searching for "sabre" in an app like logcat reader. Or just searching for it in the adb output and copying the lines over.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
I didn't found "sabre" in logcat reader but here is the log from Termux. I have also attached two pictures from UAPP, one when i open the app and the other one is the album i'm playing when i extract the log.. I hope it helps.
[LG V20 Themes, Apps, and Mods] xxseva44:
Check for audio_hw

There should be a log message that specifies the sampling rate and bitrate. Can you also do this for a scenario where the dac is upscaling.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Ok, I'm playing Metallica - Master of puppets Hi-res from Qobuz (supposed to be 24 bit / 96 kHz). Here is 2 logs that I have extract from logcat. The last two is when i checked the option "Upsample" which, according to the description in the app, "Resample to the highest sampling rate of the DAC".
[LG V20 Themes, Apps, and Mods] xxseva44:
Just to clarify, this is in a "known" working scenario right? Asside from sampling rates, there are many backend errors; suggesting that the backends are misconfigured to a certain degree.

LOG:

send_app_type_cfg_for_device: Couldn't get the backend index for snd device headphones-hifi-dac ret=-14

Also, since this doesn't seem to have been investigated, the supposidly "forgotten" or "Unused" true-native-path is neither. This true native path is to only be used in a scenario where playback is flagged as true native. This can be found in the source for the audio hal.

As Seen: https://github.com/LGE-G5-G6-V20/an...e4bcf3d277/audio/msm8996/hal/audio_hw.c#L1199

Right now no playback is flagged as true native, therefore it has no reason to use these paths.

LOG:

audio_is_true_native_stream_active:napb: not in true mode or non hdphones device
[LG V20 Themes, Apps, and Mods] TrueNativeUser:
I thought sar was best audio dav in the world? I swear you must be mistaken the sound coming from v20 is most orgasmic. This makes me very sad
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Ok, I'm sorry I think I can't help you any further...

Now, what I don't understand is that I use bit perfect mode in UAPP App and I'm playing 24bit tracks (as you see in my post #915 and the logs in termux says that it's only 16 bit. This makes no sense...
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
Ok, I will do that. UAPP sounds really good if you want my opinion,. I will update to the last version, play some music and run dumpsys in termux.
[LG V20 Themes, Apps, and Mods] AmbitiousMine:
New log with UAPP. Help me to figure it out.

Line 130

HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)

Line 268

HAL format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)

Line 272

Processing format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)

What does it mean?
[LG V20 Themes, Apps, and Mods] xxseva44:
The logs in termux show historical Data aka previous events. That is what gets printed when you dump the audio service. Your audio does seem to be running 24bit, as seen in the logs you sent. Dumping the audio service only paints part of the picture, logs from the audio hal are also needed to verify things. Ess can also help however it usually (always) matches the data shown by the hal. Now, the app type was 69940, which is supposed to be the 24bit output, and audio_hw_utils is also reporting 24bit playback so 24bit playback is working.

Edit: app type 69940:

android_device_lge_msm8996-common/audio/audio_output_policy.conf at a66616c754c117ad5481cc75b34631f593285850 · LineageOS/android_device_lge_msm8996-common

Contribute to LineageOS/android_device_lge_msm8996-common development by creating an account on GitHub.

github.com
[LG V20 Themes, Apps, and Mods] xxseva44:
As mentioned in my last reply, dumping the service is not the go to for checking live data. Audio_hw_utils will report the actual stream type and information regarding it.
[LG V20 Themes, Apps, and Mods] xxseva44:
My comments in that post were more so meant for @Darnrain1 . As a user the hal + service mumbojumbo isn't really important.