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

Search This thread

shubhamchamaria

Senior Member
Jan 28, 2011
2,792
2,243
Mumbai
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-of-devices-ARMv7-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

attachment.php


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");

attachment.php


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

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

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

for more info: http://xdaforums.com/showpost.php?p=28885450&postcount=2 (thanks Lens_Flare)

HIT THE THANKS BUTTON IF HELPED AND PLEASE LINK THE THREAD IF YOU MAKE A WORKING BUILD!!
 

Attachments

  • 2.PNG
    2.PNG
    18.7 KB · Views: 13,016
  • 1.jpg
    1.jpg
    30 KB · Views: 13,016

ljbaumer

Senior Member
Apr 3, 2010
688
83
California
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/alpha/0.0.1/MIUI_SGS3_VZW_ALPHA_0.0.1.zip

Anyways, thanks again for the guide!
Ljbaumer
 

shubhamchamaria

Senior Member
Jan 28, 2011
2,792
2,243
Mumbai
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/alpha/0.0.1/MIUI_SGS3_VZW_ALPHA_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
 
  • Like
Reactions: ljbaumer

oguzhan mobile

Senior Member
Sep 27, 2011
313
229
Bursa
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.
 

danielgek

Senior Member
Feb 26, 2010
211
198
Coimbra
I dont have sure but i think miui patch its only for 2.3

Sent from my Desire HD using xda app-developers app
 

1stichiban

Senior Member
Jan 18, 2012
428
121
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.
:)
 

Shrewdy

Senior Member
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 ??? :confused:

Thanks
 

heryts

Senior Member
May 26, 2012
192
30
so, how to convert from hdpi res to mdpi res, since i have xperia active with mdpi res, thx for your reply
 
Last edited:

shubhamchamaria

Senior Member
Jan 28, 2011
2,792
2,243
Mumbai
Thank you.

I have did exactly as mentioned , But my phone is not booting up... I believe i have did some mistake ..

Can you please ...
Thanks n advance .

Logcat : http://pastebin.com/m95zM9eB

Please give me a longer log....this is very short to pick out the error

do adb logcat > miui.txt
and wait for a minute or maybe more....
then pastebin it or http://logcat.miui.us it...

this is the main guide but there might be some smali changes also needed to get the rom to boot....
 

kickassdave

Senior Member
Oct 2, 2010
2,211
652
Google Pixel 6 Pro
Xiaomi Pad 5 Pro
I am attempting to do a port of MIUI 4.1 to the Galaxy S3 (i9300 "international") version.

There are a couple of ports done already... however owing to the infrequency of updates, I want to start doing it myself...

Anyway... what should I be using as the PORT in my case? There aren't any 4.1 based MIUI ROMs that have the S3 processor (exynos)... but that obviously doesn't mean it can't be done (as above.. 2 devs have done it already)...

I'm guessing my efforts are going to be in framework.jar :crying:
 

samuelfrm

Senior Member
Jan 9, 2012
105
14
Guanajuato
I use how Port MIUI Huawei P1 (miui.es) for base CM9 in LG P500, the install it's correct but freezes in the boot.
:/ one idea for the solution?
Thanks for this awesome tutorial and greetings.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    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-of-devices-ARMv7-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

    attachment.php


    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");

    attachment.php


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

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

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

    for more info: http://xdaforums.com/showpost.php?p=28885450&postcount=2 (thanks Lens_Flare)

    HIT THE THANKS BUTTON IF HELPED AND PLEASE LINK THE THREAD IF YOU MAKE A WORKING BUILD!!
    1
    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/alpha/0.0.1/MIUI_SGS3_VZW_ALPHA_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
    1
    Hi ,

    Thanks for sharing this. Can i use this guide for MIUI 4.1.1 ( Jelly bean) with CM10. Do you anyone tried.

    Yes....you can

    Sent from my One V
    1
    What does it mean when I have a completely blank screen, its not even getting to the boot screen?
    Thanks

    Peace

    ---------- Post added at 08:10 PM ---------- Previous post was at 07:34 PM ----------

    Ok, replaced libandroid_runtime.so and I get to the boot screen, but it just stays there... any ideas?

    BTW, using miui 2.10.12 (Nexus 7 tablet) as port and cm9 for Allwinner A10 as base...

    Peace
    You are trying port JB (4.1.2) to ICS (4.04)

    I think u need to try CM10 with MIUI. 4.1 or CM9 with MIUI 4



    Sent from my Galaxy Nexus
    1
    Ok, so 2.10.12 is miui JB?

    Peace

    Sent from my Nexus 7 using XDA Premium HD app

    Yes.

    Sent from my Galaxy Nexus