0509.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Android TV Port on Ouya</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. $(function(){
  9. $('textarea').each(function(i,e){
  10. theTextarea = $(this);
  11. theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
  12. });
  13. $('li').each(function(i,e){
  14. if(!$(this).hasClass('noCheckbox')){
  15. var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
  16. $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
  17. $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
  18. }
  19. });
  20. $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
  21. theElement = $(this);
  22. var lines = theElement.html().split("\n");
  23. theElement.empty();
  24. for(l=0;l<lines.length;l++){
  25. if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
  26. theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '&quot;')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
  27. } else {
  28. theElement.append(lines[l]);
  29. }
  30. }
  31. });
  32. $(document).on('click','input.copy-text',function(){
  33. theButton = $(this);
  34. $('input.copy-text').attr('src','images/clipboard.png');
  35. $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
  36. try {
  37. if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
  38. $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
  39. } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
  40. $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
  41. } else {
  42. $('#'+ theButton.attr('rel')).addClass('copy-animation');
  43. }
  44. navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
  45. theButton.attr('src','images/clipboard_active.png');
  46. } catch(err) {
  47. }
  48. return false;
  49. });
  50. $(document).on('click','input.completeBox',function(){
  51. theBox = $(this);
  52. $('#'+ theBox.attr('rel')).addClass('strikethrough');
  53. theBox.prop('disabled',true);
  54. theBox.parent('li').prevAll().each(function(i,e){
  55. theLI = $(this);
  56. if(theLI.find('input[type=checkbox]').not(':checked')){
  57. $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
  58. theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
  59. }
  60. });
  61. });
  62. if(window.self !== window.top){
  63. window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
  64. }
  65. });
  66. </script>
  67. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  68. </head>
  69. <body>
  70. <div id="gridContainer">
  71. <div class="topMargin"></div>
  72. <div id="listName" class="topMargin">
  73. <h1>Running Android TV Port on Ouya</h1>
  74. </div>
  75. <div></div>
  76. <div id="content">
  77. <h2>Things You Will Need</h2>
  78. <ul>
  79. <li>A USB flash drive, at least 4 GB of free space</li>
  80. <li>A USB hub, preferably with external power</li>
  81. <li>A USB keyboard</li>
  82. </ul>
  83. <h2>Prerequisites and Downloads</h2>
  84. <ol>
  85. <li>Download i12bretro_OUYA_commands.zip <a href="https://drive.google.com/open?id=1OgeEgZ9M4-Ym7Ldwz0bnpy0b0ZZ_vxlA" target="_blank">Download</a></li>
  86. <li>Download Ouya_AndroidTV_v2.zip <a href="https://drive.google.com/file/d/1-TOhFSJQajDKYYVhtr8gM7UuhMUx-asM/view?usp=sharing" target="_blank">Download</a></li>
  87. <li>Format the USB flash drive to FAT32
  88. <ol start="1" style="list-style-type: lower-alpha;">
  89. <li>Right Click Start &gt; File Explorer</li>
  90. <li>Right Click the USB flash drive &gt; Format...</li>
  91. <li>Select FAT32 from the File System dropdown</li>
  92. <li>Make sure Quick Format is checked</li>
  93. <li>Click Start</li>
  94. </ol>
  95. </li>
  96. <li>Extract the downloaded i12bretro_OUYA_commands.zip</li>
  97. <li>Extract the downloaded Ouya_AndroidTV_v2.zip</li>
  98. <li>Copy the contents of the /Copy_to_USB folder to the root of the USB flash drive</li>
  99. <li>Safely remove the flash drive and plug it into the USB hub connected to the Ouya</li>
  100. <li>Plug in the USB keyboard to the USB hub connected to the Ouya</li>
  101. </ol>
  102. <h2>Installing Ouya USB Drivers</h2>
  103. <ol>
  104. <li>Right click Start &gt; Command Prompt (Admin)</li>
  105. <li>Paste the following commands to disable driving signing checks temporarily
  106. <div class="codeBlock">bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS<br />
  107. bcdedit -set TESTSIGNING ON<br />
  108. shutdown /r</div>
  109. </li>
  110. <li>Your PC will reboot</li>
  111. <li>Connect a USB cable from the micro USB port on the back of the Ouya to your PC</li>
  112. <li>Make sure the Ouya is connected to a display via HDMI</li>
  113. <li>Power on the Ouya</li>
  114. <li>After a few seconds you should hear Windows chime that a new device has been detected</li>
  115. <li>Right click Start &gt; Device Manager</li>
  116. <li>Expand Other Devices and you should see OUYA listed</li>
  117. <li>Right click OUYA &gt; Update Driver</li>
  118. <li>Select Browse my computer for driver software</li>
  119. <li>Click the Browse... button</li>
  120. <li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
  121. <li>Click OK</li>
  122. <li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
  123. <li>Windows should find the correct driver for the Ouya and install it</li>
  124. <li>Navigate to the i12bretro_OUYA_commands in windows explorer</li>
  125. <li>Right click i12bretro_OUYA_commands.bat &gt; Run as administrator</li>
  126. <li>The script uses the Android Debug Bridge (ADB) to boot the Ouya into CyanogenMod recovery</li>
  127. <li>When the command prompts to &quot;-- Setup the fastboot driver&quot;, go back to Device Manager expand Android Device</li>
  128. <li>Right click Android Bootloader Device &gt; Update Driver</li>
  129. <li>Select Browse my computer for driver software</li>
  130. <li>Click the Browse... button</li>
  131. <li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
  132. <li>Click OK</li>
  133. <li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
  134. <li>Windows should find the correct driver for the Ouya and install it</li>
  135. <li>Press Enter at the command prompt once the driver is installed to continue booting the Ouya to CyanogenMod recovery</li>
  136. </ol>
  137. <h2>Restore Android TV via CyanogenMod Recovery</h2>
  138. <ol>
  139. <li>With the OUYA in CyanogenMod Recovery:</li>
  140. <li>Select Backup/Restore &gt; Restore from USB disk</li>
  141. <li>Navigate to and select the extracted Android TV image from the USB disk clockworkmod\backup\Ouya_AndroidTV_v2</li>
  142. <li>Select Yes to confirm restoring the backup</li>
  143. <li>Wait several minutes for the various partitions of the image to be copied to the Ouya</li>
  144. <li>From the main menu select Install zip &gt; Install zip from USB disk</li>
  145. <li>Select recovery-clockwork-6.0.4.8-ouya.zip</li>
  146. <li>Select Yes to confirm installing recovery</li>
  147. <li>From the main menu select Install zip &gt; Install zip from USB disk</li>
  148. <li>Select ouyabootmenu-mlq-v2.0.4.zip</li>
  149. <li>Select Yes to confirm installing recovery</li>
  150. <li>From the main menu select Install zip &gt; Install zip from USB disk</li>
  151. <li>Select ouya-keylayouts.zip</li>
  152. <li>Select Yes to confirm installing recovery</li>
  153. <li>After the zip file finishes installing, back out to the main menu and select wipe cache partition</li>
  154. <li>Select Yes to confirm wiping the cache</li>
  155. <li>From the main menu select advanced &gt; wipe dalvik cache partition</li>
  156. <li>Select Yes to confirm wiping the dalvik cache</li>
  157. <li>From the main menu select reboot device</li>
  158. <li>After a few moments (up to 5 minutes) the device will boot into Android TV</li>
  159. </ol>
  160. <h2>Cleaning Up</h2>
  161. <ol>
  162. <li>After successfully flashing the image to your Ouya, do the following</li>
  163. <li>Right click Start &gt; Command Prompt (Admin)</li>
  164. <li>Paste the following commands to re-enable driving signing checks
  165. <div class="codeBlock">bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS<br />
  166. bcdedit -set TESTSIGNING OFF<br />
  167. shutdown /r</div>
  168. </li>
  169. <li>Your PC will reboot</li>
  170. </ol>
  171. <p>Source: <a href="https://forum.xda-developers.com/t/rom-port-adt-1-android-tv-for-ouya.2895293/" target="_blank">https://forum.xda-developers.com/t/rom-port-adt-1-android-tv-for-ouya.2895293/</a></p>
  172. </div>
  173. </div>
  174. </body>
  175. </html>