简体   繁体   English

有没有办法在我的设备上检查 adb 连接日志?

[英]Is there are way to check adb connection logs on my device?

I have an Android device which I do development on.我有一台用于开发的 Android 设备。 When I had a stock ROM, I could always connect with WiFi.当我有一个库存 ROM 时,我总是可以连接 WiFi。 However, I switched to a custom root rom and whatever I do (and believe I did all) it does not connect to the device over WiFi, saying:但是,我切换到自定义根 rom,无论我做什么(并且相信我都做了),它都不会通过 WiFi 连接到设备,说:

failed to connect to '192.168.1.2:5555': Connection refused

Believe I did all that.相信我做到了这一切。 Trying with sudo, playing with developer settings on custom root rom, restarting, killing server and starting server and plugging it in again.尝试使用 sudo,在自定义根 rom 上使用开发人员设置,重新启动、杀死服务器并启动服务器并再次插入。 None of them worked.他们都没有工作。 I have done all the solutions in this question and many other questions and blog posts.我已经完成了这个问题以及许多其他问题和博客文章中的所有解决方案。

That's why what I'm asking is something different.这就是为什么我要问的是不同的东西。 I'd like to troubleshoot it myself.我想自己解决。 Now, the question is:现在,问题是:

Is there a way to see adb connection debug/trace logs on my device so that I can at least tell what the problem is?有没有办法在我的设备上查看 adb 连接调试/跟踪日志,以便我至少可以知道问题是什么? Where are these logs located?这些日志位于何处?

Thanks in advance.提前致谢。


Environment环境

  • Android 9安卓 9
  • General Mobile GM5 Plus通用移动GM5 Plus
  • Custom Root Rom自定义根目录
Android Debug Bridge version 1.0.41
Version 31.0.2-7242960

Answering to your particular question you can view the android logcat if you have root access there are plenty of applications to do so: https://play.google.com/store/apps/details?id=net.sinoka.apps.logcatviewer&hl=es&gl=US回答您的特定问题,如果您具有 root 访问权限,则可以查看 android logcat 有很多应用程序可以这样做: https : //play.google.com/store/apps/details? id=net.sinoka.apps.logcatviewer &hl =es&gl=美国

Related with your problems connecting to adb over wifi, is very hard to tell where the problem is, cause of the custom rom, on android 11 and posterior is simplier because we have an option to pair devices and works very good.与您通过 wifi 连接到 adb 的问题相关,很难说出问题出在哪里,自定义 rom 的原因,在 android 11 和后部更简单,因为我们可以选择配对设备并且工作得很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM