android wifi logcat 看日志

http://tanmaysarkar.com/android-logcat-over-wifi/

Most of the time for analytical purpose of mobile application we need to take Application logcat. To take this log or session data we need the following hardware –

  1. Wifi Router

  2. Desktop / Laptop

  3. Android Device

  4. USB Cable (first time only)

  5. ADB
    We need to follow the below steps –

  6. First Install ADB in computer.

  7. Now connect the desktop or laptop with a router. Say for example the IP of desktop is 192.168.0.100

  8. Now Go to settings section of Mobile and tap on About Phone. Tap 7 times on Build Number to enable Developer options (If it is not enabled). Now open the developer Options and tick “USB Debugging”.

  9. Connect the mobile in same wifi. Consider the IP of the mobile is 192.168.0.101

  10. Now connect the phone to Desktop/laptop with USB Cable.

  11. Open CMD in computer and provide the following command –
    adb tcpip 5555
    adb connect 192.168.0.101:5555

  12. Remove the USB Cable from the device.

  13. Now open the app which you need to take the activity log.

  14. Navigate any preferred location in computer where you need to store the logcat result.

  15. Open the CMD and navigate that location.

  16. Provide the following command in CMD “adb logcat > filename.txt”

  17. Do the activity in mobile.

  18. After completing the activity press “Ctrl+c” to terminate the writing of log file.

Note : During this process if you found “- waiting for device –“ message in console then please again execute adb connect 192.168.0.101:5555

Happy wifi logging.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容