Debugging Random Reboots in Android
<p>So I'm trying to debug why my phone is randomly rebooting (and hoping it isn't my app). The only pattern I've noticed is that occasionally when try and unlock it, the phone is off and I have to hold the power button to turn it back on.</p>

<p>I believe this started happening while I was writing an app widget, but can't be sure.</p>

<p>adb bugreport doesn't reveal anything interesting, no kernel panics anyway</p>

<pre><code>------ LAST KMSG (/proc/last_kmsg) ------
*** /proc/last_kmsg: No such file or directory

------ LAST PANIC CONSOLE (/data/dontpanic/apanic_console) ------
*** /data/dontpanic/apanic_console: No such file or directory

------ LAST PANIC THREADS (/data/dontpanic/apanic_threads) ------
*** /data/dontpanic/apanic_threads: No such file or directory
</code></pre>

<p>Logcat doesn't persist past a reboot, so I wrote a small service that is writing it to disk for me now (we'll see if I find anything there)</p>

<p>Has anyone else dealt with this before? How do you go about debugging this type of issue normally? </p>

<p>My phone is a gsm galaxy nexus running 4.1.2, but I also noticed it on 4.1.1</p>
