Connecting VitrualBox VM to a Physical Android Device over adb
Tags:androidadbhackingsetupmobileremote-machine Related to:virtualboxmobexlerbug-bountylab See also:
Summary
My notes on how to connect Mobexler VM on VirtualBox with a physical android device
Steps to connect
- Start an adb server on the machine(host) that is connected to the physical device using the command
adb -a -P <port number> nodaemon server
. Default port being 5037 - Make sure that the VM and the host is connected to the same network for this to work. I used Bridged Adapter on the VBox VM.
- Note the IP address of the host machine.
- Use the following command inside VM
adb -H <Host IP> -P <Port Number> devices
- You can see the connected devices.
- Use other adb commands by replacing
devices
References (optional )
Deploy and execute an android application on a device connected to a remote system