Rolling your own Android Emulator

In certain situations the emulators provided just don’t cut it.      It is actually relatively simply to create your own by just using an x86 image of Android.   It is also possible to add additional features to the emulator for testing by virtue of daemons installed.


Download Android X86 iso image of choice from


Boot ISO in Hyper Visor of choice. (Android will work in VMWare, VirtualBox and Hyper-V) 


Install any GPS, Accelerometer, orientation etc spoof daemons of choice


Android Debugger Bridge  (ADB)


Once Android is booted (first time), run terminal (on Android) and issue commands below

o setprop service.adb.tcp.port 5555

o stop adbd

o start adbd

o or adb tcpip 5555 


From the development PC (issue commands via CMD – adb can be found in platform-tools folder in you Android SDK folder):

o adb connect [Android emulator ip address]


If the ip not known from Android terminal command: (busybox ifconfig)  Connect as normal from Visual Studio.   Should appear as Hyper Visor name, ie VMWare etc



Creating an OSX Virtual Machine

For creating a test OSX environment, it is possible to run it within a virtual machine.


On physical mac
 Download OS Mavericks from the App Store
 Insert a USB Drive of atleast 8GB

Use Disk Utility
 Choose USB Drive
 Choose Partition. (Partition Layout: 1 partition)
 Under options choose master Boot Record
 Choose Format (Mac OS Extended (Journaled)
 Click Apply
Use UniBeast
 Download UniBeast:
 Run Unibeast
 Choose USB Drive
 Select Mavericks 10.9
 Continue
 This takes a while (Not less than a minute :))
On Windows Host:
To Temporarily disable HyperV as your primary Hyper Visor:
Open Command Prompt:
 bcdedit /copy {current} /d “Disable Hyper-V”
 bcdedit /set {GUID Provided from previous command} hypervisorlaunchtype off
For Windows 8
 Win Key – C
 Settings
 Power
 Hold Shift and Restart
 Wait for Boot Screen
 Choose Other Operating System
 Disable Hyper-V (Remember to do this every time you want to use Virtual Box or
VMWare instead of HyperV)
Install Virtual Box or VM Ware
For VMWare:
 Install VMWare Workstation 10 (the free VMWare Player will work aswell to
playback VMs)
 Install Hackintosh Template for
 Create a Virtual Machine with Workstation 10 Compatibility hardware
 Install Operation System Later
 Choose OSX 10.9
 Add desired Hardware with at least 40 gig disk space allocated to the Virtual Hard
 Run NAT preferably
 Insert USB Boot Drive Created on Mac into PC
 Boot Virtual Machine
 Under VM\Removable Disks Connect the USB Drive (this will remove it from
visibility to Windows Host)
 Reset the VM
 OSX should install
On New OSX VM:
 Install Xcode from App Store
 Install Xamarin Business Edition (iOS)
 Follow Xamarin iOS instructions for Build Agent


Content from the CTXUG Talk: The Second Screen

It was a good evening as always at CTXUG.    I hope everybody will be inspired to create a ChromeCast, Android TV or SmartTV app.  🙂



I’ve shared the presentation:


The source code for the ChromeCast sample receiver can be found here:


The source code for the ChromeCast enabled Xamarin app:


Happy Xamarin Coding!