LogCat:无法打开日志设备 [英] LogCat: Unable to open log device

查看:241
本文介绍了LogCat:无法打开日志设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电话:Samsung Galaxy Note N7000
内核:HyDraCore_v6.2_B3_R3P0
Build:MIUI-2.10.19 RocketMIUI v8

My Phone: Samsung Galaxy Note N7000 Kernel: HyDraCore_v6.2_B3_R3P0 Build: MIUI-2.10.19 RocketMIUI v8

我读了很多线程关于这个但没有解决我的问题...
当我将手机连接到我的电脑并运行项目wirh运行为 - > Android应用程序程序从我的手机启动,但logcat在eclipse中是空的: - /
在logcat中,我只收到一条消息:

I read many threads about that but nothing solved my problem... When I connect my phone to my computer and run the project wirh "Run As -> Android Application" the program starts on my phone but the logcat is empty in eclipse :-/ In logcat I only receive this one message:

Unable to open log device '/dev/log/main': No such file or directory

我需要做些什么来实现?

What do I have to do to get it worked??

推荐答案

我使用Slim Rom(4.2.2,build 5)mod,默认情况下禁用日志记录。
您必须要去设备上的 / res / script 目录,并找到相关的脚本进行安全日志。在我的情况下,它是 S30enable_logger 。对于您的自定义rom,脚本可以具有不同的命名约定(或目录) - 请考虑使用您的自定义rom ID进行检查。

I'm using Slim Rom (4.2.2, build 5) mod and they have disabled logging by default. What you have to to is to go to /res/script directory on your device and find relevant script for enablig log. In my case it's S30enable_logger. For your custom rom the scripts can have different naming convention (or directory) - consider checking it with your custom rom id.

因此,鉴于您已连接到设备通过 adb 键入您的PC终端:

So, given that you are connected to your device via adb type in your pc terminal :

adb shell 
cd /res/scripts
./S30enable_logger

然后只需重新启动您的设备并记录应该最终工作。

Then just reboot your device and log should work finally.

这篇关于LogCat:无法打开日志设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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