Problem downloading large apps from Android Market with HTC running CyanogenMod

Thanks to the recent developments by AlphaRev X, I’ve finally been able to S-OFF and root my HTC Wildfire. This in turn means I can put custom ROMs on it, and the best available seems to be CyanogenMod, which is a customised version of Android 2.3 (Gingerbread). The Wildfire is now working better than ever, but I did come across a problem when trying to download larger apps from the Android Market, such as Google Maps or Angry Birds.

The problem here is that the Android Market uses a cache to download the .apk files. This cache is stored in /cache, but in HTC devices /cache is pretty small and is shared with other caches, such as the Dalvik cache. One method of getting around this limitation is to set up a download folder elsewhere and change /cache/download to be a symlink. Instructions on how to do this are on the CyanogenMod forum, but I’ve reproduced them below.

You’ll need a terminal emulator installed on your device (which needs root, but if you’re reading this you’ll almost certainly have root anyway). Open this up, then enter the following commands:

mkdir /mnt/sdcard/market-download-cache
cd /cache
mv download download.bak
ln -s /mnt/sdcard/market-download-cache download
ls -ahl .

The final line is just to check that the symlink has been set up correctly. Now larger apps should download and install without any problems at all.

This entry was posted in Android, Development. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Megas
    Posted 4th December, 2011 at 9:58 pm | Permalink

    I have terminal emulator and this not work for me.I have htc wildfire and when i type
    mkdir /mnt/sdcard/market-download-cache

    i get
    mkdir /mnt/sdcard/market-download-cache not found

    su comand ok

    cd /cache not found
    so what is problem?My problem when trying to download larger apps from the Android Market.

    • Posted 5th December, 2011 at 10:10 am | Permalink


      It’s difficult to know why the mkdir command doesn’t work – have you definitely got an SD card in the phone? If so, it might not be mounted in the same place as mine was (mine was mounted at /mnt/sdcard – if yours is in a different place you’ll need to change this). The easiest way to find out paths is to use an app like Root Explorer.

      If those directories aren’t found on your phone, I’d definitely caution against following this guide as something might go wrong. Sorry I can’t be of more help.

  2. Megas
    Posted 6th December, 2011 at 10:05 pm | Permalink

    I do it again and again and finaly it works all comand and i try to download angry birds just crash some error,i go in manage app market/delite updates/same thing now,there is no insufficient space.

  3. Megas
    Posted 6th December, 2011 at 10:06 pm | Permalink

    I run latest stable

    • Posted 7th December, 2011 at 10:37 am | Permalink


      Unfortunately I no longer have the Wildfire so can’t look into this further. It might be worth checking out the thread on the CyanogenMod forum. Sorry I can’t help you any further, hope you manage to get it fixed.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>