Skip to content
Advertisement

No USB devices or running emulators detected, despite ADB detecting the phone successfully

I know this question was asked a lot, but going through dozens of answers none have been helpful. I’m attempting to run a simple hello world on my Huawei Mate 9 using Android Studio 2.3.1 (The APP is 4.X Jellybean API) running on Debian (Jesse).

-I have enabled debugging options on the phone (I can see developer options)

-Installed the SDK and ADB through the Android Studio.

-Device is being detected successfully on ADB devices.*

-I have tried MTP and PTP (currently it’s on PTP)

Despite all different combinations I don’t see my phone ready for uploading my program.

*With android studio closed: when I check adb it usually never finds the phone the first time (adb devices) but after i do kill-server and start-server, i get the unique phone ID the second time I run adb devices. Needless to say, should I run studio after the second time around when it detects it, the phone still does not appear.

Thanks

Advertisement

Answer

So after rigorous search, I’ve found the reason for incapability of finding the phone in the android select deployment target menu is due to an option within a hash code menu.

You need to dial ##2846579## (works on Huawei 7 and onwards phones) in order to find a hidden window, for me it says ProjectMenu as the activity title name, then you must pick Background Settings->Background Debug->Open then restart your phone, should you have avd,android running well on your pc and debugging options activated on your phone this is all that’s needed in order to deploy your app successfully.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement