Просмотр исходного кода

0509: Running Android TV Port on Ouya

i12bretro 4 лет назад
Родитель
Сommit
e3a593b01c
1 измененных файлов с 190 добавлено и 0 удалено
  1. 190 0
      0509.html

+ 190 - 0
0509.html

@@ -0,0 +1,190 @@
+    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Running Android TV Port on Ouya</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+								<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript">
+          $(function(){
+            $('textarea').each(function(i,e){
+              theTextarea = $(this);
+              theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
+            });
+
+            $('li').each(function(i,e){
+              var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
+              $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
+              $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
+            });
+
+            $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
+              theElement = $(this);
+              var lines = theElement.html().split("\n");
+              theElement.empty();
+              for(l=0;l<lines.length;l++){
+                if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
+									                  theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
+									                } else {
+                  theElement.append(lines[l]);
+                }
+              }
+            });
+
+            $(document).on('click','input.copy-text',function(){
+              theButton = $(this);
+														$('input.copy-text').attr('src','images/clipboard.png');
+							              $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
+              try {
+                if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
+                } else {
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                }
+                navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
+																theButton.attr('src','images/clipboard_active.png');
+								              } catch(err) {
+              }
+              return false;
+            });
+
+            $(document).on('click','input.completeBox',function(){
+              theBox = $(this);
+              $('#'+ theBox.attr('rel')).addClass('strikethrough');
+              theBox.prop('disabled',true);
+              theBox.parent('li').prevAll().each(function(i,e){
+                theLI = $(this);
+                if(theLI.find('input[type=checkbox]').not(':checked')){
+                  $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
+                  theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
+                }
+              });
+            });
+
+            if(window.self !== window.top){
+															window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
+							            }
+          });
+        </script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Running Android TV Port on Ouya</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>Things You Will Need</h2>
+
+<ul>
+	<li>A USB flash drive, at least 4 GB of free space</li>
+	<li>A USB hub, preferably with external power</li>
+	<li>A USB keyboard</li>
+</ul>
+
+<h2>Prerequisites and Downloads</h2>
+
+<ol>
+	<li>Download i12bretro_OUYA_commands.zip <a href="https://drive.google.com/open?id=1OgeEgZ9M4-Ym7Ldwz0bnpy0b0ZZ_vxlA" target="_blank">Download</a></li>
+	<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>
+	<li>Format the USB flash drive to FAT32
+	<ol start="1" style="list-style-type: lower-alpha;">
+		<li>Right Click Start &gt; File Explorer</li>
+		<li>Right Click the USB flash drive &gt; Format...</li>
+		<li>Select FAT32 from the File System dropdown</li>
+		<li>Make sure Quick Format is checked</li>
+		<li>Click Start</li>
+	</ol>
+	</li>
+</ol>
+
+<ol start="4">
+	<li>Extract the downloaded i12bretro_OUYA_commands.zip</li>
+	<li>Extract the downloaded Ouya_AndroidTV_v2.zip</li>
+	<li>Copy the contents of the /Copy_to_USB folder to the root of the USB flash drive</li>
+	<li>Safely remove the flash drive and plug it into the USB hub connected to the Ouya</li>
+	<li>Plug in the USB keyboard to the USB hub connected to the Ouya</li>
+</ol>
+
+<h2>Installing Ouya USB Drivers</h2>
+
+<ol>
+	<li>Right click Start &gt; Command Prompt (Admin)</li>
+	<li>Paste the following commands to disable driving signing checks temporarily
+	<div class="codeBlock">bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS<br />
+	bcdedit -set TESTSIGNING ON<br />
+	shutdown /r</div>
+	</li>
+	<li>Your PC will reboot</li>
+	<li>Connect a USB cable from the micro USB port on the back of the Ouya to your PC</li>
+	<li>Make sure the Ouya is connected to a display via HDMI</li>
+	<li>Power on the Ouya</li>
+	<li>After a few seconds you should hear Windows chime that a new device has been detected</li>
+	<li>Right click Start &gt; Device Manager</li>
+	<li>Expand Other Devices and you should see OUYA listed</li>
+	<li>Right click OUYA &gt; Update Driver</li>
+	<li>Select Browse my computer for driver software</li>
+	<li>Click the Browse... button</li>
+	<li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
+	<li>Click OK</li>
+	<li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
+	<li>Windows should find the correct driver for the Ouya and install it</li>
+	<li>Navigate to the i12bretro_OUYA_commands in windows explorer</li>
+	<li>Right click i12bretro_OUYA_commands.bat &gt; Run as administrator</li>
+	<li>The script uses the Android Debug Bridge (ADB) to boot the Ouya into CyanogenMod recovery</li>
+	<li>When the command prompts to &quot;-- Setup the fastboot driver&quot;, go back to Device Manager expand Android Device</li>
+	<li>Right click Android Bootloader Device &gt; Update Driver</li>
+	<li>Select Browse my computer for driver software</li>
+	<li>Click the Browse... button</li>
+	<li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
+	<li>Click OK</li>
+	<li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
+	<li>Windows should find the correct driver for the Ouya and install it</li>
+	<li>Press Enter at the command prompt once the driver is installed to continue booting the Ouya to CyanogenMod recovery</li>
+</ol>
+
+<h2>Restore Android TV via CyanogenMod Recovery</h2>
+
+<ol>
+	<li>With the OUYA in CyanogenMod Recovery:</li>
+	<li>Select Backup/Restore &gt; Restore from USB disk</li>
+	<li>Navigate to and select the extracted Android TV image from the USB disk clockworkmod\backup\Ouya_AndroidTV_v2</li>
+	<li>Select Yes to confirm restoring the backup</li>
+	<li>Wait several minutes for the various partitions of the image to be copied to the Ouya</li>
+	<li>From the main menu select Install zip &gt; Install zip from USB disk</li>
+	<li>Select recovery-clockwork-6.0.4.8-ouya.zip</li>
+	<li>Select Yes to confirm installing recovery</li>
+	<li>From the main menu select Install zip &gt; Install zip from USB disk</li>
+	<li>Select ouyabootmenu-mlq-v2.0.4.zip</li>
+	<li>Select Yes to confirm installing recovery</li>
+	<li>From the main menu select Install zip &gt; Install zip from USB disk</li>
+	<li>Select ouya-keylayouts.zip</li>
+	<li>Select Yes to confirm installing recovery</li>
+	<li>After the zip file finishes installing, back out to the main menu and select wipe cache partition</li>
+	<li>Select Yes to confirm wiping the cache</li>
+	<li>From the main menu select advanced &gt; wipe dalvik cache partition</li>
+	<li>Select Yes to confirm wiping the dalvik cache</li>
+	<li>From the main menu select reboot device</li>
+	<li>After a few moments (up to 5 minutes) the device will boot into Android TV</li>
+</ol>
+
+<h2>Cleaning Up</h2>
+
+<ol>
+	<li>After successfully flashing the image to your Ouya, do the following</li>
+	<li>Right click Start &gt; Command Prompt (Admin)</li>
+	<li>Paste the following commands to re-enable driving signing checks
+	<div class="codeBlock">bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS<br />
+	bcdedit -set TESTSIGNING OFF<br />
+	shutdown /r</div>
+	</li>
+	<li>Your PC will reboot</li>
+</ol>
+
+<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>
+          </div>
+        </div>
+      </body>
+    </html>
+