Huawei, logcat not showing the log for my app?

huawei debug code
delete dumpstate/logcat huawei
log d not working
android util log not showing
android studio logcat not showing
huawei background debug password
logcat not showing debug messages
what is ap log settings

OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy Nexus or Nexus 7 then for the same app (same APK even) log is displayed.

The Huawei Ascend is running Android 4.1.1, it has USB debugging switched on in developer options. This occurs for logcat run from either the command line or from IntelliJ. And I'm making sure that the correct device is selected - in fact I'm only plugging a single device in at a time. I've tried restarting adb, clearing it's buffer etc

I can see that the app is starting on the Huawei, I even get system logs showing that the Activity has started. But unlike on the other devices I get no app log in the Activity#onCreate (or from anywhere else).

08-08 20:55:44.050: INFO/WindowManager(431): Switching to real app window: Window{41ae8780 au.com.xandar.wirelesstiming.timekeeper/au.com.xandar.wirelesstiming.timekeeper.TimeKeeperActivity paused=false}
08-08 20:55:44.180: INFO/ActivityManager(431): Displayed au.com.xandar.wirelesstiming.timekeeper/.TimeKeeperActivity: +387ms

How can the application log not be getting delivered?

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, OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy  Huawei, logcat does not present the log of my application? OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy Nexus or Nexus 7 then for the same app (same APK even) log is displayed.

For Huawei with Android 8.0+

we must dial the code: *#*#2846579#*#*

and selecting the option AP Log will be enough to display the messages in the LogCat.

Huawei, logcat not showing the log for my app?, OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy  Huawei Phones Disable Logcat, here’s how to Restore Access. While I was helping XDA Recognized Developer and fellow Portal Writer GermainZ debug a new app we’ve been working on (which we think

If any one having Letv Phone (LeEco Le Max 2 or 1) above solution won't work. Try the below USSD. Fig.1 for reference.

Press Dialer *#*#76937#*#*

Select "Enable All Logs"

Huawei, logcat not showing the log for my app?, Huawei's Android phones disable logcat, here's how you can restore access to logging so you can better debug your Android app. On my phone, I went ahead and installed MatLog by XDA Junior Member to set up a filter to even begin debugging, but MatLog was showing me only a handful of lines. I am using Android Studio and wanted to see if I could get "prints" or logs from my app, which would help later in debugging of more involved apps. My minSDK API is 9 and targetSDK API is 22. So, I

I gave up.

Log.d(TAG, msg);

Try this.

Log.wtf(TAG, msg);

work for me.

Huawei Phones Disable Logcat, here's how to Restore Access, I cannot see my kony.print() logcat logs on my test device (Huawei Mate 10 lite). I tried Is there any special config for this huawei device? It can show on logcat those that have "art" tag, but not the kony.print ones which are "StandardLib" A question about notification badge count in apps launcher icon. Huawei, logcat not showing the log for my app? android, android-studio, adb, logcat. asked by William on 11:00AM - 08 Aug 13 UTC. 1 Like.

I have a HUAWEI Y3 II aka LUA-L21.

The accepted answer didn't work for me. It led to some MTKLogger settings screen, which is different than described in the answer, and didn't help at all.

My solution
  1. Dial *#*#2846580#*#* (please note this code is different from the one in the accepted answer)
  2. You just entered a settings screen called EngineerMode (again, different from accepted answer's ProjectMenu)
  3. In the first Telephony tab, click the Log Control item
  4. Activate both switches (set Mtklog control to catch all log and adb radio log to catch radio log by adb)
  5. Back in the previous screen, swipe to the Log and Debugging tab
  6. Open Debug Utils
  7. Change Debug Level from User Mode to Engineer Mode
  8. For good measure, restart your phone
Screens

Changing Log control

Changing Debug utils

Additional notes

Just to clarify my original problem; logcat was showing some of my app's log entries, just not my own messages - I saw entries belonging to my process com.example.myapp, but never anything I was printing out myself, in my code, using Log.d("TAG", "hello world");

There was plenty of stuff like this:

4260-4270/com.example.myapp I/art: Debugger is no longer active
4260-4412/com.example.myapp I/System.out: [CDS]rx timeout:1
4260-4412/com.example.myapp D/NativeCrypto: doing handshake ++
4260-4603/com.example.myapp D/OpenGLRenderer: Flushing caches (mode 0)
4260-4603/com.example.myapp D/Surface:  Surface::disconnect(this=0xb85285d8,api=1)
4260-4260/com.example.myapp D/ActivityThread: ACT-STOP_ACTIVITY_HIDE handled : 0 / android.os.BinderProxy@2333cbdf

...but never anything like this:

4260-4603/com.example.myapp D/MainActivity: hello from onCreate!

The above steps solved the issue for me.

How can I see LogCat logs using Huawei device, and you will see a hidden menu. Go to the Project Menu > Background Setting > Log setting and define the log availability (log switch) and  Sometimes LogCat section on Android Studio does not show up application or any of the system logs, you can fix this issue by simply following the below steps : Go to Tools -> Android -> Android Device Monitor (DDMS) Now you would see Devices tab at the right side, you would see a view menu icon, just click on it and Reset adb

Huawei, logcat not showing the log for my app – Pupli, I can make apps fine, but I never see the print lines appearing in the console. Huawei, logcat not showing the log for my app? android  The Logcat window shows the log messages for the selected app, as selected from the dropdown lists at the top of the window, as shown in figure 1. Figure 1. Logcat window. By default, logcat displays just the log messages for your app running on the device. To change this default, see how to filter logcat messages.

Println not working - Processing for Android, Logcat is showing all logs: Log.i(), Log.e() but not Log.d(). If I switch to another Can't enable DEBUG & VERBOSE for Huawei Android Logcat. I'm having  Using Log.wtf is basically like using Log.e, only more severe. So this is not really an improvement over what the question already presents. The OP is trying to get logcat to show less severe log levels, D and V. – LarsH Jun 1 '17 at 21:16

Sony, logcat not showing the log for my app? - android, Huawei, logcat not showing the log for my app? [ https://stackoverflow.com/​questions/18124334/huawei-logcat-not-showing-the-log-for-my-app ]. Logcat won't display Log.d messages ; sendUserActionEvent() is null ; LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included ; Huawei, logcat not showing the log for my app?

Comments
  • Maybe you've applied a certain filter in the LogCat output - go check it out.
  • Possible duplicate of Why doesn't logcat show anything in my Android?
  • @CamilStaps because this problem is specific to Huawei phones.
  • That doesn't really matter, the point is that it has been answered elsewhere already.
  • @CamilStaps This question has not been answered elsewhere. Hene the number of people that it has helped compared to the other.
  • Works on the Honor 7 too, but the settings seem to be different. From my short testing session I think it works roughly like this: AP Log: Enable app logging in general, CP Log: Enable debug and verbose messages. Restart doesn't seem to be necessary.
  • Great! Works on Huawei Honor 7 as well
  • Great, works on Huawei P9 Lite, even without restart.
  • Tried on Honor 8: the menu is slightly different, you have to choose between AP Log, Charge Log and Sleep Log. Tried different combinations (with consequent restart) with no success =(
  • No need to reboot .. actually rebooting reset that settings .. on P9 lite. +1
  • This does not work on the Huawei ECO phone. Any tips? Model #: LUA-L23
  • @charlesfranciscodev have you tried #*#2846579#*#. As mentioned in above answer
  • Thanks. Working with LeECO x527