Alright, let's try this again.
I'm trying to learn how to port this damn thing to the Evo.
After some reading around, this is what I basically need to do to at least be able to boot MIUI to my understanding.
Plus, I don't really want to use the automated kitchen.
Grab miui chinese deodex and Eng pack (ty MarkHUK)
Grab a rom zip for Evo (last weeks version)
add/replace all common chinese.zip with files with files from eng pack
replace these with the one from the Evo miui
boot.img
system/usr
system/lib/hw
system/lib/modules
system/etc/vold.stab
system/framework (especially framework-res.apk)
build.prop
Theoritically speaking, would this be everything I need to do in the big picture? Or am I missing something else?
Have some patience with me and I promise to start contributing soon
It's a bit more involved than just copying the files. But I'll give it a try:
1) Open the most recent working MIUI EVO ROM and the ROM to be ported (N1)
2) Copy the xbin, usr, bin, etc, and lib folders over (to get more involved, open each folder and only copy the files that are in the EVO ROM that aren't in the N1 ROM)
3) Go through each folder and delete the files that start with naichimi (sp? I think?) as those are the Nexus One files. You'll see them in the usr subfolders.
4) In the etc\firmware folder, delete the default_att and default_france files.
5) In the etc\permissions folder, delete the telephony.gsm.xml file
6) In the media folder, delete the recovery.img file.
7) Copy the kernel and build.prop over along with updater-script.
8) Copy the sprint.hardward.twincam.jar file in the framework folder.
That's the long and short of it. Now for the complex part. The framework-res.apk and framework.jar files have to be decompiled and edited.
9) Open framework-res.apk (using WinRar perferrably) into it's own window from both ROMs. In res\xml...copy the eri.xml file over. This gets rid of the roaming triangle. Close both windows and let WinRAR update the framework-res.apk file in the N1 rom.
10) Get apktool for these steps. Copy the edited framework-res.apk into the folder with apktool in it. Also copy the N1 framework.jar into that folder as well.
11) Open a command prompt and go to the directory with apktool in it.
12) Type "apktool if framework-res.apk". This will import the file as a library. This is helpful if you're doing translations.
13) Now decompile framework.jar by typing "apktool d framework.jar"
If you know what changes to make, then you're good...otherwise, I typically pull the framework.jar out of CM6.1 and name it frameworkc.jar. Then I decompile it.
14) Having both windows open (getting really messy here) go to smali\com\google\android and copy the mms folder over. This is the MMS fix.
15) Now go to smali\android\hardware and copy over the CameraSwitch.smali, HTCFrontFacingCam.smali, Camera.smali, Camera$Parameters.smali over.
16) This next one is iffy, but in the smali\android\media folder, you mainly want CameraProfile.smali and CamcorderProfile.smali, DecoderCapabilities.smali, Mediafile.smali, MediaRecorder.smali, and MiniThumbFile.smali. There may be other files too so you have to check for size differences. This mainly fixes the Camera and Camcorder to work with the CM6.1 Camera.apk as well as get the sound working.
17) After that, you have to recompile framework.jar (apktool b framework.jar.out) and copy the resulting file from framework.jar.out\dist back into the N1 ROM.
That's the long and short of it, but the rest is copying over the Camera.apk from the CM6.1 ROM to the N1 ROM, which should now be the new EVO ROM.
Of course BigRushDog can confirm these steps.