• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] How to port MIUI v4 to your Device

Search This thread

ashok225123

Senior Member
Jan 28, 2015
173
196
chennai
forum.xda-developers.com
ashok

Hi guys, last days i got messages about a guide port miui4 to each device.

that is my method i use on my miui4 ports.

take a any cm9 or aosp based ics rom as base. with this guide, you can port miui4 from any device to your one. for best compatibility use own brand base to port. if you have desire s then port from htc devices. if galaxy nexus then try port from nexus s ;)



replace media folder with base rom (that themes, wallpaper, audio from miui work)

copy telocation.db and yellowpage.db to /system/etc folder.
copy content-types.properties file to /system/lib






change values from build.prop



if your base rom has issues, these issues will seen on this port too. example, if camera not works on base rom, then will on miui4 port also not work!

then add your stuff (updated apps, wallpaper or installer whatever you want :D )

make your zip and there is it. if you open your thread, dont forget give a link to based ics and port rom's.
that is method actually i use. for more info please use search on xda or ask on this thread. no private messages will answered from now.

(if you like this guide, just give 5 star and click to thanks button)


Sir I want dual sim support but cm aosp are only single sim working pls help me
 

NeoLogY

Senior Member
Dec 26, 2014
661
132
Sir I want dual sim support but cm aosp are only single sim working pls help me

Look in galaxy grand duos thread, some Dev had made a patch for dual sim. Not sure it's @pawitp or @RVR, see if its usable for your port.

---------- Post added at 09:49 PM ---------- Previous post was at 09:49 PM ----------

Sir I want dual sim support but cm aosp are only single sim working pls help me

Look in galaxy grand duos thread, some Dev had made a patch for dual sim. Not sure it's @pawitp or @RVR, see if its usable for your port.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 472
    Hi guys, last days i got messages about a guide port miui4 to each device.

    that is my method i use on my miui4 ports.

    take a any cm9 or aosp based ics rom as base. with this guide, you can port miui4 from any device to your one. for best compatibility use own brand base to port. if you have desire s then port from htc devices. if galaxy nexus then try port from nexus s ;)

    first of all replace complete folders with miui4 one.
    system/app
    system/framework


    copy libandroid_runtime.so lib from miui 4 (rom you port). without this file rom will not boot. if you get bootloop, try with base libandroid_runtime.so file..

    replace media folder with base rom (that themes, wallpaper, audio from miui work)

    copy telocation.db and yellowpage.db to /system/etc folder.
    copy content-types.properties file to /system/lib

    copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
    set_perm(0, 0, 06755, "/system/xbin/invoke-as");

    (for backup & themes app work)

    copy liblbesec.so from miui 4 to /system/lib and give permission on updater-script

    set_perm(0, 0, 0755, "/system/lib/liblbesec.so");

    (for superuser app from miui work)


    change values from build.prop

    ro.build.id=MIUI
    ro.build.display.id=MIUI
    ro.build.version.incremental=2.x.x (version number)

    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

    if your base rom has issues, these issues will seen on this port too. example, if camera not works on base rom, then will on miui4 port also not work!

    then add your stuff (updated apps, wallpaper or installer whatever you want :D )

    make your zip and there is it. if you open your thread, dont forget give a link to based ics and port rom's.
    that is method actually i use. for more info please use search on xda or ask on this thread. no private messages will answered from now.

    (if you like this guide, just give 5 star and click to thanks button)
    3
    damnit :[
    Code:
    E/dalvikvm(  100): ERROR: couldn't find native method
    E/dalvikvm(  100): Requested: Landroid/view/GLES20Canvas;.nStartTileRendering:(IIIII)V
    E/JNIHelp (  100): RegisterNatives failed for 'android/view/GLES20Canvas', aborting
    F/libc    (  100): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
    Porting from Nexus S to Liquid Mt (let's say, near the same as desire z)
    guided with OP, but no sucess..
    could somebody help to overcome it?
    android_runtime is from base rom, base rom is CM9 for mine device.

    //sry for posts: 1, actually modaco user :p

    ADD:
    nevermind, got it passed. For those who have the same problem you have to modify framewrok.jar to replace requested smali-s
    for example, for issue above, replace GLES20Canvas*.smali on android/view with those in your base' framework.jar
    3
    For those who are porting MIUI for qualcomm device (like htc desire z/s/HD) from newest CM source(it would affect anybody else) :
    theme engine is now affected. So new miui will hung on boot with unresolved android/content/res/AssetManager.
    Don't replace it! You should instead diff miui and cm smalis and add all missing and only missing methods to miui not deleting anything.
    Then just add PackageRedirectionMap*.smali to android/content/res/ folder, and replace WifiNative.smali on android/net/wifi/ .
    Thx cm team for including theme engine and complicating our lives :D
    3

    Not sure if this has been mentioned yet but maybe you could start a list at the bottom of your post with successful v4 ports with their links and what devices. Not sayin you should do the footwerk but whomever ported v4 should post the info including what device they ported from to what they ported too and the link to their thread...

    Just a suggestion...

    thats good idea, but someone has ported but given nothing of credits. if someone has succesful ported it, should give a link in this thread and i will add them to front page.

    can't say people should give link to my thread. if they want this, then they should do it self. but thanks for support ;)
    2
    I can't say anything about ldpi and mdpi devices. Miui is designed for hdpi devices. This guide is for hdpi devices only..

    Some guys got it working on Mdpi devices with resizing but i don't know how's.

    We dont have a ice sandwich Rom on the vivid/hoilday would it be possible to port One this way

    Sent from my HTC PH39100 using XDA App

    I don't think. You need special kernel for that like cm9 .

    Sent from my HTC Desire S using xda premium