How to get logcat on a Huawei phone

If you’re using a Huawei phone, enter this command to enable logs. Otherwise, the system will block most of them.

Open the dialer and enter *#*#2846579#*#*

Go to ProjectMenu > Background settings > LOG settings, and enable the log switch.