It takes me some time to find out how to enable logcat output for Huawei Android devices.

The method is simple

There are a tempway and a permway

the temp way is :

echo 1 > /sys/kernel/logger/log_main/enable

echo 2 > /sys/kernel/logger/log_main/priority

and the perm way is to modify init.rc file which is located in ramdisk

This way is harder than the temp way.you need to unpack the boot.img to get the ramdisk.then unpack the ramdisk

and modify the init.rc file with this:

write /sys/kernel/logger/log_main/enable 1

write /sys/kernel/logger/log_main/priority 1

in the right place of the init.rc file.

then repack ramdisk --> repack boot.img

then flash the new boot.img to your phone.

That's it. all set.

sweet log cat is back to you.

This blog post was posted to Tenfar's Tech Blog on 星期五 十二月 31st, 2010 at 6:23PM
 

Leave a Comment

You can use bbcode in the comment: e.g. [b]This is bold[/b], [url]http://www.tenfar.com[/url], [code python]import this[/code]
Preview Posting...
Previewing comment, please wait a moment...
Tenfar Lin

Hi! My name is Tenfar Lin. I am an abashed geek, an author, a hacker and a Android System expert -- amongst other things!

You are reading my Tech Blog . Thanks for visiting.

Search for Posts
Popular Tags
 
Archives
2012
 
Recent Comments
upgrade to SBF FLASH 1.19 (mbm)
Links
 
© 2010 Tenfar Lin.

Power by technoblog blog, design by Will McGugan