yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
another bug I noticed with bluetooth is that while headset is connected and running a game (in my case I will example with Sky Force Reloaded, but tested with other games also) I noticed that only last two volume levels work

so first one makes sound barely noticed, and second is like maxed out

of course no level means no volume

I also attached an image to exemplify

also strangely, media playback (listening to music via PowerAMP) volume levels works as it should

so think is something in the config but not sure yet where
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
So you probably noticed this in yesterdays builds but today's has my full committed fix.

I have fixed offmode charging now this fixes these two bugs:

- Charging when device is turned off *fixed*

- Powering up device while plugged in killed touch input *fixed*

Source: https://github.com/lg-devs/android_device_lge_g5-common/pull/8

build for h850 will be up in about 30 mins
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Lukijs:
Can i flash it over previous build? Though i saw something about bootloops before
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
First page, 3rd post, look at the attached photo.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Yeah you can.

Only people dual booting ROMs have issues but me and drsn0w don't support them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
[MENTION=7348083]King_lilrowrow[/MENTION] & [MENTION=5121132]drsn0w[/MENTION],

love your work on this ROM but can you please check out reported bugs and update known issues

would like to keep track of them is possible

might help other members also ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Lukijs:
Give them time
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
No rush of course ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
The only other bugs we are aware of and can reproduce ourselves are:

- No NFC

If we can't reproduce it and it's working for us... We can't do anything unless you send us logs :/

Plus we work in order of priority that's why the charging/touch issues got fixed today :)

---------- Post added at 06:19 PM ---------- Previous post was at 06:10 PM ----------

Yes the updated liblight from the oneplus3 has fixed the flashing led while charging its now solid
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Yea I noticed that on yesterdays build already, thank you :)

Is there any way you could add a "ram in recents" bar and maybe a setting for auto brightness?

Those are just small things, all in all the rom is AMAZING :) :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] newbcake:
I did try that. Still crashes.

Boot issues and such, I guess I'm out of luck. It's some amazing work when it works (for me at least) and I appreciate you guys trying to help, but the sound not working, slow boot issues, etc...

I will definitely keep an eye on this and wait for it to get more stable
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
New 20161017 build for H850 is out!

Change log in one of my other posts!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] eminem5055:
Thank you for this great work! :D You are building the h830 as well?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
What about the horrible screen on time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ItsNewDroid:
I'm so excited to see such a developer as [MENTION=7348083]King_lilrowrow[/MENTION] and [MENTION=4756773]Miustone[/MENTION] they really make the G5 rock !

Thank you for your hard work !!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
I'm currently at 3hr screen on time with 37% battery left

---------- Post added at 07:16 PM ---------- Previous post was at 07:15 PM ----------

[MENTION=5121132]drsn0w[/MENTION] has the h830 covered!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
this one should be pretty easy to reproduce

I don't have knowledge of how to generate logs but hope a member here can help maybe
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Won't let me post, but 34 minutes of sot, and I'm down to 65%
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
Just curious will we always just have 8 mp camera for rear? Also I get force close when trying to switch to video. I'm on h830. Thanks again to all the devs for the awesome work!!! :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
Shaneg79 if you slide from the left side of the screen to the right on the camera app you can see settings for the camera switch to the back camera pull it up where it says 8mp change it to I think it tops out at 15.9 mp

---------- Post added at 06:40 PM ---------- Previous post was at 06:35 PM ----------

ROM is great only have a few problems notification light isint working after flashing 101616 Spotify music when I go to a new song skips for a second then corrects its self slight lag sometimes only for a few seconds and the camera app is facing trying to switch to wide angle and won't open back up even after force stopping
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I had 2 and a half hours of SOT with 2 reboots, 1 stay in recovery to make a Nandroid and another to flash Xposed and I was down to around 45%. Considering that was the 1st cycle after flashing I don't think that was bad at all :)

I just noticed the missing notification light too :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ahmad.afef:
For me, 15.9M was the default setting and I confirm that the image is actually 15.9M. The problem that we have to solve real fast is the quality of the images, not the size.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
I think the quality is damn good for a cm build that with most phones kills the camera quality is basically stock android there is no lg processing you will never be able to get it to stock ways besides id take cm over camera quality anyday
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] antpalfer:
5 hours SOT here. Same than stock

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
Which is odd because it worked with the first 101616 update
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
Mine only goes up to 8 mp. 16:9 is the aspect ratio
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Then select the other cam, mine goes up to 15.9 too ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
Does the snap folder have the same perms
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
Mine hits 15.9mp as well
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
OK got it silly me I guess I was using the wrong cam lol it defaults to the 8 mp one lol :p
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
For some reason bluetooth turns off after a while

Could not find the reason yet

Can someone else confirm?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
I think this is linked to LG's proprietary LgeDoze failing I'm looking into it
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
So is there any reason H+ works better than LTE? H830 btw
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
So removing Lg-doze from priv-app should help?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
There's more to it than just that sadly
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] look4cego:
Can anyone comment on the functionality of wifi calling?

It doesn't seem like it wants to setup the front end before routing calls over wifi.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
Both work the way they should for me. Mine is unlocked and in using it on cricket.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
[MENTION=7348083]King_lilrowrow[/MENTION] [MENTION=5121132]drsn0w[/MENTION] Can anyone port this to the g5? I would be so, so, so happy!!! I flashed it and my audio stopped working, so I just flashed a backup. But no boot loops though so that's good! http://xdaforums.com/nexus-5x/themes-apps/mod-surround-sound-testers-t3252659/page57
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Joe199799:
I'm on T-Mobile and was on YouTube trying to watch a video at 1080p60fps it buffered every 2 seconds I turned off the binge on thing still happened switched to H+ over LTE and no buffering whatsoever just thought I'd ask seemed weird

---------- Post added at 10:47 PM ---------- Previous post was at 10:45 PM ----------

I second this had it on my galaxy s6 edge and nexus 6 improved speaker quality immensely opening up the loudspeaker does wonders for audio playback

---------- Post added at 10:47 PM ---------- Previous post was at 10:47 PM ----------

I second this had it on my galaxy s6 edge and nexus 6 improved speaker quality immensely opening up the loudspeaker does wonders for audio playback
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
This thread is only for stock CM builds for the g5, for mods and alike please look somewhere else.

There's many other people that can work on things like these sound mods.

Cheers!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Everybody else on these forums are super rude. You guys are the nicest here. But I'll try to find someone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
What happened to the builds for the h830, it's empty in BasketBuild.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Yeah, sorry. Wifi broke with the latest build and I'm fixing it right now. I'll have a working one up ASAP :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
Thanks for all your hard work!!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] look4cego:
It is still doing this, BTW.

Every time I toggle the hotspot in the quick menu, the phone freezes and reboots.

You are doing awesome work. This is one of the nicest unofficial CM builds I have ever used across five different devices.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Thank you. Sorry that we didn't get back to you before, this thread has gone crazy and its hard to keep track of :)

OP updated
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] look4cego:
No kidding, keep up the good work! :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KillerofJoy:
My CM screenie..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
The highest priority in our to fix list is NFC but this will be straight after! :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Zachisimo:
Thanks again for everything! I've also noticed every reboot that my home screen apps get reset to nothing. And I also have the issue with hotspot. Which would be nice because I use it frequently with the whole unlimited thing
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
have you tried reflashing the lastest version because i have not noticed that issue at all in the last few versions.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Coachmark2:
Which issue? Hotspot or home screen?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Tomorrows builds 20161018 will have the bluetooth random disconnect fix! both h830 and h850!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
Home screen

---------- Post added at 03:11 AM ---------- Previous post was at 03:10 AM ----------

Is the fix made already and a build just isn't madr
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
V

I've committed the fix to my GitHub and running the 20161018 build now which I'll upload later on.

By later on I mean later haha as it's 4am now but I'll upload it when I wake up :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Coachmark2:
Rock on guys! So glad to see this level of dev commitment to the device. You guys rock
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
asking because then i will just build it for myself so that i have it a little early.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
[MENTION=7348083]King_lilrowrow[/MENTION] so NFC, hotspot, little bugs, then make it official?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kkuhle:
I have downloaded the latest build 20161018 from basketbuild and it seems to fix the touchscreen being unresponsive on boot when the phone was plugged in.

I am still having an issue with ambient display. Essentially if it's on and the screen lights up to show time or pulse a notification when screen is unlocked and screen turns on from fingerprint sensor I am unable to use the screen until I turn the screen off/on. Hoping to use ambient display at some point so maybe this can be added to the bug list? Assuming it can be duplicated.

Thanks a ton for the work thus far!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] K40S:
Guys I have the issue that my H850 sometimes just freezes for 5 seconds, the power button still works, but the screen is unresponsive. I have clean flashed this yesterday. Amazing build so far though, thank you for that!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Will that also fix the lack of LED notifications or was that already fixed in yesterdays release? I haven't flashed that one yet and if it still has the LED issue I might just wait for todays build :cool:

Keep up the grrrrreat work :good:

Edit: Flashed yesterdays build and still no LED notifications ... here's hoping for the next build ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 87insane:
Hey guys,

a FAQ section on the First Page will be help. Many questions are Double and if i was 6h offline we have 5-8 new Pages here...

Nice Rom and great work!!!

Gesendet von meinem LG-H850 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SignumOne:
Is this possible ported to CM 13 oryginal camera app ? thanx
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Once we fix NFC, if we pass Google's CTS we can apply for it to be official.

---------- Post added at 02:10 PM ---------- Previous post was at 02:09 PM ----------

This has been reported by someone else too, not sure is this is a CM issue yet or something we need to fix. We will look into it for sure.

---------- Post added at 02:12 PM ---------- Previous post was at 02:10 PM ----------

Known issue with our touch driver (on our fix list but not a high priority yet)

---------- Post added at 02:14 PM ---------- Previous post was at 02:12 PM ----------

Didn't realise the notification LED was borked, thanks for the heads up!

---------- Post added at 02:15 PM ---------- Previous post was at 02:14 PM ----------

Nice idea, I'll talk this one over with drsn0w later!

---------- Post added at 02:17 PM ---------- Previous post was at 02:15 PM ----------

Picture quality wouldn't improve if that's what your aiming for... Even though we have the camera working now we still don't have all the proprietary lge libs for it full potential (we never will as LG won't release these)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I'm guessing when you removed blink-while-charging you also killed the notification LED, up to then it was still working :laugh:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
I changed our liblight to the op3's (with a couple of edits) is an easy fix though
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
New H850 build is up! "20161018"

- Fixes the bluetooth issues

(I've personally tested this fix for a while now and even in doze state it remained connected to my BT device)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
cheers... will download, install and test with my Huawei watch asap
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Awesome! if the issue remains can you PM me and I'll explain how to pull a log to help me get to the root of the issue, today's build should fix it but if not... :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] thecell_2007:
I assume the h830 build you have up for 20161018 has the same Bluetooth fix? I might have missed if you said this already but I'm downloading now just in case. Thanks for all the efforts bud!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
I don't know much about developing roms or anything but just want to try and help would something like this work as a fix for the camera issue? http://techbeasts.com/cm-fixed-camera/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Not sure. Thinking it's something in the kernel, looking into it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Sorry I must have posted the wrong link[emoji21]
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Good find, but I don't think that'll help. That's for when it says "Can't Connect to camera". Unfortunately, in our case, the system doesn't even acknowledge the fact that a back camera exists.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shaneg79:
Oh OK gotcha it was worth a try I guess lol I wish I knew more so I could feel I was helping the community. I just don't know much unfortunately. I would love to learn but I don't really know how to start. :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Hackedieter:
Thank you for this ROM and your efforts. If you need a tester for H850 version then I would like to test your ROM. Thanks....

Gesendet von meinem LG-H850 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
The link to the first build of the international ROM is upon AndroidFileHost
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
So flashing a new kernel maybe?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Well currently all the custom kernels are for the stock ROM so we can't use those. I'm gonna keep looking to see what I can find.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
If I did flash would it brick?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Yeah definitely
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Miustone:
Thanks for the H850 Build! Rated 5 Stars... Keep it up Mate! :angel:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
No problem!!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tweetyfiestuky:
Very happy to see that developing party is starting!!! Thanks

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lolmensch:
CM13 has been available in this state for months. In the other thread the dev mentioned even though most things work here wouldn't release it until the camera is fixed which is very hard due to our dual camera setup not being available in any AOSP device as far as I understood. Also snapdragon 820 still got a lot of new stuff which is why development is "slow". Other devices with snapdragon devices also have rather slow development despite their popularity I.e. The HTC 10
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Yeah, I just built it and made it available for those who can't build it themselves. I'm gonna see what I can do to fix some issues too n
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] davitox87:
Once again thanks! I'll be flashing tomorrow after work since I use my phone as an alarm. I need to be able to wake up in the morning [emoji21] I can't wait to give this a go.

One question, is this poor rooted or do I need to download the supersu zip?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kye2000:
Can't oneplus 3 sources be used in some way for the 820?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
Its cyanogenmod so its rooted
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drsn0w:
I think the 820 is the least of the issues here. The biggest issue is the dual camera setup which is unheard of on AOSP devices.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] MetaIIica:
if any interested to build CM14...

here the correct local_manifests.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="lg-devs/android_device_lge_h850" path="device/lge/h850" remote="github" revision="cm-14.0" />
<project name="lg-devs/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-14.0" />
<project name="lg-devs/android_device_lge_g5-common" path="device/lge/g5-common" remote="github" revision="cm-14.0" />
<project name="lg-devs/android_kernel_lge_msm8996" path="kernel/lge/msm8996" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_frameworks" path="vendor/nxp-nfc/opensource/frameworks" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_libnfc-nci" path="vendor/nxp-nfc/opensource/libnfc-nci" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_Nfc" path="vendor/nxp-nfc/opensource/Nfc" remote="github" revision="cm-14.0" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.0" />
</manifest>

will build but i hung at (AICP, but think CM14 have the same issue)

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/metaiiica/Android/aicp7/out/target/product/h850/obj_arm/SHARED_LIBRARIES/libqct_resampler_intermediates/export_includes', needed by '/home/metaiiica/Android/aicp7/out/target/product/h850/obj_arm/SHARED_LIBRARIES/libaudioresampler_intermediates/import_includes', missing and no known rule to make it
make: *** [ninja_wrapper] Fehler 1
make: Verzeichnis »/home/metaiiica/Android/aicp7« wird verlassen
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Yeah I have managed to get cm14 to build but didn't boot, will take a bit of time before things are ready.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] thecell_2007:
I have my gear s2 connected now so as the day goes on I'll know if the Bluetooth issue is sorted. I'll post back shortly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
for some reason BT connection is lost now after a while and can not turn it on until I reboot

after reboot works for a few minutes and disconnects again

I must say that I did dirty flash but not willing to re-install just for that (would rather get back to old build from 17)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
I am dual booting and to be safe i install clean everytime to be sure that any problems i get are not from dirty flashing
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] thecell_2007:
I can confirm today's build is already kicking my gear s2 after only a few minutes. Use my watch daily so no Bluetooth is a bummer but I know we have bigger issues. Appreciate the effort either way!

Edit: I'll keep watching but it seems as I unlock the phone, Bluetooth kicks off and then on. I can deal with that. But I can't say if this is the only time just yet. Will report back later.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Do you know how to take a log? If not can you PM me so I can work on this some more.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
will a logcat work?

think I can use CatLog to create the logs
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
Yes but i recommend matlog
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gwolfu:
Here is the log made with LogCat

https://drive.google.com/file/d/0B12CIETdWT5vZll4SDFlWm1nMXc/view?usp=drivesdk

Let me know if any good
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
The only BT device I have is an LG Tone headset - I just used it to listen to music for about 10 minutes and no drops/disconnects at all :)

Latest build, dirty flash - no issues (well besides the lack of notification LED which I'm sure will be fixed in one of the next versions) :cool: :good:

OK, 25 minutes now without any drops - test successful :D