• 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

XeoNoX

Senior Member
Oct 25, 2010
1,032
774
followed the instructions, and everything works but the camera, the camera worked on CM10 but it wont open for my MIUI port. Any ideas?
 

martin_carpio17

Senior Member
Nov 25, 2012
349
432
San josé
I have a galaxy s advance with JELLY BEAN 4.1.2 ... this phone is like the little brother of the galaxy s2... in this
post says that you have to have android 4.0, it will work on my phone with jelly bean?
 

KINGbabasula

Inactive Recognized Developer
Jan 28, 2013
2,301
5,160
Treviso
R: [GUIDE] How to port MIUI v4 to your Device

I have a galaxy s advance with JELLY BEAN 4.1.2 ... this phone is like the little brother of the galaxy s2... in this
post says that you have to have android 4.0, it will work on my phone with jelly bean?

I tried two times with different methods. The result: stuck on boot logo :(

Inviato dal mio GT-I9070 con Tapatalk 2
 

Bluezzy

Senior Member
Mar 3, 2013
707
268
Hey where di i find the updater script?
Go to you ROM's folder.Then go to META- INF>Com>Google>Android>Updater script :)

Help.I tried this on my Alcatel OT 990 and the phone boot normaly,but when i unlock screen,screen goes just black and nothing is happening,please :D
 
Last edited:

jacobmacek

Senior Member
Dec 22, 2011
415
215
26
Winchester
EDIT: Nevermind, I found out what I was doing wrong, it was a total noob mistake


---------- Post added at 12:52 AM ---------- Previous post was at 12:52 AM ----------

stuck on mi logo. everything cheeked... now ??

logcat it!

---------- Post added at 12:54 AM ---------- Previous post was at 12:52 AM ----------

Hey where di i find the updater script?

sent from my HTC Wildfire infected with MIUI v3

META-INF/com/google/android/updater-script

---------- Post added at 12:57 AM ---------- Previous post was at 12:54 AM ----------

My port Boots but I have instant "process.com.android.phone has stopped" error so I can't do nothing. Do you know how to fix it?
What I would do is delete phone.apk and telephony provider.apk from the rom then install again; this is just so you can try out the rom and check for bugs. The reason it is force closing is because the port is most likely from a different carrier. Try finding a similar phone on the same carrier that has a miui v4 rom. Once you have that, take telephony provider.apk, phone.apk and mms.apk and put it into your rom and try that. Tell me how that works for ya

---------- Post added at 12:58 AM ---------- Previous post was at 12:57 AM ----------

My port Boots but I have instant "process.com.android.phone has stopped" error so I can't do nothing. Do you know how to fix it?
What I would do is delete phone.apk and telephony provider.apk from the rom then install again; this is just so you can try out the rom and check for bugs. The reason it is force closing is because the port is most likely from a different carrier. Try finding a similar phone on the same carrier that has a miui v4 rom. Once you have that, take telephony provider.apk, phone.apk and mms.apk and put it into your rom and try that. Tell me how that works for ya

---------- Post added at 01:03 AM ---------- Previous post was at 12:58 AM ----------

My ported MIUI does not boot. Please help!
Here is the logcat: http://pastebin.com/VQevBPa0
Thanks :)
from personal experience, when you get
Code:
03:29:27.970 Info ServiceManager 1294  service 'media.audio_flinger' died
03:29:27.970 Info ServiceManager 1294  service 'media.player' died
03:29:27.970 Info ServiceManager 1294  service 'media.camera' died
03:29:27.970 Info ServiceManager 1294  service 'media.audio_policy' died
it means you're using the wrong android runtime lib :good:

---------- Post added at 01:08 AM ---------- Previous post was at 01:03 AM ----------

hello! thanks a lot for the guide. after porting on trying to boot its stuck at boot animation, logcat is here and also attached in the post

there is no error before "could not register natives" which seems to be stopping the phone from booting (using lg star phone). the audio errors also dont seem to be responsible since those are present on many of the phone's roms are those roms work properly.
base and port android versions are same and steps followed properly. trying to port from nexus s
help would be greatly appreciated. thank you

From my personal experience, when this happens,
Code:
I/ServiceManager(   92): service 'media.audio_flinger' died
I/ServiceManager(   92): service 'media.player' died
I/ServiceManager(   92): service 'media.camera' died
it usually means you are using the wrong libandroid_runtime.so

---------- Post added at 01:09 AM ---------- Previous post was at 01:08 AM ----------

hello! thanks a lot for the guide. after porting on trying to boot its stuck at boot animation, logcat is here and also attached in the post

there is no error before "could not register natives" which seems to be stopping the phone from booting (using lg star phone). the audio errors also dont seem to be responsible since those are present on many of the phone's roms are those roms work properly.
base and port android versions are same and steps followed properly. trying to port from nexus s
help would be greatly appreciated. thank you

From my personal experience, when this happens,
Code:
I/ServiceManager(   92): service 'media.audio_flinger' died
I/ServiceManager(   92): service 'media.player' died
I/ServiceManager(   92): service 'media.camera' died
it usually means you are using the wrong libandroid_runtime.so
 
Last edited:

WildfireDEV

Senior Member
May 1, 2013
858
1,801
Thanks a lot for this. Used this to port a Rom to a friends device who wanted a kid feel to his android device.

Sent from my HTC Velocity 4G using Tapatalk 4 beta
 

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