Blog

OUYA USB EXTERNAL MEMORY FIX

Posted by xbmchelper on September 18, 2013 at 2:20 AM

OUYA USB FIX

 

 

Must HAVE links

OUYA-Root-File-Manager.apk http://d-h.st/QpN

OUYA-1ClickRoot.apk http://www.mediafire.com/?9zce8ywve3dpesl

OUYA-SDExt2Mounter_1.2.apk http://d-h.st/4E5

OUYAFREE-Vold-USB-Fix.zip http://d-h.st/SnY

 

1 INSERT CODE YOURSELF

Simple vold edit to allow external USB to appear as /storage/sdcard1

I have edited the vold.fstab file so the external USb will now show up when connected as an MTP or camera device, it shows up in settings under storage, and apps can see it to play media or read books from. dev_mount sdcard /storage.

 

The edited vold file will look like this:

Code:

## Vold 2.0 fstab for cardhu

 

#######################

## Regular device mount

##

## Format: dev_mount

## label - Label for the volume

## mount_point - Where the volume will be mounted

## part - Partition # (1 based), or 'auto' for first usable partition.

## - List of sysfs paths to source devices

######################

 

# Mounts the first usable partition of the specified device

dev_mount sdcard /storage/sdcard1 auto /devices/platform/tegra-ehci.2/usb2

dev_mount usbdrive /mnt/usbdrive auto /devices/platform/sdhci-tegra.0/mmc_host/mmc2

If you are not doing the edit through an Android file manager, Android terminal, or Linux but on a Windows system you will need to install Notepad ++ or similar editor that recognizes the Linux format.

 

Your tablet must be rooted to do this.

 

EDIT:

 

Link below is to a simple installer under Windows, with all the files you need. Instructions included in zip, but basically run the install command and it will backup and push the new vold file, restore takes you back to stock. With any updates you will likely have to rerun this, not certain though. Added image of MTP connection to computer using 16GB MicroSd through USB.

 

SIMPLE DISCLAIMER: Blah blah blah kill device, blah blabbity blah, not my problem blah blah..... But the thing about this edit is the worst that could happen is the device boots and cant see nand or usb, restoring fixes.

 

 

2 Prerequisites:

1. ROOTED OUYA

2. Installed SuperUser on Ouya

3. Link2SD apk

4. USB drive with a 2nd primary partition formatted as ext4

 

 

It’s very recommended for everyone. Well, I’m guessing most people end up with superuser apk after a root. I never actually installed it as such, but I am very happy with what it dose, providing a kind of firewall between your apps and your phones privates. I only run a few apps that require root access and super user dutifully asks me if they are allowed access. Superuser apk is nice root app, does what it ought to, but there’s always scope for more.

 

The Link2SD apk you can install on your phone from Google Play, and copy it to some place from where you can install it on your Ouya. OR LOOK FOR THE LINK ABOVE…*

 

Use any tool (gparted, MiniTool Partition, etc.) to create a 2nd, primary partition on your USB drive, and format it to ext4. Use the search button if you are in doubt. WE RECOMMEND OUYA-SDExt2Mounter AND YOU CAN FIND THE DOWNLOAD LINK ABOVE…*

 

Now, Link2SD does not seem to recognize that there is indeed an ext4 formatted 2nd partition on the USB drive.

To make it work you have to mount it manually (see below), or install my SDExt2Mounter for Ouya, or use the script in post #3.

 

Manual way:

So, insert the USB drive in Ouya, and do the following:

[in adb shell]:

1. su

2. mkdir /data/sdext2

3. mount -t ext4 /dev/block/vold/8\:2 /data/sdext2

4. exit

 

Now start Link2SD on the Ouya, and start using that cumbersome touchpad to move apps and data (use the Link button, as Move to SD card does not work for Ouya) to your new found storage space! There are some options in the Link2SD menu to make all future installed app be automatically moved (and linked) to the new location, but I haven't tested that one yet.

 

Of course things will break if you remove the USB drive from the Ouya, and if you really power down the Ouya, you have to make sure you first mount the ext4 partition before the launcher starts, or you cannot use the games!

 

Use SDExt2Mounter:

Make sure you have rooted your Ouya and installed busybox; OR you will have to reroot your Ouya after each firmware upgrade!

Install SDExt2Mounter; you will find the app in the "PLAY" menu, not in the "MAKE" menu. Yes! My first Ouya app!

• Start SDExt2Mounter

• Grant it PERMANTENT root access if asked

• Press the (make and) mount button

• Press the AutoMount on Boot button

• Reboot your Ouya

After the reboot step, your Ouya will automatically mount the sdext2 partition so your games will show up in the launcher. Obviously, you only need to go through these steps once.

 

Start the app, grant it PERMANTENT root access, and hit the "(make and) mount button".

3 Root OUYA

Download:

RootMyOuya.1.1.apk

 

Steps:

1. Sideload the apk

2. Click "Start Root"

3. Wait few seconds, done.

4. With root access you can customize OUYA for optimized look and feel making it easier to use and look the way you want it to. Now you can also add many other Android apps not available. Add the Google Play Store and use any app like you would on any other Android phone or tablet. Fix any problems with OUYA. Stop waiting for an update for a fix that may never come. With ROOT, OUYA just got a whole lot better!

4 mod using Xposed framework to preserve su & mods during update. YOU WANT THIS SO YOU CAN ADD GOOGLE PLAY STORE LATER ON…

Some technical details:

I extended the /system/bin/app_process executable to load a JAR file on startup. The classes of this file will sit in every process (including the one for system services) and can act with their powers. And even more: I have implemented something that allows developers to replace any method in any class (may it be in the framework, systemui or a custom app). This makes Xposed very powerful. You can change parameters for the method call, modify the return value or skip the call to the method completely - it's all up to you! Also replacing or adding resources is easy.

 

Advantages:

• No need to modify any APKs. This means:

• No need to decompile, change things in smali, compile, sign, ...

• It will work for odexed and deodexed ROMs.

• Your mod is not bound to a specific version of the ROM. Unless there is a major change in the methods called for a certain functionality,your mod will continue to work even when you upgrade your ROM. Hell, it will probably even work with different ROMs.

• Multiple mods can be installed at the same time, even if they change the same package. So you can use these battery icons and those quick toggles. Even hooking the same method twice is possible. Of course, this only works properly if the mods are not trying to do incompatible things.

• It does its magic at runtime. That means you can implement options to let the user decide if they prefer the bikeshed to be painted in red or blue. Or you can have some extra logic for certain ROMs without building different mod versions.

• It can be disabled easily without having to reflash.

• It's open source.

 

Download:

You can download the installer from http://dl.xposed.info/latest.apk. The attached XposedBridgeApi*.jar is only needed for developers.

An experimental version for Gingerbread made by liudongmiao can be found here: http://forum.xda-developers.com/show...4#post44034334 (no support from my side though)

 

How to install:

First step for everything you do: Create a nandroid backup and make sure you know how to restore it!

I'm not responsible for anything you do with your phone/tablet/rice cooker.

There is also the risk to soft-brick your device. In such a case, restoring a backup is the easiest way to get rid of it (other possibilities mentioned below).

 

For the framework:

1. Download XposedInstaller.apk and install it

2. Launch the Xposed Installer, go to the "Framework" section and click on "Install/Update"

3. Reboot

4. Done!

 

For any modules you want to install:

1. Download .apk and install it

2. Launch the Xposed Installer and go to the "Modules" section (you will also get there if you click on the notification warning you that the module is not enabled yet)

3. Enable the module by checking the checkbox

4. Reboot

5. Done!

(note that you can install the framework and enable/disable multiple modules at once and reboot afterwards)

 

In case you get into a boot loop:

You can flash the attached Xposed-Disabler-CWM.zip by Tungstwenty. It will be copied to your (external) SD card when you install Xposed as well. The only thing it does is copying /system/bin/app_process.orig back to /system/bin/app_process, which you can also do yourself (e.g. with adb shell in recovery mode).

You could also create a file /data/xposed/disabled, which causes Xposed to be bypassed as well.

 

Modules:

The official repository for Xposed modules, which can also be access from within the app itself (with download/update support), can be found athttp://repo.xposed.info

You can also have a look at this index: http://forum.xda-developers.com/show....php?t=2327541

Please don't use this thread for problems with modules! Use the thread of the module instead.

 

How to write a module:

If you are an interested developer, give it a try. The development tutorial will help you get started. Further documentation (e.g. how to replace resources) ishere. And of course, you can ask your development questions in this thread.

If you have suggestions for new functions the framework could provide (which means they should be useful for more than your module), you can do this here as well. However, requests that I or somewhen else should write a module for xyz are NOT allowed here. Again, this thread is only about the framework.

 

Changelog:

1.0: Initial version

1.1: ???

1.2: Installer

1.5: Resource replacing

1.6: Some fixes and improvements [629 downloads]

2.0 rc2: Lots of thing redone. Supports (temporarily) replacing native libraries, lots of additions and changes for developers. [3,234 downloads]

2.0: Removed the native library replacement again, support for 4.1 and 4.2, Instagram crash fixed, ... [631 downloads]

2.0.1: Fixed a crash when a module tries to hook a function with "long" or "double" parameters [930 downloads]

2.0.2: Fixed a problem which resulted in a boot loop [4,310 downloads]

2.1: Various improvements, e.g. earlier callbacks for module loading. For details, see this post. [345 downloads]

2.1.1: Fixed a bug in drawable replacements [5,421 downloads]

2.1.2: Small fixes, added Chinese and Russian translations [11,415 downloads]

2.1.3: Reverted a change in 2.1.2 that caused bootloops; new translations and some more fixes [46,803 downloads]

2.1.4: Support for Galaxy S4 and HTC One plus a few minor fixes/enhancements (details) [208,176 downloads]

2.2: Builtin updater/module downloader, extended UI, support for Android 4.3 and more (details)

 

Source code:

https://github.com/rovo89/Xposed (the C++ part)

https://github.com/rovo89/XposedBridge (the Java part)

https://github.com/rovo89/XposedInstaller (Installer app)

 

Thanks to:

Tungstwenty for his many contributions, both in code and thoughts

burstlam for Chinese translations

jack_nuclear for Russian translations

kecinzer for Czech translations

Adam77Root for Hungarian translations

WedyDQ10 for Japanese translations

rocky12345678900 for Polish translations

David_Vaz for Spanish, Catalán, and Galician translations

tonymanou for French translations

Vincenzo Cerminara for Italian translations

DubelBoom for Hebrew translations

pyler for Slovak translations

5

Features:

1. Google Play Store Mod

2. Preserve su & Play Store's apk on firmware update(still under testing, read next post for details)

3. Disable Auto Update, but still can check the update in "SYSTEM UPDATES"

4. Force HDMI resolution to 720p or 1080p

5. Overscan fix, reference link http://www.reddit.com/r/ouya/comments/1e1fak/screen_size_of_my_ouya_is_bigger_then_my_tv/c9wd9x2

6. In Gameloft games, report Bluetooth HID Device as Moga HID

7. Controller support: Gameloft Wild Blood, Six-Guns

http://forum.xda-developers.com/showthread.php?t=2327541

Download:

Mod_Collection4Ouya.4.3.apk http://d-h.st/TPR

 

Changelog

Ver 4.3

Add: Controller support - Gameloft Six-Guns

 

Ver 4.2

Add: Controller support - Gameloft Wild Blood

 

Ver 4.1

Add: In Gameloft games, report Bluetooth HID Device as Moga HID

Add: Install fake Motion Sensors driver

 

Ver 4.0

Add: Asphalt 8 Game Controller Support

 

Ver 3.8

Fix: Cannot Install CWM Recovery

 

Ver 3.7

Fix: Overscan cannot be disabled

Change: Check downloaded Play Store & CWM file size before install

 

Ver 3.6

Add: "Install CWM Recovery" function

Fix: Preserve function on 1.0.393-r1

 

Ver 3.5

Add: "Install Play Store" function

Add: "Reboot" button at the bottom

Change: Custom Overscan Scale Val (0.00 - 0.20)

 

Ver 3.0

Add: Disable Auto Update, but still can check the update in "SYSTEM UPDATES"

Add: Overscan fix

 

 

 

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

0 Comments