Does android mobile has any error log file to debug cause for auto switch off?

旧巷老猫 提交于 2019-12-22 13:50:08

问题


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 in
su
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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!