Development Environment for mobile debug - android

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.

Related

How to mitigate local network problem with Expo

Expo is crashing when using an Android emulator on my Ubuntu machine. So what I want to do is upload the app to my real Android device using Expo. But when I do this using the local wifi network, I get:
Perhaps I should just physically tether my phone to my Ubuntu laptop instead of going through Wifi? What about bluetooth to upload the app to the phone from my Ubuntu machine?
In the tutorial there is an explanation of how to handle this: https://docs.expo.io/get-started/create-a-new-app/
Is the app not loading on your device?
First, make sure that you are on the same wifi network on your computer and your device.
If it still doesn't work, it may be due to the router configuration — this is common for public networks. You can work around this by choosing the "Tunnel" connection type in Expo Dev Tools, then scanning the QR code again.
🐢 Using the "Tunnel" connection type will make app reloads considerably slower than on "LAN" or "Local", so it's best to avoid tunnel when possible. You may want to install a simulator/emulator to speed up development if "Tunnel" is required for accessing your machine from another device on your network.
An aside -- I've opened an issue here to discuss adding an easy and fast way to connect to your device under these circumstances.

How to connect Android device to Azure VM with Visual Studio

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.

How to test apps wirelessly in Xcode or Android Studio?

What's the fastest and most effective way to test applications via bluetooth or Wi-Fi rather than a standard USB connection in Xcode and Android Studio?
I could transfer the APK file to Google Drive and then test it, however I'm looking for a much faster method which will also work for Xcode.
Will the live debugging data show up fast enough or will there be a lag between the workstation and test device as data is transferred between them?
In Xcode's Help search for "Pair a wireless device with Xcode".

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.

Connecting to host from Android via USB

Okay so here is the background of this problem. I commute a lot on the train and build a lot of PHP web apps optimized for mobile devices. I would like to develop code on a netbook (Running Ubuntu Server) with no GUI. All development done using Vim directly on the netbook.
I would like to connect up my Nexus 4 to the netbook via USB and "connect" to the netbooks web server in the chrome browser. I can only use USB for this since I won't be having any reliable internet access.
I understand that using adb from the Android SDK, you can forward a port from the netbook to the phone. However, I need to do it the other way around.
For example:
Run a web server on the netbook on port 4000
Connect phone via USB
Somehow forward port 4000 on the phone to port 4000 on the netbook
Open chrome browser on phone and go to localhost:4000.
I am aware of the "reverse port forwarding" method that is described in the Google docs at https://developers.google.com/chrome-developer-tools/docs/remote-debugging. However, this requires an installation of chrome on the netbook. I don't want to have to install an entire GUI just for this.
Update
With regards to the above, I have found https://groups.google.com/a/chromium.org/forum/m/#!topic/chromium-reviews/7mE61hDcFdA. Does this mean I could install Chrome on the netbook (even though I don't have a GUI) and port forward via CLI?
An APP might do the job here. If you know some java you might be able to pull it off. Basicly you tunnel a connection through adb, then use an app as proxy and a small program on the computer. There might be an easier way though

Categories

Resources