This is the guide that I am writing to tell you people about the MIUI v4 porting in mobile devices. This is the method that I generally use and this is how I make it work.
- The first thing that you need to have is the cm9 or aosp based ICS ROM to use it as the base. One thing I would like to suggest to you is that you need to use the branded ICS ROM for this purpose. So if your MIUI v4 porting for smartphone from HTC, then you will need to use only HTC based ICS ROM.
- The next thing that you need to do is to replace following folders with the MIUI v4 version of the same folders. The original folders which need to be replaced are,
- system/app
- system/framework
- To enable the boot in ICS ROM, you will need to copy libandroid_runtime.so lib from MIUI v4 folders. Without these files and data, your ROM won’t ever boot. In other words, it actually adds a boot loop.
- Now to add media features to the ICS ROM, you will need to copy following files from MIUI v4. The files needed for this purpose are,
- telocation.db
- yellowpage.db
These two files should be copies at /system/etc folder.- content-types.properties
This file should be copied at /system/lib
These files will add features like themes, wallpaper, audio and so on.- Now you will need to copy invoke-as to /system/xbin in ROM for getting features like back up and application of theme on apps. To provide it with proper permissions you will have to add one line,
set_perm(0, 0, 06755, "/system/xbin/invoke-as");- Again you will need to copy liblbesec.so to /system/lib in ROM for getting super user. To provide it with proper permissions you will have to add one line,
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");- You will now have to edit the lines of the code in build.prop as,
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
The MIUI v4 porting will be done after you do this. If you want to check if the MIUI v4 porting is successful or not, turn on the camera of your smartphone. If it works properly, then there will be no problem with the MIUI v4 porting. You can zip this MIUI v4 ported file and save it for your future use.
Bookmarks