Android 在哪里可以找到安卓崩溃历史
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12519077/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where to find android crash history
提问by CJ McAllister
I've been experiencing a great deal of instability on my Verizon Galaxy S III, and I believe it's related to the WiFi driver, or at least something in the networking stack. I get daily full system crashes that cause soft reboots of the OS.
我在 Verizon Galaxy S III 上遇到了很多不稳定的情况,我相信这与 WiFi 驱动程序有关,或者至少与网络堆栈中的某些内容有关。我每天都会遇到导致操作系统软重启的完整系统崩溃。
In order to trace to the root of the issue, I'd like to see historical crash data for the Android OS. Please note that I am NOT developing an app, and I do not want instruction on how to use LogCat to trace issues within an in-development app. I want to see the Android system crash logs, but I'm not sure where to look for them.
为了追查问题的根源,我想查看 Android 操作系统的历史崩溃数据。请注意,我不是在开发应用程序,而且我不想要有关如何使用 LogCat 跟踪开发中应用程序中的问题的说明。我想查看 Android 系统崩溃日志,但我不知道在哪里查找它们。
Thanks in advance!
提前致谢!
回答by
After ANR happens, you would find call stack of related process at /data/anr/traces.txt
After application crashes, you might find call stackof crashed application under /data/tombstones
directory.
ANR发生后,你会在/data/anr/traces.txt
After application crashes中找到相关进程的调用栈,你可能会在目录下找到crash的应用的调用栈/data/tombstones
。
回答by knvarma
Usually the every crash is stored in traces.txt file under /data/anr/ folder of internal storage. Try checking this file.
通常每次崩溃都存储在内部存储的 /data/anr/ 文件夹下的 traces.txt 文件中。尝试检查此文件。
回答by P.T.
See Android: How to get kernel logs after kernel panic?
It looks like /data/dontpanic/
should contain some "apanic" files, but only if the kernel's apanic support is enabled, and it worked. (I haven't seen anything there in my case, but maybe you'll be luckier than I ...)
看起来/data/dontpanic/
应该包含一些“apanic”文件,但前提是启用了内核的apanic支持,并且它有效。(在我的案例中我没有看到任何东西,但也许你会比我更幸运......)
回答by shashi kumar
crash report can be found at default path: /data/anr/
崩溃报告可以在默认路径中找到:/data/anr/
some manufacture place in custom path like: /data/system/ckerror
自定义路径中的一些制造地点,例如:/data/system/ckerror
use cmd: adb pull /data/anr "dest path"
使用 cmd: adb pull /data/anr "dest path"
example: in windows cmd prompt: adb pull /data/anr c:\trace
示例:在 Windows cmd 提示符下: adb pull /data/anr c:\trace
回答by AnT
The documentstates that
该文件指出
Android stores trace information when it experiences an ANR. On older OS releases, there's >a single /data/anr/traces.txt file on the device.
Android 在遇到 ANR 时会存储跟踪信息。在较旧的操作系统版本上,设备上有 > 一个 /data/anr/traces.txt 文件。
On newer OS releases, there are multiple >/data/anr/anr_* files. You can access ANR traces from a device or emulator by using >Android Debug Bridge (adb) as root:
在较新的操作系统版本上,有多个 >/data/anr/anr_* 文件。您可以使用 >Android Debug Bridge (adb) 作为 root 从设备或模拟器访问 ANR 跟踪:
adb root
adb shell ls /data/anr
adb pull /data/anr/<filename>