1

I've Android 2.1 (Sony Ericsson Xperia X8) so I'm using link2sd becasue many apps need some extra space but OsmAnd always shows "Out of space" message.

How can I fix space issue?

P.S.

  • link2sd works fine.
  • I've 64.13MB of free space in the internal storage and 4.61GB in the 1st SD card partition and 2.18GB in the 2nd SD card partition.
  • The size of OsmAnd apk is: 16.5MB
2

I don't know how much the installed size of the app is. But considering how the install process works, the explanation might be easy:

  1. the .apk is downloaded to /data/local (internal storage)
  2. for installation, it might require some unpacking, with temporary files again being created on internal storage
  3. only after that, the app will be stored to its final location (in your case, Link2SD would then take care to move things to your card)

Checking with our insufficient-memory tag-wiki, you will find that the "insufficient memory" error is triggered when available free space on internal storage falls below ~ 25 MB. Now let's make a little math: You've got ~64 MB free there. The .apk is ~18 MB. We need to leave ~25 MB to not trigger the error. So: 64 - 18 - 25 = 21. If the installation process requires more than 21 MB for temporary files, you've got your explanation. With the (packed) .apk file already being 18+ MB in size, it's very likely to break that limit.

For a possible work-around, you might want to take a look at Configure Play Store to download temporary files to SD Card.

  • Thanks a lot for fabulous explanation; Do you've any idea how to override "insufficient memory" error to be able to install such kind of apps? BTW I downloaded the apk into the SD card not into /data/local and when I extracted the apk manually on my Ubuntu I got a folder with 29.6MB!!! – mbnoimi Nov 10 '13 at 1:17
  • I don't think that limit is easily overrideable. I don't even know where exactly in the system it is set. And there probably is a good reason for its presence (e.g. to prevent a system freeze due to "out-of-diskspace"), so it's not a good idea to tinker with that. // Btw: if this answer is "acceptable", you might consider accepting it (via the checkmark next to it), so others with a similar issue can identify it ;) – Izzy Nov 10 '13 at 13:04
  • Another one that might be helpful to you: Configure Play Store to download temporary files to SD Card – Izzy Nov 10 '13 at 16:09
  • Unfortunately I don't use Google play, I'm using F-Droid the open source repository – mbnoimi Nov 11 '13 at 16:57
  • I guess both are calling the same package installer, so the very same trick should work for FDroid as well. Worth a try for sure. – Izzy Nov 11 '13 at 17:00
0

You can also free space when you move the dalvik-cache to the sd-card. The problem is that android uses a cache for the applications effectively double the occupied space in the data partition. Together with link2sd it can be very effective.

  • Good idea but how can move dalvik-cache to the sd-card? does it a folder name? – mbnoimi Nov 11 '13 at 16:56
  • Oops dalvik-cache is already exists in my SD card?! I think it created by Link2SD – mbnoimi Nov 11 '13 at 22:29
-1

I had same problem.

Fix for me: I changed the default install location to automatic, which fixed it for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.