Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[HOWTO] adb / sideloading / superuser access

OP tcollum

10th May 2013, 10:09 AM   |  #1  
OP Senior Member
Thanks Meter: 52
 
106 posts
Join Date:Joined: Feb 2011
Hey everyone! I put together some information on how to do a few things on your new Ouya! This info is by no means my own original contributions, but rather just a compilation of several different sources that I discovered through my quest to explore my Ouya. All credit goes to the original authors/brave experimenters.

SDK SETUP:

1. Install the Android SDK

2. Open SDK Manager and install the following packages:
- Tools: Including both Android SDK and Android SDK
- Android 4.1 (API 16): SDK Platform
- Android 4.0 (API 14): SDK Platform
- Extras: Android Support Library, Google USB Driver

3. Navigate to /android-sdk/extras/google/usb_driver

4. Open android_winusb.inf in an editor (I use Notepad++)

5. Add the following lines beneath [Google.NTx86]:

Code:
;OUYA Console
%SingleAdbInterface% = USB_Install, USB\VID_2836&PID_0010
%CompositeAdbInterface% = USB_Install, USB\VID_2836&PID_0010&MI_01
6. Connect your Ouya via micro USB to your computer and turn it on (it needs to be on for adb to work)

7. Open a command window in /android-sdk/platform-tools and run the following commands:

Code:
adb kill-server
echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"
adb start-server
adb devices
8. After 'adb devices' you should see a number, which signifies your connected console

9. You are now ready to use adb to sideload apps

================================================== ================================================== =========

SIDELOADING APPS:

1. Place the desired .apk file to be installed within /android-sdk/platform-tools

2. Connect the Ouya and open a command window in /android-sdk/platform-tools and run the following command:

Code:
adb install [name.of.apk.file.here]
3. Wait for it to complete the installation

4. On the Ouya, navigate to 'Make' and 'Builds' and your app will be there

================================================== ================================================== =========

ADDITIONAL STUFF BELOW

================================================== ================================================== =========

HOW TO SET UP WIRELESS ADB (will allow you to wireless use adb command, without connecting directly to your computer)

1. Connect OUYA console via mini-usb (or using wireless adb) and run the following commands:

Code:
adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
chmod 666 /system/build.prop
2. Open another terminal (so we can do things locally) and run the following command:

Code:
adb pull /system/build.prop
3. Open build.prop in a text editor, add this line:

Code:
service.adb.tcp.port=5555
4. Return to the second command window and run the following command:

Code:
adb push build.prop /system
5. Now go back to your shell for the OUYA and run the following commands:

Code:
chmod 644 /system/build.prop
(seriously! the console won't boot if you forget this)

Code:
mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
6. Disconnect your OUYA, put it where you want it, reboot it.

7. To wirelessly connect to your OUYA, use the following command:

Code:
adb connect 192.168.xxx.xxx
(your OUYA's ip address)

================================================== ================================================== =========

HOW TO INSTALL BUSYBOX, SUPERUSER, AND SU BINARIES

1. Make sure you have ADB set up and working (wired or wireless).

2. Download and unzip the needed files here.

3. Place unzipped files in /android-sdk/platform-tools

4. Run the following commands to put su in the proper place:

Code:
adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
exit
exit
adb push su /sdcard/su
adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
5. Install SuperUser and BusyBox:

Code:
adb install com.koushikdutta.superuser.apk
adb install stericson.busybox.apk
6. Run SuperUser on the Ouya (from Make > Software) and confirm the update (not in recovery).

================================================== ================================================== =========

Again, this isn't my original content, only slightly edited (since I am OCD about writing).
My only intention is to share this knowledge with other users like me, who don't know much about this sort of thing (yet).

If i stepped on any toes, or did something wrong, I apologize. Let me know if you have any questions or concerns.

Thank you to the following people for their work in contributing to this guide:
WinDroidGuy
elmerohueso
Last edited by tcollum; 12th June 2013 at 09:39 AM.
The Following 32 Users Say Thank You to tcollum For This Useful Post: [ View ]
10th May 2013, 11:48 AM   |  #2  
cosine83's Avatar
Senior Member
Flag Las Vegas, NV
Thanks Meter: 47
 
554 posts
Join Date:Joined: Apr 2010
Donate to Me
More
The driver section doesn't seem to work on Windows 8 Pro 64-bit. I don't think the Google driver has been updated for Win8 yet.
10th May 2013, 12:15 PM   |  #3  
OP Senior Member
Thanks Meter: 52
 
106 posts
Join Date:Joined: Feb 2011
You're probably right. I'm on Windows 7. I'll see if I can jump on a buddy's computer to play around with it.

Upon a quick Google search, I found this: http://forum.xda-developers.com/show....php?t=1161769

Perhaps give this a try? Please let me know how it goes.
10th May 2013, 12:51 PM   |  #4  
cosine83's Avatar
Senior Member
Flag Las Vegas, NV
Thanks Meter: 47
 
554 posts
Join Date:Joined: Apr 2010
Donate to Me
More
I also tried Koush/ClockwordMod's universal ADB driver (adding in the Ouya section to 32/64) but same results about a bad hash in the driver file.
10th May 2013, 02:04 PM   |  #5  
OP Senior Member
Thanks Meter: 52
 
106 posts
Join Date:Joined: Feb 2011
Well it was worth a try. I'll keep my ears open for a Windows 8 solution.

Did you try setting up adb over wireless by any chance? I don't know much about this stuff, but perhaps that's worth a try as well?
14th May 2013, 09:51 PM   |  #6  
Senior Member
New York
Thanks Meter: 53
 
279 posts
Join Date:Joined: May 2013
More
Quote:
Originally Posted by cosine83

The driver section doesn't seem to work on Windows 8 Pro 64-bit. I don't think the Google driver has been updated for Win8 yet.

My Ouya was listed twice in Device manager and one of them was a driver problem. I manually selected my Samsung adb drivers from the list and it works fine. the easiest way yo get those is to install KIES. This was with 64 bit Windows 7.

TIP: The micro usb port is extra deep and my samsung cables don't work, fortunately I have a Kodak one that does.

It motivated to set up wireless adb.
The Following User Says Thank You to TadeoNYC For This Useful Post: [ View ]
16th May 2013, 02:24 AM   |  #7  
Senior Member
Thanks Meter: 11
 
153 posts
Join Date:Joined: Mar 2008
Not getting very far, first I downloaded the SDK, which will not run on my system, might be the AV/FW or something else, but it attempts to find java (which is in the path), and then it does nothing. So I try to go the ClockWorkMod way using the Universal driver (as I saw that should work), that is better as I at least have drivers and it finds my device, but it also will not install throwing a message: "hash for the file is not present in the specified catalog. The file is likely the corrupt or the victim of tampering." Well duh, I modified the inf to get it to find the hardware for the OYUA. I'd just use Google's if I could get a copy without installing the SDK since that is obviously not going to working on this system. Any suggestions, so far while adb works fine with the G3 on this system it appears impossible to setup for the OUYA.

Please note: in C:\Java\jdk1.7u21 is the JDK in c:\java\jre is the JRE. So they are both present and up to date. If I open a command prompt and type java -version it is located and works fine, so no understanding of what "SDK Manager.exe" is doing.

Also, yes I followed the thread as best I could, first copying java into c:\android makes no sense, but I tried it (did nothing), second the adb driver does not require any extraction, where is the usb driver, it must be in a zip somewhere in the SDK for it to be installable, so can I just manually extract it?

Thanks,
ERIC
Last edited by egandt; 16th May 2013 at 03:01 AM. Reason: questions
16th May 2013, 03:39 AM   |  #8  
Senior Member
New York
Thanks Meter: 53
 
279 posts
Join Date:Joined: May 2013
More
Quote:
Originally Posted by egandt

Not getting very far, first I downloaded the SDK, which will not run on my system, might be the AV/FW or something else, but it attempts to find java (which is in the path), and then it does nothing. So I try to go the ClockWorkMod way using the Universal driver (as I saw that should work), that is better as I at least have drivers and it finds my device, but it also will not install throwing a message: "hash for the file is not present in the specified catalog. The file is likely the corrupt or the victim of tampering." Well duh, I modified the inf to get it to find the hardware for the OYUA. I'd just use Google's if I could get a copy without installing the SDK since that is obviously not going to working on this system. Any suggestions, so far while adb works fine with the G3 on this system it appears impossible to setup for the OUYA.

Please note: in C:\Java\jdk1.7u21 is the JDK in c:\java\jre is the JRE. So they are both present and up to date. If I open a command prompt and type java -version it is located and works fine, so no understanding of what "SDK Manager.exe" is doing.

Also, yes I followed the thread as best I could, first copying java into c:\android makes no sense, but I tried it (did nothing), second the adb driver does not require any extraction, where is the usb driver, it must be in a zip somewhere in the SDK for it to be installable, so can I just manually extract it?

Thanks,
ERIC

By G3 do you mean Galaxy S3? If so then hopefully you already have Kies installed. When I connected my OUYA and started all of this, it did not install properly. It showed up twice in device manager, it was installed as a portable device, but was also listed as "other device" and not installed. After a lot of searching,I saw that people had been able to get out working by manually selecting the Samsung adb drivers that are included with Kies. It worked for me. You need to manually select the drivers (have disk) and install OUYA as a MTP device.

Regarding the SDK I know nothing. It installed just fine on Windows 7 for me.

Good luck

Sent from my SCH-I535 using Tapatalk 2
Last edited by TadeoNYC; 16th May 2013 at 03:43 AM.
The Following User Says Thank You to TadeoNYC For This Useful Post: [ View ]
16th May 2013, 12:11 PM   |  #9  
Junior Member
Thanks Meter: 3
 
11 posts
Join Date:Joined: Mar 2011
I was able to get ADB to work on Windows 7 64bit and Windows 8 64 bit by installing Samsung KIES and forcing it to use that driver.
18th May 2013, 02:21 AM   |  #10  
Senior Member
Thanks Meter: 11
 
153 posts
Join Date:Joined: Mar 2008
Quote:
Originally Posted by eatmybiglazer

I was able to get ADB to work on Windows 7 64bit and Windows 8 64 bit by installing Samsung KIES and forcing it to use that driver.


Try this driver, got it to work, by selecting i from the list and forcing it

ERIC

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes