How to connect Android device to Azure VM with Visual Studio - android

I want to connect my Android device to Azure VM with Visual Studio so I can debug and deploy an app. I created a VM by using a template that includes VS. On the RDP file, I edited settings so that all ports are redirected to the VM. This works fine with hard drives, but I can't get my Android device to show on the VM. Consequently, VS isn't aware of the device. USB debugging on the device and developer mode on the Win10 VM are enabled.
https://stackoverflow.com/a/29611391/812582
I checked all boxes on the above screenshot.
Are there any tricks I need to do to get this working?

According to your description, based on my understanding, it sounds like you want to map the Android device host USB to the remote Win10 VM over network for implementing remote debug.
There are some device driver software which can help you access remote USB device via USB over network. Meanwhile, I searched an existing SO thread Using remote host's USB port as local USB (Linux and Win) is very similar with your needs, but the USB/IP project be mentioned in the thread seems to be not suitable for your scenario which is between two Windows OS.
Suggest that try to use some business software like USB over network if you will.
Hope it helps. Any concern, please feel free to let me know.

Related

Development Environment for mobile debug

I currently working on a Xamarin .NET Core application, to debug my entire application, I use a VM with 32Gb to run back-end, web-service and web client to debug end to end.
But I want to debug my Xamarin app too. I can't debug over wifi, because the hotspot isn't accessible. I checked solution to plug directly on the cluster where my VM is hosted, however it is really convenient.
Hypervisor is an Esxi.
It's possible to route ADB flux from a physical device through a RDP connected VM ?
Answer
We found a software that bind USB over RDP on Windows, unfortunately, the software licence is not free but has a free trial period.
You need to install the workstation side on your physical computer, and the server side on your VM.
If someone find a opensource alternative working well as this client, he can share it here.

Can android be the host to a USB device?

I have a USB device and want to build a nice graphical interface for it. Is it possible to connect the USB device to Android, have Android be the host, and communicate with it and build a UI? If so, which libraries would allow me to do this? And if not, what alternative workarounds are there? I would prefer a wired connection for reliability.
It's possible. I have personally used an USBc to USB cable to hook up everything from a keyboard and mouse to an external monitor. Some phones/devices may not have a data port on the external USB port or the chips needed for external monitors but android itself has USB drivers built in.
I think this question remained unanswered for so long because it's so easy to google the android developer page that should answer your question in specifics here. It's the developer guide for using android as a USB host.

Mobile phone from a Client Computer to a Virtual Machine in the vSphere Web Client

As per here it is possible to connect USB devices on a computer and a VM running on a remote server to pick it up through vsphere.
My questions is, how can I know what hardware is compatible with this?
I want to have the Android studio on a server and have the phone plugged to my laptop would this work?
Apparently there is no way of doing this natively on VM (yet) but I found a work around, big work around here.
In essence create a VM on the computer to server the USB (client) put linux on it and install USB/IP as server later go to the VM on the ESXi host and install the USB/IP client.

Android development setup when using USB Host mode

I am a relatively new Android developer but have gotten pretty familiar with the SDK, using LogCat, etc. However, I'm now working on an app (for a Galaxy Tab 7-plus) that utilizes USB Host mode to talk to an external USB device and I've run into an issue.
My question is: What is an ideal environmental setup that will allow me to take advantage of all of the SDK tools (adb, debug, LogCat, DDMS, and so forth) when I am unable to be connected to my PC via USB (since the external USB device my tablet is talking to is using my tab's only USB port)?
Is there an emulator available somewhere (I've searched in vain) that will allow me to simulate USB Host mode using a USB port on my PC?
Do I need to go to some type of on-board logging app?
Is there some kind of 30-pin splitter available so I can connect to both the external device and my PC? (I'm guessing this is impossible, but I'm a hardware idiot... in addition to a run-of-the-mill idiot).
Thanks in advance for your help!
-KR
As I posted in the comments, If the tablet is rooted you can use AdbWireless (Application on the Market)
This can also be done without rooting. Google/Android officially supports this, as described at the bottom of this page:
http://developer.android.com/guide/topics/usb/index.html
But AdbWireless is easier if you are rooted.

Android USB debugging with PC internet connection

I'm having Samsung Galaxy S phone.
I want to debug my application, which needs internet connection.
can I debug my app with android device, sharing the PC internet connection through USB?
I can not use WiFi.
Please help me out. Thanks in advance
Getting the internet from your PC to your android device is called reverse tethering. It is tricky cause it s not a built in feature. Some solutions exist if your a linux user :
http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Previous link is dead, found a copy there:
https://web.archive.org/web/20120320173806/http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Don't know if it's still relevant the question is old considering Android lifetime.
If you are not, well I never find a way.
There are two current (2019) tools that do this job well:
gnirehtet
This project provides reverse tethering over adb for Android: it allows devices to use the internet connection of the computer they are plugged on. It does not require any root access (neither on the device nor on the computer). It works on GNU/Linux, Windows and Mac OS.
It's written in Rust and Java; you can choose the server component. It requires adb on the host, and at least Android 5.0. The device itself will then be managed by the program.
SimpleRT
Reverse Tethering utility for Android.
Allows you to share your computer's internet connection with your Android device via a USB cable
This one requires no adb and no rooting, but you have to build the Android APK file yourself or download a release version.

Categories

Resources