Board Thread:Game Discussion/@comment-26388545-20180930020115/@comment-34243920-20180930052127

If a battery is punctured, it can gradually swell and blow up + overheats to extreme temperatures. It doesn't matter what you do software wise, be it clearing cache, reinstalling the app or whatever. The problem is hardware based and it can't be fixed unless the battery is changed.

I've had both overheating cases (hardware and software wise) in the past on a Samsung Galaxy S4. I was able to catch the swelling since the phone was made of plastic and the back cover had a bump, opened up and the battery was almost twice as thick in the middle. Other time it was my custom ROM's fault. I reverted the phone back to stock firmware and it was fine.

The thing with S7 and other full glass made phones these days is that you can't inspect the battery unless you take it apart. It very well could be software related, but I'm pretty sure it's hardware, e.g. your battery.

A diagnostic could help you. Any certified repair shop is doing it. And they'll tell you what is the exact problem and if it's fixable.