Anyway to link data/app to external HD?

ozzmanj1

Senior Member
Aug 18, 2010
4,245
1,817
253
Utah - Somewhere in the Great Salt Lake
Just got an ouya. I rooted itnand installed Google plat and busybox. I used foldermount to move application data from internal sdcard to an external USB hard drive. But am wondering if its possible to move the games installed from the ouya store to external drive?



Sent from my R800at using xda premium
 

ozzmanj1

Senior Member
Aug 18, 2010
4,245
1,817
253
Utah - Somewhere in the Great Salt Lake
I don't know, but I think yes... Personnaly I bind all my Android folder...

Envoyé depuis mon Galaxy Nexus avec Tapatalk 4
I have been messing with directorybind for a while now and I cannot get it to work. Would you mind typing in what you type in to move application data? Example would it be something like:

data/app (where the apks are installed to, at least I think they are)

I want to move as much as I can over to this drive as the 8gb is seriously too small. I installed order & chaos and Bards tale and all I have left is chump change...
 

ozzmanj1

Senior Member
Aug 18, 2010
4,245
1,817
253
Utah - Somewhere in the Great Salt Lake
Thank you for the link. I know how to use Link2SD, I use it on my phone, Xperia PLAY, and it works great. It was the first think I tried on the Ouya but it didnt work. After reading the link, now i know why. Anyways I will get cracking on this link. Thank you.


Edit - Ran the steps and all is working awesome. Thank you!
 
Last edited:

ozzmanj1

Senior Member
Aug 18, 2010
4,245
1,817
253
Utah - Somewhere in the Great Salt Lake
Foldermount works for me. You need to be rooted.
This works for Play Store installed/sideloaded APKs

Still trying to find a way on how to link OUYA games
The link tcollum gave me links ouya APks to the ext4 partition. I have all games installed and linked. Only using around 250-290mb of internal sd storage.



Sent from my R800at using xda premium
 

ozzmanj1

Senior Member
Aug 18, 2010
4,245
1,817
253
Utah - Somewhere in the Great Salt Lake
Okay, so I have rocking Google PLAY store for days now and as of this morning it keeps telling me connection timed out. Despite everything else working on wifi no issues, Ouya market, etc.

Any ideas? I did reinstall using the xposed mod and it did ask me to sign into Google which I did but then when it loads it..... timed out. Any ideas?
 

ashish0304

Senior Member
Feb 10, 2011
56
12
0
Hi,
I'm using CM 12.1 on Moto E(1st gen, condor). I've written following shell script to link user installed applications to external sdcard(EXT4). It is working without any problem.

#!/system/bin/sh
#script to link /data/app contents to extsdcard
sdext='/data/sdext2'
sdint='/data/data'

package=`pm list packages -3 -f | grep $1 | cut -d':' -f2 | cut -d'=' -f1`
package=`dirname $package`

numpk=`echo $package | wc -w`
if [ $numpk -ne 1 ]
then
echo "package not found"
exit
fi
if [[ -L "$package" ]]
then
echo "already linked"
exit
fi
sdext+="/app/"
sdext+=`basename $package`

cp -av $package /data/sdext2/app
rm -rf $package
ln -s $sdext /data/app/

echo $sdext
echo $package



#!/system/bin/sh
#script to link /data/dalvik-cache contents to extsdcard

sdext='/data/sdext2/dalvik-cache/arm/'
sdint='/data/dalvik-cache/arm/'

package=`pm list packages -3 -f | grep $1 | cut -d':' -f2 | cut -d'=' -f1`

numpk=`echo $package | wc -w`
if [ $numpk -ne 1 ]
then
echo "package not found"
exit
fi
a='/'
b='@'
package=${package:1}
sdint=$sdint${package//$a/$b}@classes.dex
if [[ -L "$sdint" ]]
then
echo "already linked"
exit
fi
sdext+=${package//$a/$b}@classes.dex

cp -av $sdint $sdext
rm -f $sdint
ln -s $sdext /data/dalvik-cache/arm/

echo $sdext
echo $sdint



#!/system/bin/sh
#script to link /data/data contents to extsdcard

sdext='/data/sdext2/data/'
sdint='/data/data/'

package=`pm list packages -3 -f | grep $1 | cut -d'=' -f2`

numpk=`echo $package | wc -w`
if [ $numpk -ne 1 ]
then
echo "package data not available"
exit
fi

sdint+=`basename $package`
if [[ -L "$sdint" ]]
then
echo "already linked"
exit
fi

cp -av $sdint $sdext
rm -rf $sdint
ln -s $sdext$package /data/data/

echo $sdext
echo $sdint


But it seems the script to link /data/data is not working as expected. Applications don't start after linking /data/data. It will be very helpful if someone can help on this.

Thanks.
 
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