My S7 started the restarts randomly after my phone had completely died a few weeks ago. I went to a T-Mobile store and they assured me not to do a factory reset but that I would get a refurbished phone. In the meantime I did wipe the cache, which worked for awhile yet it soon went back to random...