FORUMS
Remove All Ads from XDA

[GUIDE]Port MIUI v4 to your device[UPDATED]

2,792 posts
Thanks Meter: 2,263
 
Post Reply Email Thread
This guide is a result of proxuser's guide..I have just updated it to include some more info...
I use this is in my own ports..Haven't had the need of doing anything else except a few smali changes etc to fix bugs
This should be enough to get it booting....

Check your CPU type and also the PORT type . Both should be the same:
http://smart4u.org/forum/Thread-List...v7-ARMv6-ARMv5

Also make sure you choose devices nearly identical and from the same manufacturer..
eg: HTC Desire and Nexus One, Desire HD and Desire S, HTC One V and Desire S etc...the list goes on...



The CM9 or ICS rom for your phone will be referred to as BASE. The MIUI Rom used for porting will be called PORT.

STEP 1:
Extract PORT to any folder and BASE to a working Kitchen folder or any other update.zip maker folder

STEP 2:
Delete app, framework and media folders from /system folder of BASE
Transfer these folders from PORT to BASE.

STEP 3:
Delete libandroid_runtime.so form /system/lib
Copy libandroid_runtime.so, content-types.properties and liblbesec.so from PORT /system/lib to BASE /system/lib

STEP 4:
Copy invoke-as from PORT /system/xbin to BASE

STEP 5:
Copy telocation.td , yellowpage.db and weather_city.db from PORT /system/etc to BASE

Copy miui-framework.xml from PORT /system/etc/permissions to BASE

STEP 6:
build.prop CHANGES:
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x (example: 2.8.3)


ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg

THE ONES BELOW IF THERE..DONT ADD THEM NOR DELETE
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg

STEP 7
updater-script CHANGES:
1.) First to add a bit of style: put this: http://pastebin.com/iEDfSCdh



So as you can see...put it after the first line

2.) The important part

Code:
set_perm(0, 0, 06755, "/system/xbin/invoke-as");


FIX SUPERUSER ISSUES:
Download: http://download.chainfire.eu/204/Sup...erSU-v0.94.zip

Put the SuperUser.apk to /system/app and replace /system/xbin/su with BASE

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

for more info: http://forum.xda-developers.com/show...50&postcount=2 (thanks Lens_Flare)

HIT THE THANKS BUTTON IF HELPED AND PLEASE LINK THE THREAD IF YOU MAKE A WORKING BUILD!!
Attached Thumbnails
Click image for larger version

Name:	2.PNG
Views:	12871
Size:	18.7 KB
ID:	1254830   Click image for larger version

Name:	1.jpg
Views:	12868
Size:	30.0 KB
ID:	1254831  
The Following 27 Users Say Thank You to shubhamchamaria For This Useful Post: [ View ] Gift shubhamchamaria Ad-Free
 
 
12th August 2012, 04:25 AM |#2  
OP Senior Member
Flag Mumbai
Thanks Meter: 2,263
 
Donate to Me
More
Cmon....start posting.

Sent from my One V using XDA
21st August 2012, 06:14 PM |#3  
ljbaumer's Avatar
Senior Member
Flag California
Thanks Meter: 83
 
More
Hi Snub,

First off I would like to say that this guide is really great and useful and I just used it to make a really early alpha port of MIUI over to the SGS3. I haven't published it or even attempted to flash it mainly because I feel like I must've done something wrong. It just felt way to easy.

The main thing I am worried about is the updater-script. The original one I used is from AOKP Milestone 6.1 and it looks absolutely nothing like the one in your guide. I was just wondering if you could look over my rom and give me some feedback saying what I did right and what I did wrong. I am originally just a themer so I don't have a lot of experience creating ROMS aside from making one for the DROID ERIS 2 years back.

Here is the ROM: http://www.ljbaumer.com/android/MIUI...LPHA_0.0.1.zip

Anyways, thanks again for the guide!
Ljbaumer
21st August 2012, 06:42 PM |#4  
OP Senior Member
Flag Mumbai
Thanks Meter: 2,263
 
Donate to Me
More
Quote:
Originally Posted by ljbaumer

Hi Snub,

First off I would like to say that this guide is really great and useful and I just used it to make a really early alpha port of MIUI over to the SGS3. I haven't published it or even attempted to flash it mainly because I feel like I must've done something wrong. It just felt way to easy.

The main thing I am worried about is the updater-script. The original one I used is from AOKP Milestone 6.1 and it looks absolutely nothing like the one in your guide. I was just wondering if you could look over my rom and give me some feedback saying what I did right and what I did wrong. I am originally just a themer so I don't have a lot of experience creating ROMS aside from making one for the DROID ERIS 2 years back.

Here is the ROM: http://www.ljbaumer.com/android/MIUI...LPHA_0.0.1.zip

Anyways, thanks again for the guide!
Ljbaumer

Don't use aokp...use cm9 or aosp ICS then it will look like my guide...

Sent from my One V using XDA
The Following User Says Thank You to shubhamchamaria For This Useful Post: [ View ] Gift shubhamchamaria Ad-Free
21st August 2012, 09:08 PM |#5  
oguzhan mobile's Avatar
Senior Member
Flag Bursa
Thanks Meter: 228
 
More
I have codeaurora ics rom. I use different framework. Thus guide not work for me. How to apply micode patchrom for ics rom? I think it would be more useful.
22nd August 2012, 08:12 AM |#6  
danielgek's Avatar
Senior Member
Flag Coimbra
Thanks Meter: 198
 
Donate to Me
More
I dont have sure but i think miui patch its only for 2.3

Sent from my Desire HD using xda app-developers app
22nd August 2012, 09:46 AM |#7  
oguzhan mobile's Avatar
Senior Member
Flag Bursa
Thanks Meter: 228
 
More
Quote:
Originally Posted by danielgek

I dont have sure but i think miui patch its only for 2.3

Sent from my Desire HD using xda app-developers app

look at:https://github.com/MiCode/patchrom_android
22nd August 2012, 03:39 PM |#8  
OP Senior Member
Flag Mumbai
Thanks Meter: 2,263
 
Donate to Me
More
Quote:
Originally Posted by oguzhan mobile

look at:https://github.com/MiCode/patchrom_android

tell me what you mean by different framework ??
22nd August 2012, 04:41 PM |#9  
oguzhan mobile's Avatar
Senior Member
Flag Bursa
Thanks Meter: 228
 
More
Quote:
Originally Posted by shubhamchamaria

tell me what you mean by different framework ??

There is actually MIUI for u8800. But not fast and stable. Applications open very late. Rom link is here: http://www.miui.com/extra.php?mod=download/rom&fid=33


And port rom framework files. Screenshot is here :
24th August 2012, 12:18 PM |#10  
Senior Member
Thanks Meter: 120
 
More
hi thanks for sharing.
i will give this a whirl some time. i have also read proxuser and Lens_flare guides... but haven't really applied them yet.
however i was successful in using guides from jjdoctor and riyal over the xperia section...
thanks again and will let you know what happens.
27th August 2012, 09:45 AM |#11  
Shrewdy's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 320
 
More
Which MIUI ROM to use ??
hi,

I read your post and its quite informative. However i did not find an answer to one question...

I have a Defy and currently we have CM9 (ICS) /CM10 (JB) builds for it. Now i understand that these builds can be used as the BASE ROM.

But what MIUI rom should be used as PORT ROM ?? (last stable MIUI build for Defy was 2.4.13).

I am thinking of porting MIUI over CM10!! But i am confused as to which MIUI version should i use ???

Thanks
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes