leo: fix market download issue
This commit is contained in:
parent
e9ef797d1c
commit
bb761dab4b
5
leo.mk
5
leo.mk
@ -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
11
prebuilt/02cachesd
Normal 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
|
Loading…
x
Reference in New Issue
Block a user