How to connect Ubuntu that on Hyper-V to phone that connected using USB?

ronil21 0 Reputation points
2023-05-09T17:26:58.93+00:00

I google this and all the solutions I found are not working (chatGPT also doesn't know).

I use Ubuntu over Hyper-V with the android studio to develop something on my Android phone. I can't find a way to connect the phone to the Android studio ( that is on Ubuntu) for run debug

any suggestions?

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-05-10T10:42:43.4066667+00:00

    Hello there,

    In Ubuntu you have to create a rules file called 51-android.rules.

    If you have tried many terminal commands to connect your physical device to android studio in ubuntu and you failed to connect try this :- Connect your device and change your USB preference(device notification) to PTP,android studio will detect your device.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.