Sunday, December 6, 2015

[Guide] Working Tutorial For Porting MIUI Roms




Many porters are not able to port MIUI Rom.... I will give a guide to port MIUI 7 ROM to any Mediatek Device With Kitkat firmware... This guide is for porters only and works for MIUI 6 also...It Will Also Work  For Noobs 





[ REQUIREMENTS ]



- Basic Knowledge about porting and boot.img editing using android kitchen. 
- Use onli TWRP/CTR Recovery.
- YOUR STOCK MTK Device Stock ROM(KK FIRMWARE ONLI)
- ANDROID KITCHEN
-Any MIUI 7 or MIUI6 Rom


[ STEPS ]

1. PREPARING -

-Extract both roms to different folder... Setup Android Kitchen.


2. SYSTEM EDITING -

-Bin Folder: Replace vold,sdcard from stock to port.

-Libs Folder: Open port libs folder and delete /hw folder.... Now replace /hw folder libcameracustom.so, libcameraservice.so, libfeatureio.so, libMali.so and libshowlogo.so from stock to port.

-etc Folder: Open port etc folder and delete /firmware and /mddb folder... Replace /firmware & /mddb from port to stock... if u dont have mddb folder in stock leave it...

-Vendor Folder: Open port vendor folder and delete /lib and /media folder...replace /lib and /media folder from stock to port.

-Xbin Folder: Replace libmnlp_mt65xx according to your chipset and mnld from stock to port rom.

- Build.prop : Open build.prop and edit device name with urs .... Finding the correct lcd density is a big problem ... Try 210 first ... change it if u have dpi issues (Dont set below 210).


3. UPDATER-SCRIPT -

- Open updater script and change mountspace id (mmcblkpxx) as per ur device.. U can find it using MTK Droid Tool.


4. BOOT.IMG EDITING -

- Unpack boot.img of both stock and port rom using kitchen... We have to recombile port rom boot.img so unpack boot.img of port rom from working folder.

- Copy ZImage from Stock and replace in port.

- Copy sepolicy from stock ramdisk to port.

- Open uevent.rc of both roms in notepad+ and copy any additional lines from port to stock... use any text compare tool to find additional lines.. dont delete any lines onli add lines from port... Now replace uevent.rc from port with stock rom uevent.rc(The one u added lines from stock)

- Repack port rom boot.img and move it to port folder.

- Replace #camera lines of init.rc from stock to port if u get camera error/ green camera.
- If u Get Sdcard /Internal memory not mounting issue.... Rename init.no_ssd.rc of stock boot.img to init.ssd.rc and replace it in init.ssd.rc of port boot.img.j v


5. FINISHING UP -

- Now compress the port rom into .zip and flash on your device. Njoy!!!


6. BUG FIXING -

- Same as Other KK Roms... If u have any issues comment below...


[ CREDITS ]

-Geo Baby for all his help.
-manish for his excellent Crossporting guide.
-helloansuman
- saginesht
-Me For Sharing


2 comments:

  1. Hi man
    I have a problem on this rom ,, after I ported it and flash it successful ,, while it boot up it shows to me that : Android logo on the high left corner and reboot again and again ,, how I could solve it ??

    ReplyDelete
  2. Internal Storage isn't mounting, please help!

    ReplyDelete