[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] anerik:
[SIZE="3"][FONT="System"][COLOR="Red"][I][B]*I'm not responsible for any damage you do to your device, however i will provide full support.[/B][/I][/COLOR][/FONT][/SIZE]

The basics!

​

Things you'll need

Let's get started with this!

1-Unrar the MIUI base rom i gave up in some folder you like, and open the lt18i one with winrar or 7zip.

2-Copy the folders app, fonts, framework and media from the LT18i ROM to the MIUI base. Don't worry if it doesn't ask you to replace anything. Delete SemcHdmiControlService.apk in miui base after copying

3-Open lib folders in both base and lt18i, and copy this from lt18i to base:

content-types.properties

liblbesec.so

liblocSDK_2.5OEM.so

libshell.so

libshell_jni.so

libshellservice.so

4-Open etc folders, and do the same as step 3 but with these files:

yellowpage.db

telocation.td

5-Open permissions foder in /etc, and same as step 3 with these files:

miui-framework.xml

com.google.android.media.effects.xml

com.google.widevine.software.drm.xml

com.google.android.maps.xml

6-Open xbin in both base and lt18i, and copy from lt18i to base:

shelld

Build.prop mods! Make your own!

In MIUI base, there's a folder named dev. If you don't know what that is, i'll try to give you a brief explanation: there are 4 xperia mdpis. In order to make a ROM that works on all of them with aroma, you need some files they require (like camera lib files) that are flashed right after the rom. There are 4 build.props in total, each in one dev folder, you can edit all or just the one that suits your phone, if rom is for personal use.

Open the build.prop you want, and edit the red lines with whatever you want:

ro.build.id=[COLOR="Red"]4.1.B.0.587[/COLOR]
ro.build.display.id=[COLOR="red"]MIUIAndroid 3.1.18[/COLOR]
ro.build.version.incremental=[COLOR="red"]3.1.18[/COLOR]
ro.rommanager.developerid=[COLOR="red"]miuiandroid[/COLOR]
ro.modversion=[COLOR="red"]MIUIAndroid-3.1.18-EN-WT19i[/COLOR]
ro.goo.rom=[COLOR="red"]MIUIAndroid-EN-WT19i[/COLOR]

Note: after ## Project Fluid™ ## in build.prop, you can delete everything, those are tweaks i forgot to remove, you just delete them and add the ones you like

Decompiling! Take that stupid black bar!

First of all, you need to install 3 files in order to make this work. Search for this files in /framework (MIUI base rom, not lt18i) and move them to apktool folder:

framework-res.apk

framework-miui-res.apk

SemcGenericUxpRes.apk

1-Shift-Right-click any blank space in APKTool folder, and click "Open command window here"

2-Copy and paste these 3 lines separed by enter (copy one, press enter, copy another, blabla):

apktool if framework-res.apk

apktool if framework-miui-res.apk

apktool if SemcGenericUxpRes.apk

Disabling auto-brightness and make the leds work

Remove SystemUI black bar

META-INF changing! Your ROM, not mine!

1-Go to META-INF/com/google/android and open aroma-config with notepad++

2-Edit these lines adding anything you want:

ini_set("rom_name",	"[COLOR="Red"]MIUIv4[/COLOR]");
ini_set("rom_version",	"[COLOR="red"]3.1.18[/COLOR]");
ini_set("rom_author",	"[COLOR="red"]anerik[/COLOR]");
ini_set("rom_device",	"[COLOR="red"]Xperia MDPI[/COLOR]");
ini_set("rom_date",	"[COLOR="red"]18 jan 2013[/COLOR]");

3-Go to META-INF/com/google/android/aroma and open changelog.txt, write anything you want.

Now you have everything setted up, select all 4 folders and make a zip out of it with 7-zip. This will be 100% clean MIUI, in the next posts (tomorrow, sleep time now) i will add more addons like scripts, supercharger, etc! Just flash the ROM, it should boot fine, no launcher FC, no themes working bad, nothing.​