matcas.blogg.se

Android studio debugging causing phone to restart
Android studio debugging causing phone to restart












Open it with any text editor and see if anything obvious shows up. If the phone reboots even while sitting on a charger, try running adb logcat continuously (you will need Android SDK and USB drivers installed and configured on your PC.) When the phone reboots, look at the last several pages in the command prompt window for any errors or abnormalities. This should create a file named "last_kmsg" on your SD Card that contains last few debugging messages from the kernel. You can also try pulling out the crash dumps via the following commands: suĬat /proc/last_kmsg > /mnt/sdcard/last_kmsg If everything above has been tried and your Android is still randomly restarting itself, you may just have a bad device. Hopefully you will get lucky and catch the errors that way. If you can't reproduce the reboots while the phone is hooked up to USB, I suggest installing an app like aLogcat, and setting it up to write logs to the SD Card on an interval.

android studio debugging causing phone to restart

If the phone reboots even while sitting on a charger, try running adb logcat continuously (you will need Android SDK and USB drivers installed and configured on your PC.) When the phone reboots, look at the last several pages in the command prompt window for any errors or abnormalities. Retrieving the logs is tricky, since the log cache gets erased on reboot.

android studio debugging causing phone to restart

Step 2: Scroll down until you see the 'System' tab. Here’s to check for new Android updates: Step 1: Go to 'Settings' on your Android device. The first thing I would try to do is to retrieve the logs of the errors via ADB, and/or crash dumps. If you are confused with 'why does my Android keep restarting', you must check for Android updates first.














Android studio debugging causing phone to restart