[Streak 5 Android Development] tazzz811:
Sharing Mix & Match

One flaw i have found on most CUSTOM ROM for DELL Streak... There are times that applications (only apps running under superuser that requires root access) such as root explorer, setcpu and the like executed as blank screen. But my workaround is just killing the app and run it again... I guess Spidla & DJ mentioned that bug before and it's the superuser app that's causing it...

Moving forward, my Mix & Match setup performs well... I didn't experience any system FC's... Games are running well such as NFS Shift 1.0.62, Heavy Gunner HD, Let's Golf... Wifi is stable... Bluetooth paring to Jabra Headset is working fine... Battery life is decent.. Using the phone in normal usage (text, call, standby when outside the house) doesn't consume much power... I can't tell much the battery life since i don't let my streak run out of juice... I charge it every night...

All in all, my Mix & Match setup works well for me... One thing i am still searching, how to mount the ext2 partition of my SD Card to dell streak, because i've done some test script but it couldn't detect ext2 of my SD Card using this script for my d2sd

mount -o noatime,nosuid,nodev,nodiratime -t auto /dev/block/mmcblk0p2 /mnt/asec/d2sd/sdext

it seems that our Dell Streak doesn't have mmcblk0p2... I don't really know but that's my guess because my d2sd script works well on my LG Optimus One P500.

Sharing you guys my d2sd script and perhaps somebody could help me make it work on our Dell Streak... The purpose of this is to move the whole /data partition to your SDcard's 2nd(ext) partition, which could give you virtually unlimited space to install app... Though we have a big space internally but this thing can give us more space by merging internal storage capacity + sd card ext2 partition...

#
#D2SD
#

#Assign values

bb="/system/xbin/busybox_d2sd"
work="/mnt/asec/d2sd"
sysdir="/system/d2sd"
count="0"
sdext="/dev/block/mmcblk0p2"
log="$sysdir/error_`$bb date +%m%d%y%H%M`"
extcheck="/system/bin/e2fsck"

#Assign functions

aborting ()
{
$bb mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
if [ ! -d $sysdir ]
then
$bb mkdir $sysdir
$bb chmod 0771 $sysdir
$bb chown 1000:1000 $sysdir
fi
$bb echo "An error has occurred $line!" > $log
$bb echo "Unable to proceed with data2sd" >> $log
$bb echo "Logging mount status:" >> $log
$bb mount >> $log
$bb mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /system
$bb mkdir $work/sd
$bb chmod 0771 $work/sd
$bb chown 1000:1000 $work/sd
$bb mount -t vfat /dev/block/mmcblk0p1 $work/sd
if [ ! -d $work/sd/d2sd ]
then
$bb mkdir $work/sd/d2sd
fi
$bb cp $log $work/sd/d2sd
$bb umount $work/sd
$bb sync
exit 1
}

sdcheck ()
{
while [ ! -h /sys/block/mmcblk0 ]
do
count=`$bb expr $count + 1`
sleep 1
if [ "$count" -ge 10 ]
then
line="while waiting for SD card to settle"
aborting
fi
done
}

#Starting d2sd

if [ -e $sysdir/error* ]
then
line="with the previous data2sd attempt"
aborting
fi
if [ ! -d $work ]
then
$bb mkdir -p $work/data
$bb chmod -R 0771 $work
$bb chown -R 1000:1000 $work
fi
sdcheck
if [ ! -e $sysdir/d2sded ]
then
if ! $bb mke2fs -b 4096 -i 4096 $sdext
then
line="while formatting SD ext partition"
aborting
fi
$extcheck -y $sdext
$bb mkdir $work/sdext
$bb chmod 0771 $work/sdext
$bb chown 1000:1000 $work/sdext
if [ ! -d $work/data ]&&[ -d $work/sdext ]
then
line="while creating intermediate mountpoints"
aborting
fi
if ! $bb mount -o noatime,nosuid,nodev,nodiratime -t auto $sdext $work/sdext
then
line="while mounting SD ext"
aborting
else
if ! $bb cp -a /data/* $work/sdext
then
line="while copying data contents"
aborting
else
if ! $bb mount -o move /data $work/data
then
line="while moving /data"
aborting
else
if ! $bb mount -o move $work/sdext /data
then
line="while mounting SD ext as /data"
aborting
fi
fi
fi
fi
for i in property misc system dalvik-cache local xt9 amit lgdrm backup
do
if ! $bb rm -rf data/$i
then
line="while removing duplicate files"
aborting
else
if ! $bb ln -s $work/data/$i /data
then
line="while linking important files"
aborting
fi
fi
done
$bb sync
$bb mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
if [ ! -d $sysdir ]
then
$bb mkdir $sysdir
$bb chmod 0771 $sysdir
$bb chown 1000:1000 $sysdir
fi
$bb touch $sysdir/d2sded
$bb mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /system
else
$extcheck -y $sdext
if ! $bb mount -o move /data $work/data
then
line="while moving /data"
aborting
else
if ! $bb mount -o noatime,nosuid,nodev,nodiratime -t auto $sdext /data
then
line="while mounting SD ext as /data"
aborting
fi
fi
fi
$bb sync
exit