leo: fix market download issue

This commit is contained in:
Arif Ali 2011-12-16 01:40:29 +00:00
parent e9ef797d1c
commit bb761dab4b
2 changed files with 14 additions and 2 deletions

5
leo.mk
View File

@ -55,9 +55,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/media_profiles.xml:system/etc/media_profiles.xml
# This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script
# This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script, mount cache so that downloads work correctly
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/01modules:system/etc/init.d/01modules
device/htc/leo/prebuilt/01modules:system/etc/init.d/01modules \
device/htc/leo/prebuilt/02cachesd:system/etc/init.d/02achesd
PRODUCT_PACKAGES += \
sensors.htcleo \

11
prebuilt/02cachesd Normal file
View File

@ -0,0 +1,11 @@
#!/system/bin/sh
cache_partition=`grep cache /proc/mtd | cut -d: -f1 | sed 's/mtd/mtdblock/'`
umount /cache
rmdir /cache
mkdir /mnt/cache
mkdir /data/cache
mount -t yaffs2 -o rw /dev/block/$cache_partition /mnt/cache
ln -s /data/cache /cache
ln -s /mnt/cache/recovery /cache/recovery