Android Bytes

…everything is a bytearray after all

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

5080    /data/data/com.skype.raider
3371    /data/data/com.facebook.katana
3181    /data/data/com.android.providers.contacts
2126    /data/data/com.google.android.youtube
1905    /data/data/com.android.browser
1318    /data/data/com.android.vending
1231    /data/data/com.appmania.dm3dandlite2
1196    /data/data/com.htc.launcher
887     /data/data/com.android.providers.telephony
883     /data/data/com.android.mms

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:

mkdir /system/sd/moreapps 

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! Smile

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:

    >>Phone memory, A2SD, A2SD+,Data2Ext and Dalvik Cache explained
    >>Starburst Rom–No More Space Problems
    >>Terminology
    >>AndMemory – Android Memory Optimization Software
    >>Hboot Schemes explained

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Difference Between A

The post title is referring to the difference between Android ...

HTC Sense 3.5 is com

coolexe, a very appreciated developer from xda-developers has managed to ...

Asphalt 6: Adrenalin

If you own a Samsung Galaxy S II or a ...

Ice Cream Sandwich S

At Google I/O this year, the newest version of Android ...

Android Hacker's Key

Here’s a full 5-row keyboard including arrow and Esc/Ctrl keys, ...

Difference Between A

The post title is referring to the difference between Android ...

HTC Sense 3.5 is com

coolexe, a very appreciated developer from xda-developers has managed to ...

Free some space on p

Data2Ext is an excellent hack to have your “internal memory” ...

Install InsertCoin R

InsertCoin ROM is one of the best custom ROMs for ...

Flashing a custom HB

Installing a custom ROM may become a little bit frustrating ...