[EVO 4G Android Development] tjohnsonjr:
These are insturctions for making a clean AOSP Rom. There will be issues with the Rom once you finish. These instructions are for Linux(I used Ubuntu). You will have to have adb installed already. Your computer has to be 64bit or you not be able to compile the source.

Please Note. 4G and HDMI will not work. This is not a stripped down Sense Rom. There is no SENSE AT ALL!!! The Camera will work but not the Camcorder. Fixes will come but we are hoping to get contributions from other devs to help build up the AOSP support for the EVO. As great as CM6 is, we need choices. Now let the fun begin!!!

Open the Terminal:

The following needs to be ran as Root

cd /usr/bin/
curl http://android.git.kernel.org/repo > repo
chmod a+x /usr/bin/repo

Exit root and return back to your home folder. This will create a generic build. This is going to take a couple of hours depending on your internet connection

mkdir ~/android
cd ~/andoid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

This will download the EVO specific files:

cd ~/android/device/htc
git clone http://github.com/CyanogenMod/android_device_htc_supersonic.git supersonic

Now the BoardConfig.mk needs to edited

Go to /android/device/htc/supersonic/BoardConfig.mk

Locate

TARGET_RECOVERY_UI_LIB := librecovery_ui_supersonic librecovery_ui_htc
TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_htc

Now add a “#” in front of each line

#TARGET_RECOVERY_UI_LIB := librecovery_ui_supersonic librecovery_ui_htc
#TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_htc

Save and exit. Then in the terminal type

cd ~/android
cp ~/android/device/htc/supersonic/supersonic.mk ./buildspec.mk

Now Go to /android/frameworks/base/core/res/res/values and locate the Config.xml file. Open with the text editor and look for this line

<string name="default_wallpaper_component">@null</string>

Right below this line add. Reference this website to use as an example as to what its supposed to look like http://pastebin.com/mpmpEaKq

<!-- Handle notifications differently if device only uses an amber/green
LED. This also needs a liblights module that enables them accordingly. -->
<bool name="config_amber_green_light">true</bool>

Save and exit

Now load Cyanogenmod6 onto your phone. Once its loaded, connect your phone to the computer and in the terminal type

cd /device/htc/supersonic
chmod a+x extract-files.sh
./extract-files.sh

This will download files from the phone. You will get errors at the end. Get a stock Sense Rom and locate the files that came up in error and Copy the files into /android/vendor/htc/supersonic/propietary folder

Now in the Terminal

cd ~/android
. build/envsetup
lunch

Select option for the supersonic(6th or 7th)

Now type(This will take awile depending on the speed of your computer)

make

Once it finishes, type

make otapackage

Lastly, to get the phone to boot, get the libmedia.so file from CM6 and place it in your /system/lib folder before flashing.

This will create your ROM is a zip file. DO NOT FLASH THIS TO YOUR PHONE. IT IS NOT ROOTED AND IF YOU FLASH IT WITHOUT ADDING ROOT PERMISSIONS, YOU WILL LOSE ROOT. YOU HAVE BEEN WARNED.

ENJOY