Debug android application on an Honor 6

Today I was trying to debug my application directly on my HuaWei Honor 6, because the android emulator is really slow and that’s a lot more fun on a brand new phone 🙂

I had some difficulties so I thought I would explain here.

  1. Activate usb debug mode. If it’s the first time you will have to unhide the Developer option menu in the settings. Go to About phone and click 7 times the build number item.
  2. Then go to the Developer options menu in the settings (it should be there now)
  3. Activate USB debuggind
  4. Now we need to install the huawei driver. It can be found here. use the numbr 65 “huawei honor 6”, at least it works for me with my L04.
  5. Install the exe
  6. install the exe only gives you the driver on your drive but you still need to chosse it.
  7. Connect your phone and choose MTP.
  8. Go to the driver Device Manager (Right click on computer > Properties > Device Manager)
  9. Right click on the unknown device you should have and Update driver software
  10. Then use Browse My Computer.
  11. Use Let me Pick.
  12. Click Have Disk.
  13. Go where you installed the driver then in usb_driver/i386 and select the file android_winusb.inf.
  14. Then you should have Android ADB interface in the list, just choose this and valid.
  15. Accept everything.

Unplug the phone and replug it. Your device should be recognized in eclipse when you starting your application. But the log are only INFO and you can get DEBUG, which is a pain. Here is how to enable debug log on the Honor 6:

  1. Dial *#*#2846579#*#*
  2. Click on ProjectMenu
  3. Click on Background Setting
  4. Click on Log Setting
  5. Select LOG on and confirm
  6. Select Dump & Log
  7. Enable Log switch
  8. Enable Lower down loggers’ priority
  9. Press Back until home
  10. Reboot the phone.

Now when you start your application from eclipse, even not in debug mode you should have all logcat log even in DEBUG mode.

Leave a Reply