# Fix the Ouya Discover Store 2020

I just came across this amazing Ouya hack this morning and had to make a tutorial right away. An amazing developer reversed engineered the Ouya API and is hosting a recreation of it. By placing a simple two line file configuration file on the Ouya you can point the API calls to his recreation and bring the Ouya Discover Store back to life. Enjoy and make sure to give the developer some love if you decide to use his API.

## Things You Will Need

- A micro USB data cable

## Prerequisites and Downloads

1. Download i12bretro_OUYA_discover.zip Download
2. Extract the downloaded i12bretro_OUYA_discover.zip

## Installing Ouya USB Drivers

1. Right click Start > Command Prompt (Admin)
2. Paste the following commands to disable driving signing checks temporarily
   bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
   bcdedit -set TESTSIGNING ON
   shutdown /r
3. Your PC will reboot
4. Connect a USB cable from the micro USB port on the back of the Ouya to your PC
5. Make sure the Ouya is connected to a display via HDMI
6. Power on the Ouya
7. After a few seconds you should hear Windows chime that a new device has been detected
8. Right click Start > Device Manager
9. Expand Other Devices and you should see OUYA listed
10. Right click OUYA > Update Driver
11. Select Browse my computer for driver software
12. Click the Browse... button
13. Navigate to the extracted i12bretro_OUYA_discover\files\driver
14. Click OK
15. Make sure "Include subfolders" is checked, click Next
16. Windows should find the correct driver for the Ouya and install it
17. Navigate to the i12bretro_OUYA_discover in Windows Explorer
18. Right click i12bretro_OUYA_discover.bat > Run as administrator
19. The script uses the Android Debug Bridge (ADB) to push an ouya_config.properties file to the Ouya

    OUYA_SERVER_URL=http://ouya.cweiske.de
    OUYA_STATUS_SERVER_URL=http://ouya.cweiske.de/api/v1/status

20. The Ouya will reboot after the file is copied over
21. After rebooting, the Ouya will now be accessing ouya.cweiske.de for it's store and API calls

## Cleaning Up

1. After successfully flashing the image to your Ouya, do the following
2. Right click Start > Command Prompt (Admin)
3. Paste the following commands to re-enable driving signing checks
   bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS
   bcdedit -set TESTSIGNING OFF
   shutdown /r
4. Your PC will reboot

I cannot thank Christian Weiske enough for reverse engineering the Ouya API and hosting a static recreation of it so Ouya's around the world can continue to work. Show Christian some love at https://ouya.cweiske.de