10

I've been trying since hours to connect my Huawei P10, Android 8.0.0 with my Android Studio 3.0. But it doesn't work. It won't get shown either in adb devices -l and not in the Android Studio Select Deployment Target window. But my computer and the smartphone says it is connected. I chose every mode, only charging, file-transfer and photo mode. Every mode doesn't work. And yes, the USB-Debugging mode is activated and even for only-charging. I tried following this guide https://developer.android.com/studio/run/device.html, but yeah... doesn't help. The charging cable is a USB-C cable which you get from buying the huawei p10, so I would say it's the original one. And I tried 4 USB Ports. 2 USB 3.0, 2 USB 2.0. All say it is connected, but not with Android Studio or with adb. Weird. btw, I never received the RSA confirmation like it should.

Cœur
  • 37,241
  • 25
  • 195
  • 267
smaxxx
  • 139
  • 2
  • 3
  • 12

8 Answers8

15

Please follow these steps to debug your Huawei P10/P10 Plus.

  1. Turn on your Huawei P10/P10 Plus, go to Settings.

  2. Under Settings option, select About phone.

  3. Scroll down the screen and tap Build number several times until you see a message that says "You are now a developer!".

  4. Select on the Back button and you will see the Developer options menu under Settings, and select Developer options.

  5. Enable "USB debugging" mode, there will be a pop-up "Allow USB debugging?", click "OK".

  6. Connect your phone to computer, you will see "Allow access to device data?", click "YES, ALLOW ACCESS".

Image 1

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
Rizwan Miraj
  • 159
  • 1
  • 2
  • Just before this: *https://www.digitaltrends.com/mobile/how-to-get-developer-options-on-android/* – ΩlostA Oct 14 '19 at 15:28
12

I use Huawei nova 2i. There are 2 steps

  1. Enable debugging mode on phone.

  2. Install driver from that phone (auto play when you connect your phone to pc).

enter image description here

  1. Then you can try run debug from android studio with your phone

enter image description here

Hope it will works!

Piseth Sok
  • 1,789
  • 1
  • 20
  • 24
9

Installing Hisuite from

https://consumer.huawei.com/minisite/HiSuite_en/

works for me

Andrés Planás
  • 103
  • 1
  • 6
  • This enables the certificate agreement (on your phone side).Very good tip. – Frédéric Dec 24 '19 at 11:31
  • FYI, Chrome won't let you download from this link anymore, use Firefox to download instead. – Hank Nov 05 '20 at 14:23
  • Thank you. It's a bit of a drag, since all this stuff should work via your phone settings, but this saves me the headache and frustration of constantly reconnecting. And prevents an unexpected start of the Android ($%&*#!!) emulator. Next phone will be a Samsung again. – Danny E.K. van der Kolk Jan 14 '21 at 21:49
3

I know that it's too late but can be helpful for someone who desperately trying to connect Huawei phone for debugging (In my case it was Huawei P20) If you cant see Huawei phone in Android studio and you don't see any alert when you connect your device just check "Developer Options" -> "Select USB configuration", by default its "Charge only" It's can be your case dear searcher =)
And one more, just try to find another cable because of my default phone cable didn't work properly (I don't know why they put cable which can only charge my phone but not to debug)

Volodymyr Bilovus
  • 654
  • 2
  • 7
  • 20
2

Follow these simple steps :

First you need to turn on Developer mode. To turn on developer mode go to Settings-> About phone -> click Build number 7 times .You will see a message "You are now a developer".

Next Steps: Find your Developer option. It Should be in System & update -> Developer Options

  1. Turn on USB debugging
  2. Select USB configuration -> Choose Media Transfer Protocol(MTP)

Then you might see an alert about "Allow USB debugging" Click OK. You are good to go. If these steps don't help you, please change your cable.

1

Plugging in the USB-C cable the other way around solved the issue for me.

Even when using the original Huawei cable. This seems like a pretty big fail to me.

David Schumann
  • 13,380
  • 9
  • 75
  • 96
0

Fix:

Installed https://devfiles.co/download/zygGeX8N/Huawei-MediaPad-10-FHD-USB-Drivers-TeamAndroid.zip these drivers, extracted them into the adb folder and installed HiSuite (only necessary for Huawei people). Works now.

smaxxx
  • 139
  • 2
  • 3
  • 12
-1

I am install Hisuite and it WORK for me.

Thank for all.

JavaScrap
  • 19
  • 2