How to port MIUI4 to the Samsung Epic 4G from the Samsung Fascinate
-Download the latest Cyanogenmod 9 for the Samsung Epic 4G and extract it to a folder called MIUI-port. Also extract a second copy to a folder named EPIC-CM-UNMODDED
-Download the latest MIUI for the Samsung Fascinate and keep it open in a file manager
-Delete the folders ‘/system/framework/’ and ‘/system/app/’ from your MIUI-port folder you made.
-Copy the folders ‘/system/framework/’, ‘/system/media/’ and ‘/system/app/’ from the Samsung Fascinate MIUI that you downloaded into your MIUI-port folder. If asked, overwrite.
-Copy the files ‘/system/lib/libandroid_runtime.so’, ‘/system/lib/liblbesec.so’, and ‘/system/lib/content-types.properties’ from the Samsung Fascinate MIUI into the MIUI-port rom.
-Copy the file ‘/system/xbin/invoke-as’ from the Samsung Fascinate MIUI into the MIUI-port rom.
-Copy the files ‘/system/etc/telocation.db’ and ‘/system/etc/yellowpage.db’ from the Samsung Fascinate MIUI into the MIUI-port rom.
-Replace ‘/META-INF/com/google/android/updater-script’ in MIUI-port with this one: http://goo.gl/9UhXR
-Open ‘/system/build.prop’ from MIUI-port in Notepad ++ and change the
-De-compile the MIUI ‘/system/framework/android.policy.jar’ and open ‘\smali\com\android\internal\poli cy\impl\PhoneWindowManager.smali’ then try reversing the variables 0x* near ‘.line 1094’ and ‘.line 1096’. For example, make 0x1 0x0 and 0x0 0x1.
-In the same file, mess around with stuff using this as a reference to fix the software keyboard: http://goo.gl/9UhXR
-Recompile android.policy.jar and replace it with the one in ‘/system/framework/’ in MIUI-port
-De-compile /system/framework/framework.jar and copy all files from com->android->telephony->cdma->sms from CM9.
-De-compile /system/framework/framework.jar and copy all files from com->google->mms from CM9. Then swap the mms_config.xml located in /xml from the one found in CM9(I am going to be messing around with the MMS.)
Decompile /system/framework/framework.jar on both CM9 and MIUI. Then go into com\android\internal\telephony\cdma and swap CdmaDataConnectionTracker.smali from CM9 to MIUI.
-Next go to folder com\android\internal\os and find ZygoteInit.smali. Swap from CM9 to MIUI. **Still getting ZygoteInit errors.
-Zip up the MIUI-port folder and flash!!
You can find the latest guide and documentation here
Guide by Marcusant and Darkierawr.
Work by the Epic CM team, the CM team, the Fascinate MIUI team, the Chinese MIUI team, the MIUI.US team, the G2 MIUI team, and others. If I forgot you, please say!