[G1 Android Development] Firerat:
Very Quick install instructions ( Danger Only, sorry NoneDanger, manual patching further down post )

First install Vega's Legend 0.9.0, boot that, then flash the You Tube Fixes, boot that

Then Flash

FR-VegaLegend091-CH_S.zip

You can try flashing all three at once, but for some reason you don't get a mobile data connection, no idea why.

As well as being CacheHack the above includes Loccy's KB Lights

http://xdaforums.com/showthread.php?t=661343

be sure to drop by and thank them all

They are also working on a better solution, I believe the final solution will be within the system framework

But for now a while loop script will do ;)

Edit : [UTIL] BART-1.2.0 Backup and Restore Tool

Now has cache backup!

Patching a fresh Vega Legend 0.9.1 DangerSPL

Fresh flash of Vega's Legend 0.9.0 with the 0.9.1 fixes over the top

a quick size up tool

[quote]
adb push Patch/cache/system/bin/qdu.sh /sbin/
[/quote]

chmod 755 /sbin/qdu.sh

its setup with a sha bang for an android ROM, to get it to work in recovery

sed s~system/~s~ /sbin/qdu.sh -i

now qd<tab><enter>

will show you the size of the directories of the directory your in

or

qd<tab>/syst<tab>

will show you the size of everything in /system ;)

in an other term on your PC

[quote]adb shell watch "busybox df -h"[/quote]

will let you keep an eye on the space being used and avalilabe to you

ok, so lets begin

mount everything

mount -a

first we need to create a mount point for mtdblock4

mkdir /system/csys

and then we need to bind mount /cache to it

busybox mount -o bind /cache /system/csys

ok, lets start moving stuff

lib is too big for DangerSPL

lets just move some of the other stuff and see what happens

cd /system/
mkdir csys/system
for i in usr/ xbin/ media/ fonts/ etc/ customize/ bin/;do
mv $i csys/system/
done

were still short of space on system

mv framework/ /data/

lets stick a few apps on /system/csys

after using

ls /data/app_s/ -Slh

I'm going to pick these

mv /data/app_s/Phone.apk csys/system/app/
mv /data/app_s/Mail.apk csys/system/app/

then move the system apps to system

mv /data/app_s/ app

and now, before we forget create links

ln -s csys/system/* .
cd app/
ln -s ../csys/system/app/* .
cd ../
ln -s /data/framework .[code]

now get the boot.img onto the phone and use

flash_image boot /sdcard/boot-cachehack.img

don't forget the kernel modules

Reboot, and you done.......

Patching Vega Legend 0.9.1 NoneDanger SPL

you guys have a harder and at the same time easier task in getting a sense ROM onto your phone, essentially you have more space available, but you can't flash direct.

you going to need to unzip the ROM on your PC , and have a look at the sizes

Decide what you need to put on cache, and make links

see lib and framework in the DangerSPL Walkthrough?

44.4M	/system/lib

19.6M	/system/framework

1.3M	/system/xbin

65.3 mb right there

so in recovery

mount /system
rm -r /system/*
mkdir /system/sd
mount -a
mkdir /system/csys
mount -o bind /cache /system/csys
for i in lib framework xbin ;do
install -d /system/csys/system/$i
done
ln -s /system/csys/system/* /system/

now, on your PC zip up the ROM, don't sign it

get it onto your sdcard

unzip /sdcard/rezippedROM.zip system data -d /

that will unzip everything beginning with system and data to the / directory

when lib, framework xbin hit the links we made, they will end up on cache :)

links, a messy business

but I have a script for that

unzip /sdcard/rezippedROM.zip META-INF -d /data/

now, attachced is NoneDangerDIY-linksandperms.txt

( Edot 2010-04-19 Fixed the script so it works in recovery )

get that onto your sdcard and

sh /sdcard/NoneDangerDIY-linksandperms.txt

( Tip sh /sd<tab>/None<tab> )

this will translate the ROM's update-script links and permissions into unix commands, it spits them to screen and should save them in memory

do

cat /dev/install.sh

to make sure its there

then

sh /dev/install.sh

Ok, next is kernel Modules

the zip above ( FR-VegaLegend091-CH_S.zip ) contains the directories

sdcard/kernels/

and in that are 3D and RamHack kernels

choose one and

cp -a /sdcard/kernels/<kernel>/system to /system/

flash_image boot /sdcard//kernels/<kernel>/boot.img

other files, in cache/system/bin are

a2sd

rwsystem

rosystem

data-cache.sh

qdu.sh

Do not install a2sd, its modified to patch Danger, it might do strange things, I didn't think about NoneDanger when I was doing it :)

copy the others to /system/bin/

an then

chmod 755 /system/bin/*system

Last thing, system app_s

df
du /data/app_s

hopefully the du for app_s is less than the df of /system

if so

mv /data/app_ /system/app

if not, then use the same trick as I did for DangerSPL , and link an app from /system/csys/system/app to /system/app/

I think you will be ok though

Oh, nearly forgot , in cache/system of the zip is a file called patch

cp that to /system/

its Loccy's KB lights

yeay , woo hoo, were done

reboot

Hope that this is useful,

I know its still awkward for NoneDanger, soon I will try to make it a doddle for a dev zip up a ROM which is truly ready for AnySPL, and maybe optimise for mt3g

Coming sometime in the future..

I will do some more work on NoneDanger Sense I'm hoping to do a generic Patch to detect which SPL and install optimised for Danger, NoneDanger , and maybe I figure out something that will improve things for MT3G