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.
- Open your Dialer app and enter the following code: *#*#2846579#*#*.
- Enter the Background Settings page.
- Click on “Log Settings”
- Check all 3 options to enable full logging.
- Ignore the "will affect performance" warning.
- 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
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
How to Build an Executable for Android Shell
Which Is the Best Way to Add a Button
Web Colors in an Android Color Xml Resource File
How to Determine Device Screen Size Category (Small, Normal, Large, Xlarge) Using Code
Where Is Android.Os.Systemproperties
Where Is the Layout Preview in Android Studio
Android Facebook Sdk 4 in Eclipse
Android Sample Bluetooth Code to Send a Simple String via Bluetooth
Error Android Emulator Gets Killed in Android Studio
Best Method to Download Image from Url in Android
Android 6.0 Marshmallow. Cannot Write to Sd Card
Error Opening Supportmapfragment for Second Time
Android Studio 0.4 Duplicate Files Copied in APK Meta-Inf/License.Txt
How to Dynamically Set the Position of View in Android
How to Draw an Overlay on a Surfaceview Used by Camera on Android