[G1 Android Development] Firerat:
I still have to do some more testing on this,

but you guys could help :)

this is my latest CacheHack Patching Method

This is Danger Only ( Sorry NoneDangers, I'll sort something out for you soon )

Much Much simpler than previous patches

Instructions

Flash Vega Legend 0.9

Reboot * - sign in

Flash/push Vega Legend Vid Fixes

Reboot

Flash FR-VegaLegend091-CH_S.zip

Flash/push Vega Legend Vid Fixes

* Reboot, give it a couple of extra Minutes at the g1 while it moves stuff around

You should be able to flash this over a preinstalled VL 091 ( providing you haven't added anything to the system apps ),

Just give it a few extra minutes while it copies from the SD Card

don't forget to nand first !

Key Features

CacheHack - lol, yeah honestly its got cache hack ;)

All System Apps on System

Loccy's KbLights - I just made a couple of alterations to the script ( which I should post in his thread )

Alpha Kernel Switch - ( works great in CE2.1 but, not working well with su in the Legend, if you want to try download ASE, Android Scripting Environment, and add ASE shortcut ( Not from the tray, longpress --> shortcuts ;) to one of your home screens

How I do it

I broke my own rule, and used a2sd

But when I break rules , I break them for a reason ;)

This script runs, does its thing , then creates the proper a2sd script and runs that. Since the init.rc waits for a2sd to finish *

Nothing gets in the way of my script moving stuff

* It waits for cm.filesystem.ready 1, saves my having to add a wait of my own to the ramdisk ;)

the temp a2sd

#!/system/bin/sh
export PATH="$PATH:/system/csys/system/bin/:/system/csys/system/xbin:/system/csys/system/xbin/bb"
RM_CMD="busybox rm"
MV_CMD="busybox mv"
<snip my tool exports, you get the idea >

rwsystem

if [ `$MOUNT_CMD |$GREP_CMD -q "/dev/block/mmcblk0p2";echo $?` != "0" ];
then
# fsck the sdcard filesystem first
$E2FSCK_CMD -fy /dev/block/mmcblk0p2;
# set property with exit code in case an error occurs
$SETPROP_CMD cm.e2fsck.errors $?;
# mount and set perms
$MOUNT_CMD -o noatime,nodiratime -t auto /dev/block/mmcblk0p2 /system/sd;
$CHOWN_CMD 1000:1000 /system/sd;
$CHMOD_CMD 771 /system/sd;
$SYNC_CMD

fi

$MKDIR_CMD /system/csys/system/
for i in usr xbin media fonts etc customize bin;do
$CP_CMD -a /system/$i /system/csys/system/
$MV_CMD /system/$i /system/${i}old
$LN_CMD -s csys/system/$i /system/$i
$RM_CMD -r /system/${i}old
done

for i in framework;do
$CP_CMD -a /system/$i /data/
$MV_CMD /system/$i /system/${i}old
$LN_CMD -s /data/$i /system/$i
$RM_CMD -r /system/${i}old
done

if [ -d /system/sd/app_s ] && [ ! -d /data/app_s ];
then
app_sdir="/system/sd/app_s"
else
app_sdir="/data/app_s"
fi

if [ ! -d /system/csys/system/app ];
then
$MKDIR_CMD /system/csys/system/app
fi

for i in Phone.apk Mail.apk;do
find ${app_sdir} -name $i -exec $MV_CMD {} /system/csys/system/app/ \;
done

if [ -L /system/app ];
then
$RM_CMD /system/app
fi

$CP_CMD -a ${app_sdir} /system/app
if [ "$?" = "0" ];
then
$RM_CMD -r ${app_sdir}
fi
$LN_CMD -s /csys/system/app/* /system/app/

[COLOR="Blue"]This is where I create the proper a2sd [/COLOR]
cat > /system/bin/a2sd << "EOF"
[COLOR="Magenta"]
#!/system/bin/sh
#
# Apps2SD using symlinks and bind mounts
# shade@chemlab.org (cyanogen) Thanks Cy! & ccyrowski
# modified by Firerat 2010-03-24
# Skip a2sd functions if not a G1 ( mt3g in mind )
# Conditional added to location of Dalvik-cache, keep in internal memory where possible
# Firerat 2010-03-30 - added moving apps back to data for mt3g's
# Firerat 2010-03-31 - slight change to sd2data, now copy to side, remove link and move into place
# - therefore Much less chance of Android getting confused when ran in terminal
# Firerat 2010-04-13 - better estimate of dalvik-cache size ( I forgot framework )

<snip a2sd, blah blah blah >.........[/COLOR]
EOF
[COLOR="Blue"]^^^ the EOF stops the cat, the script continues as normal now [/COLOR]
sync
rosystem
$CHMOD_CMD 755 /system/bin/a2sd
/system/bin/sh /system/bin/a2sd