Android Brush three-party ROM after no logcat log problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.