[ICS&GB][MIUI][Guide]Luffy MIUI v4 2.6.8/MIUI GB 2.6.29/How to Port Miui V4

Search This thread

wuhaoyu1990

Senior Member
Mar 9, 2012
87
102
Nanjing
TNhWW.jpg

Luffy MIUI V4 2.5.19
Luffy MIUI GB 2.4.13​
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
  • camera
  • FM
  • Language~
  • ex sd card won't be scaned after connected to PC
MIUI GB 2.6.8
Special Thanks to Donator
  • Gino Tomaselli
Thanks to him/her very much,I will do my best
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:

Blumdum

Senior Member
Sep 6, 2011
449
134
Xiaomi Mi 9
No he said that this rom has all the bugs of arco's cm9
so also the camera does Not work

Sent from my GT-I9001 using XDA
 

dbx4

Senior Member
Sep 18, 2011
246
451
Screenshot time!

Luffy MIUI v4 2.5.9 notes:
- Wipe data / factory reset is necessary
- English is available and set as default
- All included apps are in English
- I got no carrier on first boot, had to manually select it.
- Browser search engine is set to Badu (Chinese only), manually changed it to Google.
- There's an AriesParts.apk on the Desktop that doesn't seem to do anything?
- Two-finger rotation is not enabled, needs this fix
- Permissions Manager does not work, instantly turns itself off after you turn it on.
- Google Play is included in the ROM.

YltXG.jpg
dN10k.jpg
9e61p.jpg
AQ9VY.jpg
VgY8G.jpg
tTWEA.jpg
HILue.jpg
ES7ro.jpg
wRH6U.jpg
yMFOM.jpg
IloDT.jpg
TyhsT.jpg
R9tCf.jpg
MDZLS.jpg
kh88q.jpg
xjhKO.jpg
7It6K.jpg
FDjhA.jpg
8xG2U.jpg
Z3cpL.jpg
3dDpw.jpg
rtlTl.jpg
PBwUO.jpg


Anyway MIUI is pretty awesome... It looks great, it's extremely customizable as the launcher, lockscreen etc. all can be themed with hundreds of themes readily available online. There's a root permissions manager, network firewall, call screening and app permissions manager from LBE (not working atm). It comes with great additional apps like clock (themable), recorder, music player, customized webbrowser, file explorer, notes etc. There's also the really neat option to kill the current process by long-pressing the back key.
 
Last edited:

chasemyass

Senior Member
Dec 21, 2011
1,775
549
Samsung Galaxy S23 Ultra
- Wipe data / factory reset is necessary
- English is available and set as default
- All included apps are in English
- I got no carrier on first boot, had to manually select it. Data connection is also giving me some problems atm but probably not the ROM's fault.
- Browser search engine is set to Badu (Chinese only), manually changed it to Google.
- There's an AriesParts.apk on the Desktop that doesn't seem to do anything?
- Two-finger rotation is not enabled, needs this fix
- Permissions Manager does not work, instantly turns itself off after you turn it on.
- Google Play is included in the ROM.

Anyway MIUI is pretty awesome... It looks great, it's extremely customizable as the launcher, lockscreen etc. all can be themed with hundreds of themes readily available online. There's a root permissions manager, network firewall, call screening and app permissions manager from LBE (not working atm). It comes with great additional apps like clock (themable), recorder, music player, customized webbrowser, file explorer, notes etc. There's also the really neat option to kill the current process by long-pressing the back key.

that fix can be flashed/pushed safe on our 9001 since it`s made for 9003?
 

dbx4

Senior Member
Sep 18, 2011
246
451
that fix can be flashed/pushed safe on our 9001 since it`s made for 9003?
Yes, the two-finger rotation fix works for me. It's just a textfile in /etc/permissions that tells the system that the device supports multi-finger touch actions.

how much time you will be port full miui? (without bugs)
And how much time until you learn to speak proper English without mistakes?
See how pointless it is to ask questions that cannot be answered?
 

kwezi

Member
Aug 29, 2011
48
4
Nairobi
Redmi Note 11
Thanks mate, excellent post


- Wipe data / factory reset is necessary
- English is available and set as default
- All included apps are in English
- I got no carrier on first boot, had to manually select it.
- Browser search engine is set to Badu (Chinese only), manually changed it to Google.
- There's an AriesParts.apk on the Desktop that doesn't seem to do anything?
- Two-finger rotation is not enabled, needs this fix
- Permissions Manager does not work, instantly turns itself off after you turn it on.
- Google Play is included in the ROM.

YltXG.jpg
dN10k.jpg
9e61p.jpg
AQ9VY.jpg
VgY8G.jpg
tTWEA.jpg
HILue.jpg
ES7ro.jpg
wRH6U.jpg
yMFOM.jpg
IloDT.jpg
TyhsT.jpg
R9tCf.jpg
MDZLS.jpg
kh88q.jpg
xjhKO.jpg
7It6K.jpg
FDjhA.jpg
8xG2U.jpg
Z3cpL.jpg
3dDpw.jpg
rtlTl.jpg
PBwUO.jpg


Anyway MIUI is pretty awesome... It looks great, it's extremely customizable as the launcher, lockscreen etc. all can be themed with hundreds of themes readily available online. There's a root permissions manager, network firewall, call screening and app permissions manager from LBE (not working atm). It comes with great additional apps like clock (themable), recorder, music player, customized webbrowser, file explorer, notes etc. There's also the really neat option to kill the current process by long-pressing the back key.
 
Last edited:

tuanlinh

Senior Member
Dec 25, 2006
50
4
How to install this ROM ? I put this ROM into SD card and try to install via Fearmod but got error.
 

kad3t

Senior Member
Mar 26, 2010
300
1
I think that the big question here is whether it's good to day-to-day use yet?
 

Alex93917

Senior Member
Sep 17, 2011
1,449
2,214
Nice
Yes, it's a very good rom ! I will use this rom 24/24 now ! :)

Sent from my GT-I9001 using XDA
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    TNhWW.jpg

    Luffy MIUI V4 2.5.19
    Luffy MIUI GB 2.4.13​
    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
    • camera
    • FM
    • Language~
    • ex sd card won't be scaned after connected to PC
    MIUI GB 2.6.8
    Special Thanks to Donator
    • Gino Tomaselli
    Thanks to him/her very much,I will do my best
    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
    12
    Screenshot time!

    Luffy MIUI v4 2.5.9 notes:
    - Wipe data / factory reset is necessary
    - English is available and set as default
    - All included apps are in English
    - I got no carrier on first boot, had to manually select it.
    - Browser search engine is set to Badu (Chinese only), manually changed it to Google.
    - There's an AriesParts.apk on the Desktop that doesn't seem to do anything?
    - Two-finger rotation is not enabled, needs this fix
    - Permissions Manager does not work, instantly turns itself off after you turn it on.
    - Google Play is included in the ROM.

    YltXG.jpg
    dN10k.jpg
    9e61p.jpg
    AQ9VY.jpg
    VgY8G.jpg
    tTWEA.jpg
    HILue.jpg
    ES7ro.jpg
    wRH6U.jpg
    yMFOM.jpg
    IloDT.jpg
    TyhsT.jpg
    R9tCf.jpg
    MDZLS.jpg
    kh88q.jpg
    xjhKO.jpg
    7It6K.jpg
    FDjhA.jpg
    8xG2U.jpg
    Z3cpL.jpg
    3dDpw.jpg
    rtlTl.jpg
    PBwUO.jpg


    Anyway MIUI is pretty awesome... It looks great, it's extremely customizable as the launcher, lockscreen etc. all can be themed with hundreds of themes readily available online. There's a root permissions manager, network firewall, call screening and app permissions manager from LBE (not working atm). It comes with great additional apps like clock (themable), recorder, music player, customized webbrowser, file explorer, notes etc. There's also the really neat option to kill the current process by long-pressing the back key.
    6
    Thanks fot reporting,but I am a beginner at android:(
    So don't except me to fix these bugs quickly:D
    I will try my best
    sorry for my english:D
    4
    Allright anyone having any problems with this rom do the following things before asking for any help in this thread!

    1. Flash arco's recovery
    2. Wipe cache
    3. Wipe dalvik
    4. Delete all user data/factory reset
    5. Flash MIUI and don't reboot!
    6. Flash gapps
    7. Then reboot
    8. Go to mobile network settings and choose your operator and network
    9. Enjoy MIUI


    Don't restore apps from gingerbread!
    If you have fc problems fix permissions!

    Also stop whining about camera! This has all the same bugs that CM9 port has! WE CANT GET BUGLESS MIUI BEFORE WE GET BUGLESS CM9. THE DEVELOPEMENT IS STILL AT VERY EARLY STAGE!

    Sent from my GT-I9001 using XDA