---
title: "Unable to open log device '/dev/log/main': No such file or directory"
author: "no_bao"
date: "2014-07-01T10:52:32Z"
tags: []
categories: ["移动开发"]
slug: "unable-to-open-log-device-dev-log-main-no-such-file-or-directory"
draft: false
lastmod: "2014-07-01T10:52:32Z"
id: 2087060
url: "https://it586.iteye.com/blog/2087060"
---

刷了新的rom  不过调试的时候发现打不出来log了。 发现下面的问题 

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

解决方法:   
1.拨号盘中输入：    \*#\*#2846579#\*#*  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__   
2\. 然后看到            MMITEST\_II   
                             ProjectMenu   
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__ 

3\. 点击 ProjectMenu&gt;&gt;后台设置:

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__

4. Log 设置-&gt;LOG开关 -&gt;开

   Dump &Log -&gt; 勾上全部的   
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__ 

5. Restart device.

 

引用地址：http://my.oschina.net/u/213372/blog/55774