问题
Sometimes we see the device restarts automatically, while few other times I had found it switching off after long time, even battery was not low. So if we want to trace back of what actually has caused this, does we have any log file in device memory which has the cause of shutdown or restart ?
Like we get the dump for the other O.S. for any errors occured causing it to restart/shutdown in specific error log file. Similarly does android has such ?
It may be anywhere , even in internal memory, so with root privileges I can go into looking for it. Any thoughts ? Thanks.
回答1:
If you have installed Terminal on your phone just tupe insu
logcat
If not enable DebbugingMode on your phone, connect it with your PC/Mac, open Eclipse and go to Debug. There it will show the log of the phone.
I hope this helps.
来源:https://stackoverflow.com/questions/4976523/does-android-mobile-has-any-error-log-file-to-debug-cause-for-auto-switch-off