Open DoDoENT opened 7 years ago
It can be related with Huawei devices. You may dial to *#*#2846579#*#*
and you will see a hidden menu. Go to the Project Menu > Background Setting > Log setting and define the log availability (log switch) and level (log level setting). More info here.
Good luck!
Possibly a duplicate of (or related to) Issue #142
I noticed the same issue on the Huawei P9. It's because of the blank line here:
int logctl_get(): open '/dev/hwlog_switch' fail -1, 13. Permission denied
Note: log switch off, only log_main and log_events will have logs!
--------- beginning of system
https://github.com/JakeWharton/pidcat/blob/8bd97429c063246f1d453730c124f57bd501225a/pidcat.py#L262
Locally I just commented out that check for empty lines. I'm not sure if it's actually needed for some use case or device, but if it is, the fix could be to only actually break on empty lines after the --------- beginning of system
I have excatly the same issue, on Mate9 Pro. And thanks to @teslacoil 's good catch. That's the right point. I have forked the project and added one argument so that we can disable the break on empty line feature if we needed. Let me know if I need to create a PR to this repo.
pull request #145 fix this
I tried running like this:
This command works for me for all other devices, but not for Huawei Honor8. Logging in Android studio works for this device.
Here is an example log of
adb logcat -v brief
from that device: