Time for action – configuring the USB driver on Windows
The file we need to edit on Windows operating systems is found at C:\Development\adt-bundle-windows-x86_64\sdk\extras\google\usb_driver\android_winusb.inf
. Perform the following steps to edit the driver file:
- Double-click on the file to open it in Notepad and find the section that begins with
[Google.NTx86]
. You'll see a list of devices already below this header; after the last device, add the highlighted text shown in the following screenshot: - Add the same block of text in the same place under the similar section
[Google.NTamd64]
, then save the document, and close Notepad. - Next, open the Windows Command Prompt and run the following commands:
adb kill-server echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini" adb start-server
- Close the command prompt and right-click on Computer in your Start menu. Select Properties, and in the window that opens select Device Manager. Locate the OUYA Console on the list—most likely under Portable Devices—right-click on it and select Update Driver Software…, as shown in the following screenshot:
- Choose Browse my computer for the driver software and then select Let me pick from a list of device drivers on my computer. Click on Show All Devices if available and then on Have Disk on the resulting screen. Navigate to the directory that contains your edited driver file, accept the driver, and exit. Your computer is now ready to recognize your console.
Tip
Your computer may warn you that the device driver isn't signed. In this case, you can go ahead and ignore it because the driver is safe. The fact that the driver is unsigned is the reason we had to manually point to its location, but other than that it won't have any impact on what you need to do.
What just happened?
You downloaded the USB driver for general Android devices, but the driver needed a little more tweaking before it was ready to communicate with the OUYA. To fix this, you added an OUYA entry to the driver, making it recognizable by your computer.
Having the correct drivers is important because you'll be sending code from your Unity development environment directly to the OUYA console to build and debug via USB, and without that additional entry in the driver file it would result in an error.