- Install VirtualBox. I have version 4.2.10.
- Follow these instructions to create a new VM and install android-x86 on it.
Bluetooth support; Android-x86 supports Bluetooth connections (if your PC has Bluetooth functionality), which means you can pretty much connect any Bluetooth device to your Android-x86 emulator and use it with it. Android emulator does not have bluetooth capabilities'. You can only use real devices. The functional limitations of the emulator include: No support for placing or receiving actual phone calls.
Bluetooth Configuration
- If you use a Bluetooth USB adapter, follow these instructions to access it from the guest OS (I stopped at “Verification Under the Guest OS”).
- If you use a laptop’s built in Bluetooth device, this should do the trick.
- Enable Bluetooth on the guest OS, make sure you can see and pair with whatever device you want.
Network and Remote Debug Configuration
- Follow these instructions to enable internet connection on your VM.
- Find the IP of your VM by goint to the terminal (Alt+F1 and Alt+F7 to toggle) and running netcfg.
- On the host machine, navigate to your android installation folder > platform-tools and execute “adb connect IP” where IP is the IP of your VM.
Now you can see your device in the devices view in eclipse and play with it to your heart’s content.
Other nuisances
Android Emulator With Bluetooth
- If the cursor is not responding when you start your machine, go to Machine ->Disable Mouse Integration. You will have to click on the VM screen to interact with it and press “host” key to escape.
- Seems like the current version of Android-x86 has a bug that prevents it from “waking up” when it is locked. You probably want to disable screen locking so that you don’t have to restart the machine after every time you go to the loo.
- You can configure the “adb connect” command as an external tool in eclipse so that you can run it inside your IDE:
- Click the little arrow near the external tools button, and choose “External Tools Configurations…”
- Click “new”
- Name your configuration (i.e: “Remote connect adb”)
- Location: path to your adb.exe
- Working Directory: platform-tools folder in android installation folder
- Arguments: connect IP
Alternatively, you can use ${string_prompt} instead of IP if you want eclipse to ask you which IP you cant to connect to each time you run the command. - Click “Apply”
Android Emulator Bluetooth Passthrough
And that’s it.