Recovery Mode?

darthcircuit

Senior Member
Apr 4, 2010
51
5
0
Ok, so here's what happened.

When I got my ouya, the first thing I did was root it and set up Wireless adb. I noticed that when I had adb running over wifi though, it would disable my micro usb port for some reason, and I couldnt copy anything to the device while I had debugging enabled.

Long story short, I disabled adb to copy some files, and I accidentally replaced the launcher while trying to get GAPPS working. Unfortunately whatever launcher overwrote the ouya one doesnt work, and just force closes on boot.

Does anyone know of a recovery mode for the ouya? Most phones require holding down the power button as well as one of the volume buttons, but the ouya doesnt have any volume buttons.

I opened the case, and didnt see any switches or jumpers either.

I even tried using a usb keyboard and holding down the volume buttons on it out of desperation haha.

Is it possible to get Clockwork Mod booting from USB or something?
 

Paulenski

Senior Member
Mar 28, 2011
270
46
0
Glendale, AZ
with wireless adb, if you disconnect from it by closing the cmd window, you need to type adb usb to re-enable the usb mode

its okay if the launcher fails as long as it still boots and you get into android, you can turn on adb again and just re-install stock launcher. I'll attach it in an sec
 

Paulenski

Senior Member
Mar 28, 2011
270
46
0
Glendale, AZ
Wanted to mention, you don't need to root (already rooted), I wouldn't suggest flashing any random recovery, it needs to get made for it first(eventually gonna happen soon).

I would suggest deleting/uninstalling whatever launcher you tried installing. Because the launcher they used is built with the framework so you need to do more work to get an third party launcher to work correctly.

First:
adb install Pathofapk\OUYALauncher.apk

Second:
adb shell
su
cd /data/app
ls (get the name of the launcher that's FC)
rm name.apk
 

Attachments

  • Like
Reactions: darthcircuit

darthcircuit

Senior Member
Apr 4, 2010
51
5
0
Wanted to mention, you don't need to root (already rooted), I wouldn't suggest flashing any random recovery, it needs to get made for it first(eventually gonna happen soon).

I would suggest deleting/uninstalling whatever launcher you tried installing. Because the launcher they used is built with the framework so you need to do more work to get an third party launcher to work correctly.

First:
adb install Pathofapk\OUYALauncher.apk

Second:
adb shell
su
cd /data/app
ls (get the name of the launcher that's FC)
rm name.apk
Thanks for attaching the launcher. I hopefully will be able to use that soon. Unfortunately, I disabled USB debugging in the Developer options on the Ouya itself.

I tried running your command (adb usb) and it tells me that no devices were found. I tried doing 'adb connect x.x.x.x' as well, but since USB debugging is disabled, it won't connect that way either.

Thanks for the suggestion though. Do you have any other ideas?

I have this samba app installed, and I was hoping i could access root through that, but I can only figure out how to access the sd card.

I also have airdroid and es file manager installed if there are any exploits to get those running.

Thanks for any help offered :)
 

darthcircuit

Senior Member
Apr 4, 2010
51
5
0
Check this command

adb devices

does it even show up on the list?
i tried it, but it doesn't show up. :( I also checked device manager to see if it came up it there but all I get is an mtp device. I also copied the hardware id from that device and added it to the adb driver and reinstalled it that way, but it still does not show up in adb devices.

just to clarify, the mtp has a different hardware id than the adb mode one. When I did adb TCP originally, it disabled my micro USB port from mtp access, so I could not transfer files. That's why I had to disable USB debugging on the ouya. I'm afraid adb is doomed to not work until we can figure out how to get a USB bootable recovery image.

thanks for the suggestions :) I really appreciate it :)

any other ideas? I have been toying around with samba a little. I noticed that there is a share named admin$ but it doesn't work with the password I set up for the other share. Does anyone know what the default root password is for samba? If this will let me access the system folder, I can dump the launcher back in through samba.... Probably a long shot though.
 

darthcircuit

Senior Member
Apr 4, 2010
51
5
0
Just as an update, MBM on the ouya dev forums posted how to get into the recovery mode of the console if anyone is interested. I was able to get my ouya running again with his help.

This is the process:

HOW TO RECOVER:

This is a hack, an unintended sequence of events that results in recovery mode; what you need to do is crash the startup using sysrq.

For this you'll need a usb keyboard with the sysrq key, this is usually the printscreen button if your keyboard isn't labeled. As the OUYA starts to boot, hold down the alt-sysrq keys and press i, wait a few seconds and then repeat. This key combination is kill-all-tasks; thanks to whoever left this enabled in the kernel. Each time you kill the tasks the init process will restart them, after about 5 or 6 times init will print a warning on the console that one of the processes marked critical has been restarted too many times -- this then triggers an automatic reboot into recovery mode.

Unfortunately it's not always obvious when the ouya is in recovery mode. You might get screen with the ouya logo and a large red exclamation mark, or the screen might be entirely black; usually I got a black screen. Press the home button on the keyboard to bring up the recovery menu; it's actually a toggle so feel free to press the home button repeatedly until you see the menu since the timing isn't otherwise obvious.

Once you get to the recovery menu, the select the second option to update from adb. Download the OTA update from the link at the end of this post, and run the command "adb sideload RC-OUYA-1.0.193-r1_ota.zip" this will reformat the system partition and reinstall the ouya software. You might also want to do a factory reset before rebooting.

Links to download the OTA updates can be found on this xda thread: http://forum.xda-developers.com/showthread.php?t=2266629
check out the thread here: http://forums.ouya.tv/discussion/1380/recovery-mode

Thanks for all the help here guys! I am glad to be running again :)
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone