Data2Ext is an excellent hack to have your “internal memory” increased, but if you don’t want to install it or your custom ROM doesn’t support it, there is an alternative to this little hack which allows you to free some space on phone’s memory.
I’m sure that some of you wondered after you’ve partitioned your SD Card to have … let’s say 1Gb Ext partition where is that space. That’s the amount of free space where you can move the apps to SD (you know that there are lot’s of applications which allows you to do this, and Android has a built in mechanism for moving apps to SD). But not all the apps can be moved to SD, and here’s a small tutorial which allows you to move basically any app to SD card.
First of all, we’re going to connect to the phone with adb shell with the phone on, and the ROM booted (don’t do this in recovery mode!)
See how much space do you have on /data (you’re actual internal phone memory)
df -h | grep data
/dev/block/mtdblock5 287.6M 142.7M 144.9M 50% /data
If you’re seing some strange characters follow this link to get rid of them
So.. it’s 50% full… or empty. Anyway, let’s see now which are the bigger apps installed:
du -sk /data/data/* | sort -rn | head
The first column is the number of Kb of the application.. So Skype it occupying almost 5Mb.
Let’s move it to the Ext partition..
First we need to create a folder:
And now let’s move stuff and symlink them:
mv /data/data/com.skype.raider /system/sd/moreapps/com.skype.raider
Notice that after the mv command I’m using the old path of the application, and as the second argument I put the path to the newly created folder followed by the package name
The next step is to symlink them in order to “trick” the OS to look for the app in the old location but actually to find the data in the newly created location
ln -s /system/sd/moreapps/com.skype.raider /data/data/com.skype.raider
Here you’ve got to notice that I’ve just reversed the arguments from the mv command.
Now let’s check again my free space:
df -h | grep data
/dev/block/mtdblock5 287.6M 137.7M 149.9M 48% /data
I’ve gained 5 more Mb on the internal memory. You can use this example to move any application that you rarely use and it’s not containing stored passwords or something (like the browser or Gmail) because if someone steals your SD Card, he can read those passwords having your saved application on it (If he know what he’s doing, of course). It’s not very advised to move stuff like Flash Player (‘cause your browser will crash) or any system application because this will slow down your system. You can safely move any other application or game
So this is it. If you encounter any problems, please leave a comment. Now start moving your apps to gain some space!
If you found this interesting, please don't forget to like/share it. Like the page too, in order to receive all the updates in Facebook.
You might also like: