yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Q&A, Help & Troubleshooting] jacksmack:
I recently bought a used Nexus 5x with an unlocked Bootloader running Marshmallow, MTC20K. On the Bootloader screen it says the model is an H791 with 32GB of internal storage but then when I boot it up to Android, I'm only seeing 16GB of storage (10.5ish for Data)). After flashing TWRP (I tried with 3.0.2 and 3.2.2) and checking the phone's vitals, TWRP reads: 10,807MB for Data, 2,975MB for System, 908MB for Cache. The weird thing is that TWRP is telling me that I'm only using 2,502MB of Data but that I've got 1,204MB of Data free.... so even here, it's pretty clear that something's whacked.

So, I found some other folks that seemed to have a similar problem (there’s more, but these illustrate the issue):

A1) https://productforums.google.com/forum/#!topic/nexus/gHNW3Xv8yp8

A2) https://www.reddit.com/r/nexus5x/comments/46w0nc/psa_if_your_32gb_n5x_is_showing_10gb_of_storage/

A3) www.**********.com/your-32gb-nexus-5-now-shows-only-16gb-here-is-how-to-fix-it/ -replace the asterisks with "droidreviews"

Unfortunately, none of the solutions offered in the above threads worked. So that brought me to more drastic potential solutions like these:

B1) https://xdaforums.com/nexus-5x/help/req-help-to-unbrick-t3251740/post63889395#post63889395

-my phone isn’t bricked and I had bad luck with an HTC device years ago after re-locking the Bootloader, so I’m a bit hesitant to re-lock the Bootloader and I’m not even sure if this solution would fix the 32GB reading 16GB issue when the common solutions (points A1-A3) didn’t work.

B2) https://xdaforums.com/google-nexus-5/help/nexus-5-32gb-wont-to-internal-storage-t3313593 and https://xdaforums.com/google-nexus-5/general/fix-unbrick-nexus-5-stucked-qualcomm-hs-t3043301 – these are both links for the Nexus 5 and I have no idea if they’d work on a a 5X or if the TOT from point B1 would essentially offer the same solution, by re-flashing the GPT partition, that the latter link in B2 articulates…

I’ve also tried flashing Nougat and Oreo builds (official flavors from Google), but they didn’t fix the storage issue and, in fact, just created another issue: I can no longer connect to WI-FI. Going back to Marshmallow allows me to connect to WI-FI, but I thought it was weird that Nougat and Oreo biffed it. I also tried the common solutions found through Googling for fixing alleviating this issue, but to no avail. Anyway, I’m bringing the WI-FI issue up in this thread because perhaps the issues, the issue with the misrepresented storage as well as the issue with WI-FI, aren’t mutually exclusive.

This may be be a little conspiratorial but since this solution: TWRP => "wipe" menu => checked "data" => "repair or change file system" => "resize" seems to work for so many people and it’s not working for me, I’m wondering if the person who sold me the phone somehow flashed a boot.img displaying 32GB when the phone is in reality 16GB… is that even possible?

Anyway, if anyone has faced similar quandaries and arrived at a solution or knows if the solutions in points B1 and B2 would solve my dilemma, I’d be game to hear your 2 cents.
[Nexus 5X Q&A, Help & Troubleshooting] jacksmack:
Ok, so I tried this: https://xdaforums.com/nexus-5x/help/req-help-to-unbrick-t3251740/post63889395#post63889395 (point B1 from my original post) but no go. Still only seeing 10,55gb after booting into Android and this time, when the setup wizard starts its magic, I'm greeted with a pop-up that there's some internal error and I should contact the manufacturer.

Any ideas?
[Nexus 5X Q&A, Help & Troubleshooting] jacksmack:
I tried the solutions listed here too, but to no avail: https://xdaforums.com/nexus-5x/help/incorrect-storage-capacity-stock-7-0-t3460425

Interesting discovery though; on MTC20K, when I install this cm-14.1-20161225-NIGHTLY-bullhead.zip my storage is visible as 32GB but the bulk of it appears to be devoured by the "System" partition (see attached screenshot). When I go back to Marshmallow however, my visible storage reverts back to what one would see if one had a 16GB Nexus 5X.

Any ideas?
[Nexus 5X Q&A, Help & Troubleshooting] jd1639:
Do a factory reset in the stock recovery. That will get your 32 gb.
[Nexus 5X Q&A, Help & Troubleshooting] jacksmack:
Did that too but it didn't work. It seems my GPT table is somehow messed up. I got the phone 2nd hand so I have no idea what the original owner tried to flash (it was supposed to be a fresh "display model").
[LG G6 Guides, News, & Discussion] 1joe6:
Ladies and gentleman,

For too long i have had this moisture detection problem. I have read "how to fix it" threads forever and to be honest. They don't work. I've disabled the moisture detect setting, soft reset my phone, cleaned my usb c port thousanda of times and nothing seems to work. However! I have the cure for good (until lg send us an update that eliminates this problem for us)

To fix this problem for good here it is! (well until you restart your phone you'll have to re do this step)

Go into your settings > apps and notifications > apps info > click the 3 dots top right corner > click show system > scroll all way to lg system server > click on it and then click force stop!

I really do hope this works for a lot if not all of you because it has rescued me from hell!

You are welcome
[LG G6 Guides, News, & Discussion] akashx101:
Thankyou. Can you tell me is your phone recognized by computer? Cause mine's just charging
[LG G6 Guides, News, & Discussion] jdock:
Interesting approach in light of what seems to be an increasingly common problem. Of course, it brings up some questions.

Most importantly, we don't know for sure what is causing the warning to be activated. It is there for a purpose and if you really have some conductivity between pins that shouldn't be there (whether due to debris or a faulty port), it might not be a good idea to bypass it. On the other hand, if this is a software bug (e.g a threshhold mis-set or incorrect sensor reading code) then a software fix is all you can do.

And we don't know what else "LG System Server" does. Maybe it is not such a good idea to disable it, or maybe you'll be overall happier anyway!

At any rate, if it is really beneficial to run this way, maybe you can disable it with LG package disabler and then you don't have to stop it every time you boot your phone. For me, if this starts happening so frequently, I'll really consider making use of the 2nd year promise.

Update 1: The problem was getting worse. I couldn't even charge while powered off. I tried force stopping this to see what happened. The notification went away until I plugged in the charger to see if it would charge (it didn't). I thought maybe LG System Server had started again, but when I went to force stop it again, the option was grayed out.

Update 2. I would like to save myself the hassle of the 2-year promise if it's really not needed, so I tried one more thing. I had previously tried wiping in the port with alcohol, which didn't help at all, but just now I tried electrical contact cleaner (CRC brand "2-26" part number 02004) that says it's plastic-safe. I put some on a paper towel, folded it around my pointy nylon zip tie end I use for pulling out the lint, and wiped the contacts as well as I could without getting the stuff all over everything.

It is too early to declare complete victory yet but it is fast charging now.

And... that lasted for about 15 minutes.
[LG G6 Guides, News, & Discussion] 1joe6:
Akash i have no problems plugging my phone into the computer, i am unsure where your issue lies. Further, jdock my phone is still working fine since ive force stopped my system server. There has been no glitches since and my phone charges accordingly! Goodluck to you!
[LG G6 Guides, News, & Discussion] jdock:
So, yesterday I cleaned the usb port out with contact cleaner. This initially seemed to fix my problem: when I powered on my phone I did not get the moisture warning so I plugged in the charger and it fast charged, but only for about 15 minutes before giving me the warning again. It would toggle between charging and not charging so I unplugged the charger and set the phone aside.

After a couple hours I tried charging again and it fully fast-charged. So I thought maybe there was really something to this. I re-did the cleaning process again last night, just to make sure I am doing the best job I can, and did not attempt to charge overnight so that the solvent could continue to do its job. So far this morning it is still fine and it fully quick-charged again.

A permanent fix? I hope so. It's still way too early to be sure. Cleaning the port seemed to me the obvious answer whenever I heard about someone else having this problem, and it was my first thought when I started having it. But we all thought we had cleaned out the port and it didn't help. What if we're just not doing a good enough job?

For anyone with this problem, it can't hurt to try some CRC 2-26. Its description is "Plastic safe lubricant, penetrant and corrosion inhibitor that helps prevent electrical malfunctions caused by water penetration, humidity, condensation or corrosion". Maybe use the CRC QD contact cleaner first because the 2-26 is technically not really a cleaner. They are inexpensive.I just picked the 2-26 because they had it at Home Depot - about $3 for the 5 oz can that will last me forever (the QD is about the same). If I have to do this every few months, no big deal.

Just don't try to spray it directly into the port. You will make a huge oily mess. Figure out some kind of applicator. I ended up stuffing saturated paper towel on each side of the port and rubbing it around with a thin toothpick.
[LG G6 Guides, News, & Discussion] EuBir:
In my case putting my phone into a box with rice over night helped! Although fast charging doesn't work now!
[LG G6 Guides, News, & Discussion] TheDjost:
In my case, the moisture warning was triggered by having my phone in my shirt pocket on a very hot, humid and sweaty day. Tried everything and nothing worked until I tried taking the sim/SD tray out overnight while leaving the phone on a warm surface.

The reasoning being that moisture may have been sucked in the phone due to heating/cooling the air inside pulling a vacuum.

Opening the sim/SD tray let the moisture evaporate. It's been a couple of days, and the moisture warning has not come back.
[LG G6 Guides, News, & Discussion] Souhail36:
I had the same problem and i tried everything stoping lg syst..restart ...hair dryer even tho i my phone never touched water.what i found is dust and fiber tissue from my pocket was inside the connector , i used a tooth pick to clean it a little bit of alcohol just to make sure its really clean , and thats it. I hope i helped. Sorry for the english. 😉
[LG G6 Guides, News, & Discussion] students:
I had this problem playing PUBG with sweaty hands.

I solved it by playing without a phone case and letting the phone dry. I am guessing my case was trapping the moisture?
[LG G6 Guides, News, & Discussion] Kevinlu1s:
The option that its working for me now its leaving my phone on bed with a hairdryer next to it for about 25 minutes. The phone should be off, then i wait until it cooldown because it was really hot. After it cooled i try again pluging in the cable and start charging. I hope that the warning dont show again
[LG G6 Guides, News, & Discussion] students:
Kevin you will destroy your battery doing that.
[LG G6 Guides, News, & Discussion] fallenwout:
I had reoccurring moisture detected, even when cable was not plugged in. I send it back under warranty. Attached is a screenshot of the diagnose from LG's service center. It also lists the replaced components (you can google the part numbers).

Language on the attachment is a mixture of German and Dutch.View attachment 4627491
[LG G6 Guides, News, & Discussion] Kevinlu1s:
I know the message pop up again. I didnt do that again.

The method that really worked for me was using a toothpick and flattened it with a pair of pliers then carefully cleaned the usb type-c charge port. So far so good, I only do that once and now I have got a week charging the phone normally without that warning, it really works for me, you guys definitely should try this.
[LG G6 Guides, News, & Discussion] CHUCK348:
Thank you for your idea. Sure would like to see lg admit to the problem and provide a solution.i have the lg g7. Thanks again
[LG G6 Guides, News, & Discussion] Kaioh_shin:
I have this issue but the fix does not worked for me.

The message appeared randomly while charging one night. It was nowhere near water for several months and I work in an office.

What I've tried:

- Drying with a hairdryer (not even a temporary fix)

- Force stopping LG system and LG server processes. I even disabled them with package disabler!

- Disabled the moisture sensor in secret menu. Warning still shows up! Even if I try to turn of the phone and charge it.

- Cleaned the USB C socket with a hairpin and cloth

- Cleaned under running water, swapped with alcohol and dried again (getting desperate)

It does however charge if I plug unplug it in like 5 times. Really annoying!

It does this regardless of charging cable, I tried with 5 cables at home and work.

I read somewhere that the pins were causing a short, but the pins are inside the cable right?

What else can I try?
[LG G6 Guides, News, & Discussion] Novoselic:
My Solution

Having same issue for 3 days, have been try 3 different cable and 2 charger doesnt sholve the issue.

At first im trying to clean the port with a needle, and the moisture notification dissapear. But after that the fast charging didnt work, and when i try to charge while the phone turn off the moisture notification pop out.

Next day im trying other methods. I dont have access to isoprophyl instead im using hand sanitizer with 70% alcohol. Use a toothbrush with hand sanitizer to clean the port for 3 minutes, then let it dry. Now everything works perfectly, no notification and the fast charging work. Atleast for now. I'll give an update if something wrong

I still dont understand what cause this moisture issue, but i hope that can help you.
[LG G6 Guides, News, & Discussion] Zethexx:
I think I may know a fix

In the stock dialer type in *#546368#*XXX#

Where XXX is the number of the model where you can find in Settings - system - about phone - common - hardware info "Model number" eg. Mine is LG-M700DSK. So, 700 fills in XXX. So mine would be *#546368#*700#.

Don't call, it will bring a hidden menu when input last digit. In hidden menu press svc menu, press moisture detection, turn Disable moisture detection to ON. It should give you a caution dialog, just accept it and it will bring a toast that says "sucess". This should disable moisture detection and will not notify about it.
[LG G6 Guides, News, & Discussion] chakchak:
Thanks for the tip, but I tried before. In my case, turning it on or off is not a solution. They didnt work both way
[LG G6 Guides, News, & Discussion] Kaioh_shin:
After all the **** I did, I found my problem and solution.

It was because of my charging cable that had bent pins, yet oddly enough the moisture detected error persisted with other cables.

Thru away that cable, then reset the phone cache and soft reboot (volume down + power)

Hope this helps.
[LG G6 Guides, News, & Discussion] LmnoAp:
Doesn't work

I don't have the option to force stop.

Do you think a wireless charger would work?
[LG G6 Guides, News, & Discussion] LmnoAp:
When nothing else worked

I bought a $5 Vivitar wireless charger from Target. It was able to charge my phone without the moisture detection warning. After it fully charged the phone the plug started to work again as well and the error stopped popping up. None of the other troubleshooting on the thread had worked for me. Some of the settings in my phone are different for some reason. I wish I'd never gotten these phones as they are considered tier 2 with T-Mobile and not worth as much so trade in is not going the way I'd like it to. I hope this can help someone. I will be Googling my next phone before purchase. Ugh.
[LG G6 Guides, News, & Discussion] AlienAnarchy:
Im hopeless, thinking about getting a new phone... One day suddenly this fkn moisture message started poppin up, tried to clean it a hundred times, changing like 10 different cables with no luck. Tried to disable the message in secret menu with 0 luck. Current situation, that when the battery goes absolute 0 and the phone turns of, i can charge it in that charging UI, which doesnt seem to recognize the moisture. (even charges is fast mode). Now comes the super annoying part: after it charged, that moisture detected message pops up every 5 second (had to mute the phone because it keeps vibrating and making sound)

Now, should i consider installing a custom ROM? Im thinking that only LG's romhas this fkn moisture stuff, and a custom ROM maybe charges the phone with no problem..

Cheers

Sorry for broken english
[LG G6 Guides, News, & Discussion] METLHOUND:
Working fix

assuming you have some battery left, type *#546368#*870# with the last 3 digits being your phone model no. into the dial pad, this will access the hidden menu.

go into svc menu, moisture detect setting, then disable it. phone will restart.

obviously youre disabling a sensor, so at your own risk.

for me the error still pops up at start up and repeatadely every so often but if you replug the phone, it will charge no problem. adjust notifiction settings to hide the error.

am working on a fix to remove the error notifiction. thought id share as it worked for me, not perfect but works.

edit;

used a h870 g6 and now has all the latest updates but hadnt been updated for a year before that. i read somewhere that the hidden menu may be disabled for american and other variants of the g6, but worth a try.

also force stopping lg system server after doing the above after each time the phone starts up seems to remove the error entirely.

if anyone knows what lg system server actually is and what it does please let me know 'cos i just want rid of it at this point.
[LG G6 Guides, News, & Discussion] Merimahrukh:
Perfume works

Charging was gone....fon turned off...unable to charge again nothing seems to be working

Cleaned the port but of no use.....used dryers etc

.

.

.

SPRAYED PERFUME IN THE PORT AND LEFT FOR 5 HOURS ON THE TABLE

IT WORKED....PERFUME CARRIES ALCOHOL TOO
[LG G6 Guides, News, & Discussion] caribehotspot:
I'm using AOSP Extended and it completely eliminated the error. Nothing else I did solved the problem. LG-US997
[LG G6 Guides, News, & Discussion] DavidColer1978:
there is a cure for this problem.

The sensor that controls the moisture detection on the USB port does not just detect moisture but any substance that is on or near or inside the area of the USB C connector.

Solution:

1: get a magnifying lens of some kind and a good flashlight. Shut off your phone!!!

2: look inside the USB C connector all around it I do not mean just the pins I mean the whole area of the connector.

3: remove any foreign substance. The bottom of the USB C connector should be a uniform(same) color all around the base of the pins. If it is not the same color there is a foreign substance and it needs to be cleaned thoroughly. Tools recommended a very fine tip pair of PC repair style tweezers, a can of compressed air, a small alcohol wipe(Not Cotton balls or anything else).

I actually found a small particle of some kind stuck at the bottom of my USB C port I scraped it away and then had to carefully scrape around the pins to remove it all and the compressed air did not do it by itself nor did any other cleaning method it was a hard substance.

*DO NOT SCRAPE THE PINS WITH THE TWEEZERS

Method: First remove any hard substance or as much of anything that is inside the connector area using the tweezers and canned air. Use the Alcohol wipe with the tweezers and wipe around the bottom and the pins(yes the pins). Finally use the canned air again to remove anything else that the wipe may have dislodged. While the phone is off plug the charging cable in and check to see if you get the moisture warning.

If warning persists be sure to use the compressed air on the ports right next to the USB port, pull out the Sim/SD tray and blast it with compressed air as well try plugging it in again.

Never apply a heat source directly or indirectly to the cover of the phone either the screen or the back as extreme heat can damage the phone and will void the warranty and usually will not help the situation as that kind of heat will evaporate the moisture which will condense again after the heat cools. it will be able to be seen once the phone is taken apart. If you happen to drop a phone into water either partially or fully submerged shut the phone down immediately(remove the battery if you can) get a plastic container with a snap/sealable lid. Put a good layer of white dry rice inside it and then lay the phone into the layer of rice and seal the container. Wait at least 12 hours before trying to start the phone.

When you can plug in the phone while it is off and not get the warning start the phone back up.
[LG G6 Guides, News, & Discussion] xollen:
Same for me, but I want to back to the stock rom, on extended rom android auto not working...
[LG G6 Guides, News, & Discussion] METLHOUND:
Working fix MK.II

Earlier i posted that i had some success with disabling the moisture detect sensor, and now giving an update on my situation, my phone seems to charge and work perfectly fine.

All i did was replace the type c connector insinde the phone. If you have some experience with taking apart phones or electronics this isn't too bad. I followed the guides on ifixit and they are pretty clear on how to get into the phone.

If you plan on doing this yourself the connector i found from a somewhat good seller on ebay was £5-6. Some tips not included in the guide are that you shouldnt pry the rear glass panel too much or it will crack, so if you plan on reusing the panel use like a credit card or a guitar pick to get passed the adhesive, as there is some adhesive in the middle of the panel as well. I cracked my rear panel when i originally went investigating so now i need to get a new panel for around £10 and spend some more time if i want it waterproof. Otherwise it still works. You also dont need to remove the battery as the guide suggests, and the small plastic panel holding the connector is removeable and needs a little more force than you think you need for it to pop out. Also dont bother trying without a heat gun. I also made sure to re-enable the moisture detect sensor in the hidden menu to not get a false positive.

This was originally my brothers phone but since this issue he 'upgraded' to an iphone. We couldnt get it warrantied because he had a small crack on the top left of the screen that didnt need to be replaced as it didnt affect anything, and lg claimed that to get into the phone the screen had to be removed... they also quoted over £150 for the screen repair which a 3rd party company would do anyway and also couldnt guarantee that they could fix the moisture issue...

Anyway ive now got a cheap upgrade from my g5!

Hope this helps.
[LG G6 Guides, News, & Discussion] RosehipCaper:
Simple FIX!

Remove, SIM, SD Card. CLEAN, Follow The Rest..... Done LG G6 ,,Working GREAT!. ITS THE $HIT SD CARD!!!.. NEXT!
[LG G6 Guides, News, & Discussion] Anzee:
Follow the rest? Could u be a bit more detailed please? TIA
[LG G6 Guides, News, & Discussion] Dawg71378:
No go...

None of these fixes work for me. Just bought a wireless charging pad and Bam, chargeable phone. ?
[LG G6 Guides, News, & Discussion] dgunn:
Has anyone found a real solution for this issue that doesn't include replacing the port or a wireless charger?
[LG G6 Guides, News, & Discussion] hitalchi:
I put a little oil to the usb port and it works so well now, I don't know whether it's permanent or not. But i hope it'll be ok.
[LG G6 Guides, News, & Discussion] Abbasis:
I think you hit the nail on the head. For me, problems increase on hot humid days. I agree, waterproofing/climate control is likely a culprit for my case.
[LG G6 Guides, News, & Discussion] Arak0n:
That's a great way to ruin your battery and set your bed on fire.