My Galaxy S5 suddenly started shutting off and restarting incompletely for no reason, at rest and in the middle of doing of something. Complete factory reset did nothing - apparently there is "unauthorized" software on the phone and it is rooted, so Samsung won't fix it under warranty (it's...