writing dumpstate to file android
0 down vote favorite 1 share [g+] share [fb] share [tw] | I need the bugreport option that you can use in adb to go to a file on the sd in my app. I foundAndroid; using exec("bugreport")that explains that you can not run bugreport in the regular shell and that you need to run dumpstate, dumpsys, and logcat separately to get the same result. That is fine and I understand that, but I can not get dumpstate or dumpsys to write to the file. The below works fine to write the logcat using logcat -d -f, but does not work for the other two. I have tried dumpstate -f , dumpstate -d -f and dumpstate > to get it work, but still does not write anything to the file. Is there something I am missing to make this work? and here is where I am writing the file to the location android adb dump bug-reporting
| |||
feedback |
1 Answer
active oldest votesup vote 1 down vote | I got it working. I foundSOLVED- Running Shell commands though java code on Androidand modified it to work like I needed it to. If anyone needs it, here is the way I am running everything together. The app needs to have a bug report attached to it, from readingSOLVED- Running Shell commands though java code on Android, I saw that there is not a way to run a bug report, just the three componenets: dumpstate, dumpsys, and log. I am generating each report separately and then combining them all into one file to attach to an email. |
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer