[G1 Android Development] speedysilwady:
Introduction

If you are rooted and running a Hard SPL or a Stock SPL and really want to flash a ROM that claims to require Danger/Haykuro SPL, but you do not want to upgrade your SPL there are alternative ways to make these ROMs work on your phone without upgrading your SPL.

This is a very easy process, Ive done it with a few ROMs with no problems:

First off, keep in mind that on a Stock SPL

/system = about 67MB

Any ROM that has a system partition 67MB or Greater will require Danger/Haykuro SPL, UNLESS you can shrink that ROM's /system down below 67MB.

How do you do this, you ask?

------------------------------------------------------------------------------------------------------------------------------------------------------

Method #1 (Easy) -Move/Delete unneeded Apps, Sounds, Files

------------------------------------------------------------------------------------------------------------------------------------------------------

NOTE: This Method does NOT apply to HERO/SENSE ROMs, they are way too big! Check Method 2 if you want to fit ANY ROM on any SPL (Advanced)

Make sure you have 7-Zip! Dont have it? Google is your friend!

1) Read the first post and changelog of the ROM you wish to install on your phone. After youve made yourself familiar with what needs to be Wiped (ie: dalvik cache, ext, data) the Partition Layout the developer suggests (ie: FAT32/Ext3/Swap), then go ahead and download the ROM. Unzip it to a folder, name it something short. for example: C:\1\rom

now click on the system folder, scroll down and click on the media folder, and delete the

audio

folder. This will erase every sound effect and ringtone on your phone and usually will free up about 2MB in system.

To get your ringtones and sounds back download this (thanks Robot Teapot!) and unzip the folder to the root of your sdcard.

(note: your ringtones might not show up the first time you boot the rom, in this case, reboot and theyll all be right there)

If removing your ringtones isnt enough to keep /system under 67MB then move on to step 2), if youre already below 67MB skip to step 3)

2) Return to the first post and changelog of the ROM you are trying to install. Look for apps the dev has added to the ROM that dont seem necessary for the ROM to function such as Twidroid.apk, Facebook.apk, NeroMedia.apk, WirelessTether.apk, WiredTether.apk, Maps.apk(takes up a lot of room, and sometimes outdated...just delete it and install the latest from the market!)etc.

You can use Android Barebones/Necessary Apps - CyanogenMod Wiki as a general guideline to determine which apps are essential to Android running properly and the functions of many system apps.

Delete those unnecessary apps or move them to your sdcard, and use ASTRO File Manager or a similar app to install them after you flash the ROM.

3) Okay, assume youve trimmed /system down below 67MB, good job! now you need to get those folders you extracted and the boot.img zipped up and signed. select the folders from the ROM you extracted and modified, the boot.img, right click, and select 7-Zip < Add to .zip

4) Download Stericson's Autosign place it in any directory and follow the instructions in the thread to sign your zip file.

5) Move the signed zip to your SD Card, making sure you have the proper partitions, wipe the necessary things, then flash your zip file and cross your fingers!

------------------------------------------------------------------------------------------------------------------------------------------------------

Method #2 (Advanced) -"Cache Hack"

------------------------------------------------------------------------------------------------------------------------------------------------------

NOTE: This Method will fit any ROM on any SPL but is more advanced than Method 1

lbcoder introduced the concept of moving files to the /cache partition of the phone and linking them back to /system or /data.

Firerat has come up with a way to make this concept work and explains the whole process in his thread and shows some examples of his method by providing some ports:

[HACK][ROM][BOOT.IMG][CACHE]-Stk SPL ROMs with Danger SPL size & extra 30mb! any SPL!

------------------------------------------------------------------------------------------------------------------------------------------------------

There you have it folks! Congrats if youve bypassed the Danger SPL requirements! Be sure to always keep a Nandroid/BART backup!!!!

Disclaimer: Not saying these methods will brick or damage your phone, but in the rare event this occurs I am NOT responsible for bricks or or any damages to your phone!