怎么做,如果制造商移除/ dev下的文件夹/日志文件夹中? [意味着没有LogCat中] [英] What to do if manufacturer removed folders under /dev/log folder? [means No LogCat]

查看:192
本文介绍了怎么做,如果制造商移除/ dev下的文件夹/日志文件夹中? [意味着没有LogCat中]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Andr​​oid设备中,在日志文件夹中的麻烦的的/ dev 不可达,或者甚至不存在。

I'm in trouble with my android device in which log folder under /dev is unreachable or maybe even does not exists.

$ pwd
pwd
/dev
$ cd log
cd log
cd: can't cd to log
$

所以LogCat中是外的服务,我无法查看设备的标准输出或标准错误日志中DDMS。

So LogCat is out-of-service and I cannot view device's stdout or stderr logs in DDMS.

我GOOGLE了一点点,试图找到一些信息,有关此问题:

I googled a little bit and tried to find some information for about this problem:

  1. http://developer.android.com/guide/developing/tools/adb.html#alternativebuffers

查看输出和错误的话题似乎是有用的,但这个线程说,这是不支持的:

Viewing stdout and stderr topic seemed to be useful but this thread says it is unsupported :

<一个href="http://stackoverflow.com/questions/5499202/why-is-redirecting-stdout-stderr-on-android-not-working">Why被重定向标准输出/标准错误在Android上不工作?

下面是另一个有同样的问题:

Here is another one having the same problem:

<一个href="http://stackoverflow.com/questions/6941710/unable-to-open-log-device-dev-log-main-no-such-file-or-directory/6993662#6993662">"Unable打开日志设备的/ dev /日志/主:没有这样的文件或目录&QUOT;

我找到了一个临时解决方案,以转储我的日志在设备上的文件手动,但和往常一样,我不能监控系统只是我的应用程序日志。

I found a temporary solution to dump my logs in a file on device manually but as usual I cannot monitor system just my application logs.

有没有什么解决方案,您可以建议?任何方式重定向输出和错误日志文件,控制台等。?

Is there any solution you can suggest? Any way to redirect stdout and stderr logs to files,console etc.?

任何形式的帮助将是AP preciated。

Any kind of help will be appreciated.

推荐答案

RUNO NesrE - 我终于找到解决方案,这个

RunO NesrE - I finally found the solution to this.

有一个最近的文章在XDA-Developers论坛为不同的华为手机,同样的问题,它有一个修复。

There is a recent post on the xda-developers forum for a different Huawei phone with the same problem and it has a fix.

http://forum.xda-developers.com/ showpost.php p = 17774398&放大器; postcount = 93

它的工作一种享受我的华为声波(U8650)。

It worked a treat on my Huawei Sonic (U8650).

这篇关于怎么做,如果制造商移除/ dev下的文件夹/日志文件夹中? [意味着没有LogCat中]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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