[HTC 10 Questions & Answers] zr_hazem:
Hello,

I seem to have this problem too as my phone shuts down on itself around 50~30% and upon reboot while charging some settings are reset for some reason like my homescreen . It doesn't bootloop however just shuts down. When I boot it backup the first time it boots up normally and when the lock screen appears the phone shuts down 5~10secs. Every boot seems to last less time than the one before. For example, the first boot after the shut down makes it to the lock screen, then the 2nd barely makes it to the lock screen, then the 3rd just displays the green dots then shuts down. I initially thought this was a battery issue, but after the phone shuts down I can reboot into the bootloader or download mode and it'd stay there. If I boot into recovery, however, the percentage varies like the first few seconds the battery says numbers around 60~33% then suddenly drops to 3% and until 1%. I think something is messed up somewhere in how the phone reads the battery? batterystats file? Because the recovery works okay for a few seconds and maybe it was loading some kind of batterystats ? Idk how this even works. I'm pretty confused now because my battery life is so bad around 2.5hrs SoT max and also this bug that makes the phone turn off at less than 50% but the bootloader and download mode are still accessible makes it obvious that the battery still has juice in it... So is this battery or software? I tried flashing roms,kernels, firmwares, tweaks, etc.. Nothing works... Also, the phone never shows the empty battery image if it shuts down or boots up after that shut down; however, when I plug it into the charger without booting it reads around 15-1% of charge. I'm running a deodexed stock nougat rom (2.41.401.41) with the latest EX kernel. From what I've read around I think [MENTION=8419666]szymonurai[/MENTION] is right because today I was launching Google's camera by arnova and it's pretty rough on the cpu and the maxed screen brightness further increases the load on the battery so the phone shut down/crashes. I'm not so huge on electronics, but I think the battery itself didn't deteriorate that much maybe maximum 30% of its original 3000mAh capacity worst case scenario, and the battery can't supply the same amount of voltage and ampere to the components anymore. Much like Apple's iPhones... I also ran a test today on battery with the HTC test app that you can access in the dialer (*#*#3424#*#*) and it drained around 60 percent in an hour with screen on max brightness and airplane mode on. It only shut down/crashed when i picked it up enabled wifi and started using it normally like opening instagram and stuff. I wonder if downclocking the CPU would help.

This battery issue is becoming a common theme here which suggests that the battery actually deteriorated in terms of the supplied voltage and ampere that it delivers might be that HTC didn't put in much effort into designing it or that QC is the culprit. Unfortunately, my phone doesn't have warranty, but I'll call HTC soon and ask for a battery replacement that will hopefully solve this. Seeing that some people tried this and it didn't work might suggest it's a software bug. I can't really wrap my mind around this. It's the hardest and worst bug/issue I've ever encountered from my many years of tinkering with phones and computers...

Edit: I also want to say that when charging the phone with its original charger and cable it doesnt get hot anymore.. Usually it used to get around 34-40c while charging but now it barely reaches 35c. This might suggest that whatever controller board on the battery communicating with the charger may be telling it not to deliver the default voltage or ampere so that's why the battery doesn't get charged well because the difference between the normal battery voltage and the charging voltage isnt enough to actually get it going. I think of it kind of like jumpstarting a car battery; you need a higher voltage or a better battery to jumpstart it, but if you supply it with not so high electricity it won't get you anywhere. AFAIK, Li-ion batteries need some heat to charge but that's not what's happening here. The phone is actually mostly cool to the touch when idle and charging. I'm sure I've messed up a lot of facts on what I just said but like I said I'm not so huge on how electricity really works :).