I bought a huawei p30 for development purposes. So the first thing i did, it is enable development mode, enable adb over usb, then type adb devices
... nothing!
When I enable adb over usb, the setting is not saved! If I go back, and then enter the developer menu, it's disabled again!
I found this workaround:
- Dial
*#*#2846579#*#*
- Select background
- Select USB mode
- Select "Google mode"
- Open settings
- Find development options
- Enable ADB over USB.
Now it works... for a little while! Just unplug the cable for 1 second, and I need to repeat all the steps again! ADB disabled, USB mode reverted to "huawei mode", and so on! This is ridiculous! I bought this device for development purposes, it should have a permanent way to enable adb, as expected in each single Android device since version 1.0. How devs can debug huawei devices if each time enabling adb is such an hassle???
I must be missing something, how to permanently enable adb on (newest?) Huawei devices?