http://forum.xda-developers.com/showthread.php?t=748596
this is not fully auto so a few things needed to be done first:
1) create the image file in /data called /data/dataimg using dd command that OP has already stated in post 1
2) format /data/dataimg with ext2
3) save the code attached to userinit.sh and push into /data/local
4) do the playlogos1 trick and reboot
userinit.sh
mkdir /data/data1
chmod 1000:1000 /data/data1
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/dataimg
busybox mount -o rw,noatime,nodiratime /dev/loop0 /data/data1
if [ "$?" = 0 ];
then
if [ ! -d /data/data1/data ]
then
busybox mkdir /data/data1/data;
busybox chown 1000:1000 /data/data1/data;
busybox chmod 771 /data/data1/data;
busybox cp -rp /data/data/* /data/data1/data;
busybox mv /data/data /data/olddata;
busybox mkdir /data/data;
busybox chown 1000:1000 /data/data;
busybox chmod 771 /data/data;
fi;
busybox mount -o bind /data/data1/data /data/data;
if [ "$?" != 0 ];
then
busybox rm -r /data/data;
busybox mv /data/olddata /data/data;
fi;
### Dalvik cache...
if [ ! -d /data/data1/dalvik-cache ]
then
busybox mkdir /data/data1/dalvik-cache;
busybox chown 1000:1000 /data/data1/dalvik-cache;
busybox chmod 771 /data/data1/dalvik-cache;
busybox cp -rp /data/dalvik-cache/* /data/data1/dalvik-cache;
busybox mv /data/dalvik-cache /data/old-dalvik-cache;
busybox mkdir /data/dalvik-cache;
busybox chown 1000:1000 /data/dalvik-cache;
busybox chmod 771 /data/dalvik-cache;
fi;
busybox mount -o bind /data/data1/dalvik-cache /data/dalvik-cache;
if [ "$?" != 0 ];
then
busybox rm -r /data/dalvik-cache;
busybox mv /data/old-dalvik-cache /data/dalvik-cache;
fi;
fi;
-----
這個可能是過程!還在看資料中兩百多篇文章

Here are the instructions:
First copy the two files in the attached .zip to the root of your internal memory then run the following commands after enabling debugging mode. Make sure you have the latest busybox installed. The first command takes a while since it creates a 1 GB file on the internal memory.
adb shell
su
busybox dd if=/dev/zero of=/data/dataimg bs=1024 count=1048576
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/dataimg
busybox mkfs.ext2 /dev/loop0
mkdir /data/data1
busybox mount -o remount,rw -t rootfs /
mv /system/bin/playlogos1 /system/bin/playlogosnow
cp /sdcard/playlogos1 /system/bin/playlogos1
cp /sdcard/userinit.sh /system/bin/userinit.sh
chmod 755 /system/bin/playlogos1
chmod 755 /system/bin/userinit.sh
busybox mount -o remount,ro -t rootfs /
reboot
用開發模式進入用新版 busybox 建立一個1G的檔案 當成虛擬ext2硬碟(記憶體)
將資料轉到那個1G去。
關閉廣告