[G1 Android Development] sisterchick:
Diet Android

Glad to...there are two ways you can go about it. You can install the stock ROM and use Titanium Backup to uninstall stuff you don't want and then wipe the dalvik or you can "reheat" the ROM before you install it - unzip it, take out the stuff you don't need, then repack it. I do the later so that I can use Firerat's custom MTD to save space internal. I use 70/2 for my mtdpartmap.txt setting. I install all apps internal and usually have about 30 Mb of space left over.

Here's what I do:

1. I use Daneshm90's Update Zip Modifier to do the work of repacking and resigning the ROM. You can get it here: http://xdaforums.com/showthread.php?t=717437

2. I made a folder called diet-android that contains the fonts, ringtones, and apks that I use. I made a little bitty boot animation (20Mb). I found it saves some RAM vs the CM boot with is like 1600 Mb. I also changed out the notification icons in CM7 Mms.apk to green the match Gingerbread. I also have the cacerts.bks file that Ezterry provided to patch the security hole/certificates exploited at kernel.org. I downloaded Zeam.apk from XDA and deleted all the hdpi folders to make it even lighter.

2. I unzip the ROM to the "placehere" folder in Update Zip Modifier

3. I run a Windows batch script I made to do the removal and copy work. Here is the text from my script (saved as a .bat file):

del placehere\system\app\Browser.apk (I use Opera Mini from Market - faster and lighter)

del placehere\system\app\Gallery3D.apk (I use QuickPic from Market - faster and lighter)

del placehere\system\app\LatinIME.apk (I only use physical keyboard)

del placehere\system\app\ADWLauncher.apk (I use Zeam Launcher - faster and lighter)

del placehere\system\app\RomManager.apk (I use Amon-RA recovery, not Clockwork)

del placehere\system\app\LiveWallpapersPicker.apk (A G1 can't handle live wallpapers)

del placehere\system\app\CMWallpapers.apk

del placehere\system\app\CMStats.apk

del placehere\system\app\Music.apk

del placehere\system\app\MMS.apk

del placehere\system\app\PicoTts.apk

del placehere\system\app\Protips.apk

del placehere\system\app\QuickSearchBox.apk

del placehere\system\app\TtsService.apk

del placehere\system\app\VoiceDialer.apk

del placehere\system\app\VpnServices.apk

del placehere\system\media\bootanimation.zip

del placeherer\system\etc\security\cacerts.bks

del placehere\system\etc\apns-conf.xml (I edited this file to only include AT&T)

del placehere\META-INF\CERT.RSA

del placehere\META-INF\CERT.SF

del placehere\META-INF\MANIFEST.MF

del /q placehere\system\fonts\*.*

del /q placehere\system\media\audio\ringtones\*.*

del /q placehere\system\media\audio\notifications\*.*

del /q placehere\system\media\audio\alarms\*.*

copy diet-android\cacerts.bks placehere\system\etc\security\cacerts.bks

copy diet-android\zeam.apk placehere\system\app

copy diet-android\fonts\*.* placehere\system\fonts

copy diet-android\media\audio\ringtones\*.* placehere\system\media\audio\ringtones\*.*

copy diet-android\media\audio\notifications\*.* placehere\system\media\audio\notifications\*.*

copy diet-android\apns-conf.xml placehere\system\etc\apns-conf.xml

copy diet-android\bootanimation.zip placehere\system\media\bootanimation.zip

copy diet-android\CM-MMS\MMS.apk placehere\system\app\MMS.apk

4. Once everything is added and deleted, I use the script.bat provided with Update Zip Modifier to create a new signed zip file. This is what I install. Typically, it is about 40 Mb in size vs stock at 55 Mb. Configured this way, GB CM7 runs just as well as a Froyo ROM on my old G1.

I know this is a lot of info. Let me know if you have questions. I am NOT a dev, but I'll try to help.