Post Reply

How to port MIUI4 to the Samsung Epic 4G from the Samsung Fascinate

OP MДЯCЦSДИT

28th February 2012, 12:17 AM   |  #1  
MДЯCЦSДИT's Avatar
OP Recognized Developer
Flag in a box
Thanks Meter: 4,622
 
6,129 posts
Join Date:Joined: Nov 2010
Donate to Me
More
-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
Code:
following ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x //version
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
-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!
The Following 7 Users Say Thank You to MДЯCЦSДИT For This Useful Post: [ View ]
28th February 2012, 12:18 AM   |  #2  
Death259's Avatar
Senior Member
Thanks Meter: 303
 
646 posts
Join Date:Joined: Nov 2010
More
Muchas gracias. I will use this to update the MIUI Builder
28th February 2012, 12:45 AM   |  #3  
Senior Member
Thanks Meter: 26
 
159 posts
Join Date:Joined: Aug 2007
Quote:
Originally Posted by marcusant

-
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!

I gotta tell you...It's amazing how you guys figure this s*!t out. My hat's off to you. Thank you for everything!
28th February 2012, 08:48 AM   |  #4  
Senior Member
Thanks Meter: 7
 
315 posts
Join Date:Joined: Feb 2011
Nice post.
Last edited by younggangsta_s; 28th February 2012 at 08:51 AM.
28th February 2012, 05:42 PM   |  #5  
omair2005's Avatar
Senior Member
Thanks Meter: 630
 
3,359 posts
Join Date:Joined: Jul 2007
excellent guide marc! Could this guide be used for porting the latest GB MIUI release?
28th February 2012, 06:10 PM   |  #6  
MДЯCЦSДИT's Avatar
OP Recognized Developer
Flag in a box
Thanks Meter: 4,622
 
6,129 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Quote:
Originally Posted by omair2005

excellent guide marc! Could this guide be used for porting the latest GB MIUI release?

you can try. Ignore the Android.policy stuff for 2.3. I haven't tested this on 2.3.

Edit: also use cm7 instead of 9. If you need help, just pm me.

Sent from my SPH-D700 using Tapatalk
Last edited by MДЯCЦSДИT; 28th February 2012 at 06:13 PM.
The Following User Says Thank You to MДЯCЦSДИT For This Useful Post: [ View ]
28th February 2012, 09:00 PM   |  #7  
Death259's Avatar
Senior Member
Thanks Meter: 303
 
646 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by omair2005

excellent guide marc! Could this guide be used for porting the latest GB MIUI release?

If you really want a guide for porting GB Miui, I can probably put one together.
The Following User Says Thank You to Death259 For This Useful Post: [ View ]
28th February 2012, 10:03 PM   |  #8  
omair2005's Avatar
Senior Member
Thanks Meter: 630
 
3,359 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by Death259

If you really want a guide for porting GB Miui, I can probably put one together.

That would be great. There were many fixes since our last gb release, so I would like to make one with the latest cm nightlies..

Sent from my SPH-D700 using Tapatalk
1st March 2012, 01:40 AM   |  #9  
Death259's Avatar
Senior Member
Thanks Meter: 303
 
646 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by omair2005

That would be great. There were many fixes since our last gb release, so I would like to make one with the latest cm nightlies..

Sent from my SPH-D700 using Tapatalk

I just realized bxfxf did a guide a while back, which i used to make my MIUI Builder. Let me know if this works for you: http://forum.xda-developers.com/show....php?t=1347201
1st March 2012, 04:03 AM   |  #10  
omair2005's Avatar
Senior Member
Thanks Meter: 630
 
3,359 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by Death259

I just realized bxfxf did a guide a while back, which i used to make my MIUI Builder. Let me know if this works for you: http://forum.xda-developers.com/show....php?t=1347201

I think it needs to be updated, if you could re-write it that would be appreciated!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Epic 4G Android Development by ThreadRank