Enable DEBUG & VERBOSE for Huawei Android Logcat

I'm having Huawei Nova Plus I found that Huawei only prints to its Android log starting log level INFO. As per Huawei; this is done for performance optimization purposes.

Any Android developer requires logging level DEBUG & VERBOSE.

This post mainly states the trials I have done trying to solve this issue till reached a solution / workaround.

For the record my device information was:
Model number: HUAWEI MLA-L11
Build number: MLA-L11C185B131  &  MLA-L11C185B151
EMUI version: EMUI 4.1
Android version: 6.0

I found same issue in other Huawei models like GT3, Mate 8.

1- Huawei secret menu (Source link with screenshots in xda developers):
Type *#*#2846579#*#* in dialer application, when "ProjectMenu" appears -> 1.Background Settings -> 3. LOG Settings -> mark the check of "AP Log". Reboot your mobile.
Repeat above steps to access secret menu, and check the "AP Log" if you found it is still checked after reboot, your phone is ready :) otherwise try next method.
Note: It didn't work for me, maybe of a bug on Huawei.
Update: 9-Dec-2017
After several upgrades till reached:
Model number: HUAWEI MLA-L11
Build number: MLA-L11C185B341
EMUI version: EMUI 5.0.1
Android version: 7.0
The logging started working in Android Studio Logcat for all libraries as desired, but unfortunately the settings works till restart mobile, i.e. once device restarts you need to enable log checks from same menu to continue debugging.

2- Set log level for some application tags:

a- Open adb shell while your device is connected, usually located in ANDROID_SDK\platform-tools
adb shell

b- Set log level to verbose for specific tags (change below MYTAG to whatever important tag in your application)
C:\android\sdk\platform-tools>adb shell
shell@HWMLA:/ $ stop
shell@HWMLA:/ $ setprop log.tag.MYTAG VERBOSE
shell@HWMLA:/ $ start
shell@HWMLA:/ $

c- Test your application, and check logs, if it works make the above as script and set all your important tags to be VERBOSE. Downside of this script, is the need to apply it every-time your restart your phone.
Note: It didn't work for me, I don't know why.

3- Workaround using external logging framework (Timber):
a- I switched my code to use Timber (It was pretty easy refactor).

b- I made small customization to Timber.DebugTree & created a class HuaweiTree in my project. It simply switches log level of VERBOSE & DEBUG to INFO so Huawei will print it. The code is below:
package ...;

import android.util.Log;
import timber.log.Timber;

public class HuaweiTree extends Timber.DebugTree {
    protected void log(int priority, String tag, String message, Throwable t) {
        if (priority == Log.VERBOSE || priority == Log.DEBUG)
            priority = Log.INFO;
        super.log(priority, tag, message, t);

c- Plug this customization to your code, by adding it to your application class onCreate method
    public void onCreate() {
        // ... As early as possible ...

        if (BuildConfig.DEBUG) {
            String deviceManufacturer = android.os.Build.MANUFACTURER;
            if (deviceManufacturer.toLowerCase().contains("huawei")) {
                Timber.plant(new HuaweiTree());
            } else {
                Timber.plant(new Timber.DebugTree());
        // ... Continue your application ...

I hope in future if I find better solution; I will try to keep this post updated.

Update: 9-Dec-2017
 After using Huawei nova plus mobile for over a year now, I really like the phone and build quality, so as a normal user I recommend. But, as a developer, I don't recommend Huawei phones for Android development due to two main reasons:
1- Support will not answer you, I have tried every link, email, facebook page.
2- I recommend a phone with stock Android experience.


  1. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
    Security Services in Chennai

  2. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.

    Digital Marketing Company in Chennai

  3. I am not sure the place you are getting your information, however good topic.I needs to spend some time studying more or understanding more.Thank you for wonderful information I was in search of this info for my mission.

    HR Consultancy in Chennai
    Recruitment Consultancy in Chennai
    Manpower Consultancy in Chennai

  4. Really i enjoyed very much. And this may helpful for lot of peoples. So you are provided such a nice and great article within this.

    MSBI Training in Chennai

    Informatica Training in Chennai

  5. There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.

    Laser Root Canal Treatment In Chennai

    Best Dental Clinic In Velachery

  6. I do trust all of the concepts you’ve presented on your post. They’re really convincing and will definitely work. Still, the posts are too brief for newbies. May you please extend them a little from subsequent time?Also, I’ve shared your website in my social networks.
    Office Interiors in Chennai
    Home Interior Decorators in Chennai

  7. Hey Ashraff, thanks for proposing a solution to the logcat problem as opposed to just staying quiet or recommending LOG settings.

    Im having the same issues as yourself, restarting the phone unchecks all of the log settings. Funnilly enough, it used to work before! I wonder if an update screwed things up.

    Do you have any updates regarding this issue? And is your timber solution working within the Android Studio Logcat?

    1. u r welcome.

      Updates: I have installed multiple updates till now, and same issue not fixed, I'm waiting for Android 7 with EMUI 5, I hope this might help.

      Solution: yes working perfectly inside Android Studio in the logcat. I found Timber really handy utility, so even if Huawei solved the issue, I will still use this great library but after removing the override ;) I recommend u start using it in all yr incoming projects.

    2. Thanks man, I'm going to try this out. on another note, never buying huawei ever again

  8. It's like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but instead of that, this is fantastic blog. A great read. I will definitely be back.
    Office Interiors in Chennai
    Interior Decorators in Chennai

  9. you are posting a good information for people and keep maintain and give more update too.
    seo company in india

  10. Someone essentially lend a hand to make severely posts I would state. That is the very first time I frequented your website page and thus far? I surprised with the analysis you made to create this particular submit incredible. Fantastic job!
    Logistic ERP
    Fleet Management Software
    Warehouse Management Software
    Human resources management software

  11. I read so many articles in your blog. All are awesome. I learnt a lot of new things with help of your blog. Thanks for sharing this wonderful information.
    Web Development Companies in Bangalore
    Website Design and Development Services in Bangalore
    ECommerce Web Design Company in India
    Outsource magento ecommerce services india

  12. Wonderful blog and very useful.Thanks for sharing this valuable information...
    SAP Basis Training in Chennai


Enable DEBUG & VERBOSE for Huawei Android Logcat

I'm having Huawei Nova Plus I found that Huawei only prints to its Android log starting log level INFO . As per Huawei; this is done ...