如何访问Android的文件/data/anr/traces.txt和/数据/墓碑/墓碑 [英] how to access android files /data/anr/traces.txt and /data/tombstones/tombstones

查看:3066
本文介绍了如何访问Android的文件/data/anr/traces.txt和/数据/墓碑/墓碑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写报告崩溃和相关记录的应用程序。 所以从我的应用程序,我试图访问的 traces.txt 和墓碑,但我得到一个错误:

I am writing an application for reporting crashes and the relevant logs. So from my application I am trying to access traces.txt and tombstones, but I am getting an error:

03-25 09:48:46.220 W/System.err(10250): java.io.FileNotFoundException: /data/tombstone/tombstone_00 (Permission denied)

我能够访问的 traces.txt ,但没有墓碑。

推荐答案

您可以使用位于your_sd_root_dir /工具ADB工具。使用这样

You can use adb tool located in your_sd_root_dir/tools. Use it like this

./adb pull path_to_file location_to_save

这篇关于如何访问Android的文件/data/anr/traces.txt和/数据/墓碑/墓碑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆