My dear HTC One M8 took an unfortunate dive into water recently, I got it out pretty quickly (it was submerged) and shook it dry as fast as I could, then tore the unit down to get the battery disconnected as fast as I could (Screen jumped on, and vibrate motor was on constantly).
After getting the battery disconnected, stripping it down and drying it out, cleaning, etc.
I ordered a new battery and USB charge board as knew those would be most likely culprits.
Anyway, left existing USB and battery in, and after a few days of ensuring dry, etc, connected battery up and usb to charge, phone screen lit up and showed battery with electrical lightning symbol, a few seconds later then the battery with red exclamation mark (point) on screen.
Using my USB voltage/current meter I saw that battery charge current went to around 0.2amps but stayed constant, so I left it to do it's thing.
Powered it on and it's working! All good, touch working, all functions. However battery has an exclamation mark inside it when booted, and if connected to charger whilst phone is on charge current goes up when screen is on, etc (As though the phone is pulling current from the charger) but when idle the charge current drops to 0.
So it won't charge whilst turned on.
I then changed the battery and usb charge port. SAME, no difference. I've even tried a 3rd battery to be sure and it's the same, so I don't think it's the battery or the
usb charge port itself.
So debugging it, using "Ampere" app to see battery state. It says Unknown and often has unusual temperature values (- values or very low). Battery status is UNKNOWN.
I've connected up on adb to take a look and several things are odd, if I pull the battery stats:
130|shell@htc_m8:/ $ dumpsys battery Current Battery Service state: AC powered: false USB powered: true Wireless powered: false Overload: false USB overheat: false Extension: 0 PowerJacketExist: false PowerJacketStatus: 0 PowerJacketLevel: 0 PluginStatus: true Unsupport Charger: false status: 1 health: 2 present: true level: 87 scale: 100 voltage: 4120 temperature: 288 technology: Li-poly shell@htc_m8:/ $ dumpsys batteryproperties ac: 0 usb: 1 wireless: 0 status: 1 health: 2 present: 1 level: 87 voltage: 4187 temp: 287 shell@htc_m8:/ $
Does anyone know how I can 'influence' this, even by forcing it using dumpsys to set a variable?
I've tried all the usual tricks, power off, hold all buttons, power on holding for 2-3 minutes to reset battery, delete the batterystats.bin under recovery, etc.