I bought a used Galaxy S7 about a month ago. Ever since I bought it, it has had a tendency to reboot fairly unpredictably for no obvious reason. I've noticed that if I am using a particular app when it reboots, it will usually reboot again if I attempt to use that app soon after startup.
Currently the phone is locked in a cycle of rebooting within a minute of startup regardless of what I do (including booting in Safe Mode). It has rebooted at least 20 times in this way, with uptime always or almost always under 1 minute before reboot and no interaction with the phone at all.
I've tried clearing the Dalvik cache and other cache partition; although this did not fix the issue, I did notice that it took quite a bit longer (multiple minutes) to reboot on the first bootup after clearing the caches.
How can I get my phone to stabilize and hopefully avoid future unsolicited reboots?
UPDATE: whoops, forgot to read that info link for [boot-loop]. Apparently at this point I'm expected to give up and do a factory reset. However, I'm concerned that the issue may be that there are bad blocks in the NAND. Is this a possibility, and if so, is there a way to mark them so the firmware does not attempt to use them?