I can't read the logcat from my phone. As an Android Developer, this is terrible for me. The message that I'm getting is:
logcat read failure
Looking the sources, it seems like a generic error:
Code from the source (Github, logcat.cpp)
while (!g_maxCount || (g_printCount < g_maxCount)) {
struct log_msg log_msg;
log_device_t* d;
int ret = android_logger_list_read(logger_list, &log_msg);
if (ret == 0) {
logcat_panic(false, "read: unexpected EOF!\n");
}
if (ret < 0) {
if (ret == -EAGAIN) {
break;
}
if (ret == -EIO) {
logcat_panic(false, "read: unexpected EOF!\n");
}
if (ret == -EINVAL) {
logcat_panic(false, "read: unexpected length.\n");
}
logcat_panic(false, "logcat read failure");
}
My phone is rooted and has the bootloader unlocked. I'm using stock kernel. I've no clues. Any ideas, something to try?
Thanks in advance