android - 不连接adb的手机(远程)通过安装apk,能不能做到将所有运行信息输出成文件?
巴扎黑
巴扎黑 2017-04-18 09:07:14
0
3
493

开发中,由于手边没有用户的机器,只能通过传送apk的形式给用户安装app。不能连接adb。

请问一下:

  1. 能不能将用户使用过程中所有的调试信息都纪录下来成一个log文件,log文件的内容就和连接adb调试的所有输出一样(不止是Log.i之类的输出,还包含各种exception),然后让用户发回来查看具体的问题?

  2. 遇到类似的问题大家都是怎么解决的?即用户的机器接触不到的情况下。

注:想要的效果是无adb连接,但是所输出的内容要和adb连接调试的基本相同,而不是Log.* 系列api的封装。


StackOverflow上找到的相关问题:

log on clients' devices

巴扎黑
巴扎黑

reply all(3)
巴扎黑

There are many APM (Application Performance Management) on the market

  • For apps targeting domestic users, choose domestic APM products

  • Apps for domestic users use foreign APM products

This type of product can record very detailed stack error logs and model classifications when the App crashes, etc.

Ty80

Save all the logs and upload them regularly, or let users upload them manually
Similar to this
https://github.com/Tamicer/Tc...
https://github.com/elvishew/xLog

阿神

If it crashes, you can try inheriting Tencent’s bugly.

If you need debugging logs, you can customize Log printing and add a method to write to a local file after printing. Save the required logs locally on your phone. You can choose to upload it to the server or have the client send it to you.
You can refer to: http://stackoverflow.com/ques...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template