#!/system/bin/sh #Kyrillos 2011 #Written by Kyrillos13 @xda #Changelog #v1 /data/app/ & /data/log/ to sd (app2sd) #v2 moved /data/dalvik-cache/ to sd (app2sd+) mkdir /data/misc mkdir /data/misc/app2sd LOG="/data/misc/app2sd/app2sd.log" sleep 3 test_ext4=`fdisk -l /dev/block/mmcblk0 | grep mmcblk0p2 | head -n 1 | cut -d" " -f1` if [ -z $test_ext4 ]; then echo "No partition found" > $LOG else echo "$(date) App2SD Partition Found" > $LOG busybox mount -o rw,remount /dev/stl6 /system mkdir /system/sd busybox ln -s /proc/partitions /etc/mtab busybox mount -o ro,remount /dev/stl6 /system busybox mount -t ext4 /dev/block/mmcblk0p2 /system/sd 1>>$LOG 2>>$LOG mkdir /system/sd/log mkdir /system/sd/app mkdir /system/sd/dalvik-cache busybox mount -o bind /system/sd/app /data/app 1>>$LOG 2>>$LOG busybox mount -o bind /system/sd/log /data/log 1>>$LOG 2>>$LOG busybox mount -o bind /system/sd/dalvik-cache /data/dalvik-cache 1>>$LOG 2>>$LOG busybox mount >> $LOG echo "$(date) App2SD Ended" >> $LOG fi sleep 1