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.
Leave a Comment