ANNOUNCEMENT:
• if you like my work please click thanks or
• Other ROM:Luffy ROM&MIUI based on 2.3.6
Current version:
Luffy MIUI V4 2.6.8
Download:Luffy MIUI V4 2.6.8
Luffy MIUI GB 2.6.7
made by another chinese guy avonej !
Download:Luffy MIUI GB 2.6.29
Known Bugs
Luffy MIUI v4 2.5.10
MIUI GB 2.6.8
- camera
- FM
- Language~
- ex sd card won't be scaned after connected to PC
Special Thanks to Donator
Thanks to him/her very much,I will do my best
- Gino Tomaselli
Special Thanks/Credits:
- YardE
- arco68
- skywalker01
- mazen912
- BzArEx
- MIUI china
- many many guys!!!
First of all,really sorry for my poor english
Easy guide to port miui v4 to i9001
1.
Download CM9 build 4 and baksmali framework.jar and service.jar
2.
download MIUI V4 for NS and baksmali framework.jar and service.jar too
then decompile framework-res.apk
3.
Compare these .smalis in framework (I use Beyond Compare 3)
Look into these .smalis
AssetManager.smali
Camera.smali and Cameraxxxxxx.smali
Power.smali
SystemProperties.smali
GLES20Canvas.smali
HardwareCanvas.smali
HardwareRenderer$GlRenderer.smali
HardwareRenderer$Gl20Renderer.smali
HardwareRenderer.smali
BluetoothA2dpService.smali
WifiNative.smali
webviewcore.smali
(maybe I miss some smali ,you can find it by adb logcat)
some smali just can be fully replaced by smalis from cm9
some need to be added to the method that cm9 don't have
4.
modify these smalis in
framework.jar/com/android/internal/telephony
you can just baksmali my v4 and compare it with cm9 build
then you can see what need to do
but I can be wrong
so you can use these smalis in miui scotland v4
5.
Add a string
<string name="config_legacyUmsLunFile">/sys/devices/platform/usb_mass_storage/lun0/file</string>
to framework-res.apk in MIUI V4
this string's ID will be 0x010404cb
then replace all the smalis in service.jar/com/android/service/usb by smalis in cm9 build 4(maybe I am wrong~),and change IDs in these smalis(This have something to do with Usb connection,without this step you can't connect you i9001 to PC
6.
Use these libxxx.so from other place
libmedia_jni.so(or you can Modify smalis in framework.jar,I failed so I change it,Fortunately it works!)
libinput.so from cm9 build 3 or my v4(or you can Modify smalis in service.jar)
libs
libandroid_servers(or you can modify PowerManagerService.smali ,but so many changes.so I just change the lib,luckly too it works...)
libskia.so from my V4(it has something to do with fronts change in miui theme)
Maybe I miss something ,you can compare my V4 with cm9 build
7.
first of all replace complete folders with miui4 one.
system/app
system/framework(remember smali framework.jar and service.jar)
8.
replace media folder with base rom (that themes, wallpaper, audio from miui work)
copy telocation.db and yellowpage.db.weather.db and xxxx.db(I forget) to /system/etc folder.
copy content-types.properties file to /system/lib
Add something that cm0 don't have in etc/permissions
9.
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)
10.
change values from build.prop
11.
Down!
Easy guide to port miui GB to i9001
I have replace some libxxx.so from other MIUI GB
so what you need to do is just replace
system/app
system/framework
system/media
or do some change to it
and when cm7 is updated,add what cm7 has change like booting.img~
SO EASY?isn't it?~
That'all guys,although I have sold my bricked phone,I am still here,If you have questions I will still answer you with my poor english and my poor Understanding on android
Last edited: