Many Android phones now on the market, the three-party ROM package has turned off the log output by default, because of course the mobile phone's fluency.
But at the same time also for the vast number of developers to bring trouble;
1): Eclipse hint Error:
Unable to open log device '/dev/log/main '
2) Specific reasons:
The reason is because many ROM producers now shut down the log log, when the system is initialized to load the INIT.D directory script file, which will have a line of "Rm/dev/log/main" code means that the system is initialized to delete the system main main log file, As a result, the system will not brush log during operation, the performance will greatly improve;
3) Solution:
1) Enter the/system/etc/init.d/directory
2) Find the contents of all the files in the directory "Rm/dev/log/main" (without quotation marks) "Because I do not know which file, so all the general Representative is the MTK named, because now most of the system is the solution of MTK, will not make too much change"
3) Use # to annotate it, "# Rm/dev/log/main" (#代表注释掉这行代码, that is, the main log file is no longer deleted during system initialization, so there will be log brush out later)
4) Save the file, restart the machine, if you want to block again, delete step 3 in the well.
4) Problems you may encounter:
CMD in the ADB shell using the VI command to modify the text content, you may be prompted to ReadOnly (the SU command has been used or not)
This time you can consider downloading a "RE manager" application, the RE manager can be hung in the read-write mode to open the system files (if your system is root, otherwise all the above is empty talk);
The same way, go to/SYSTEM/ETC/INIT.D, use # to annotate it, i.e. "# Rm/dev/log/main"
Android Brush three-party ROM after no logcat log problem