Huawei, Logcat Not Showing the Log for My App

Huawei, logcat not showing the log for my app?

OK, since I had another Huawei Ascend I ran into the same problem. This time I have the exact answer. Follow these instructions (from denispyr's answer on Why doesn't logcat show anything in my Android?)

Dial

*#*#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).

And then make sure you restart your phone.

Please note this probably only applies to Huawei phones.

Also note that if you're on a Huawei tablet (e.g. MediaPad M3), instead of dialing, you launch the Huawei Calculator in landscape and enter ()()2846579()().

Logcat not showing errors from my Huawei P9 phone

Huawei disables LogCat and any access to the logs of your phone. You should go to a hidden menu where you can enable these functions.

  1. Open your Dialer app and enter the following code: *#*#2846579#*#*.
  2. Enter the Background Settings page.
  3. Click on “Log Settings
  4. Check all 3 options to enable full logging.
  5. Ignore the "will affect performance" warning.
  6. Reboot the phone.

This helped me, hope it will help to you, too.

Source: https://www.xda-developers.com/huawei-phones-disable-logcat-heres-how-to-restore-access/

Logcat not displaying my log calls

When using Eclipse, in the DDMS perspective, make sure the correct device (propably emulator-xxxx) is selected and highlighted. Only then will you get the logcat output in the logcat view.

Also, the Android plugin is a bit quircky, and sometimes only shows the last line in the logcat view. If this happens, try to clear the log. After that, you should get all the log entries again (works for me anyway).

Logs not showing in HUAWEI TIT_AL00

Huawei has a model-specific logging system and that needs to be turned on before debugging in order to get the application and system logs in your LogCat. Today I have tested in LUA-L21 following this and succeeded to get the logs.

Android Studio Logcat not showing logs

Sample Image

In my case in Android 2.2, for some reason, Firebase was selected by default in the dropdown box marked above. So logs didn't drop. I just needed to change it to No Filters. Then it worked.

I even tried restarting the logcat, that didn't work too. No Filters did the magic.

Hope this helps someone.

Edit:
You can as well select Show only selected application for logcat to show only the current debugging process, i.e your app.

Cannot Find the Reported APM Logs on the Huawei Devices

I checked the APM documentation and found out how to access the logs:

Open the AndroidManifest.xml file of the app, and add the meta-data element to the application.

<application>  
<meta-data
android:name="apms_debug_log_enabled"
android:value=" true" />
</application>

After the APM debug log function is enabled, you can use the Logcat log filter function com.huawei.agc.apms or apms to view the logs.



Related Topics



Leave a reply



Submit