[Miscellaneous Android Development] m@nish123:
[align=center]{:4_106:}HELLO FOLKS,

I AM HERE TO INTRODUCE CROSS MTK PLATFORM MIUI ROM PORTING GUIDE

[/align]

[align=center]

{:4_106:}MTK CROSS PLATFORM ROM PORTING GUIDE{:4_106:}

REQUIRMENTS:

1. FULLY KNOW MIUI ROM PORTING GUIDE (IF U DON'T KNOW TEACH URSELF USING @ANSUMAN GUIDE)

2. THIS GUIDE WILL WORK WITH SAME MTK GPU CHIPSET

(EXAMPLE: MT6582 <------>MT6592 (BOTH CHIPSET HAS MALI GPU),ETC )

3. BASE ROM (STOCK ROM) AND PORT ROM (MIUI ROM WHICH YOU GOING TO PORT FOR UR DEVICE) HAS SAME ANDROID SDK

(EXAMPLE: 4.2.x<---->4.2.x , 4.4.x<---->4.4.x ,ETC )

4. BRAIN AND EXPERT {:4_106:}

[align=center]

LETS BEGIN THE GUIDE

1. MAKE 2 NEW FOLDER ON DESKTOP AND EXTRACT STOCK ROM IN 1ST FOLDER (NAME IT TO BASE),EXTRACT PORTING ROM TO 2ND FOLDER (NAME IT TO PORT)

2. OPEN BASE FOLDER >SYSTEM>BIN> COPY ALL BIN FILES TO

PORT FOLDER>SYSTEM>BIN> PASTE HERE AND REPLACE EXISTING FILES

3. OPEN BASE FOLDER >SYSTEM> LIB > COPY HW FOLDER,MODULE FOLDER (IF EXIST IN KK ),SOUNDFX FOLDER TO

PORT FOLDER >SYSTEM>LIB > PASTE HERE (FIRST DELETE HW,MODULE,SOUNDFX)

4. OPEN BASE FOLDER >SYSTEM> LIB> COPY ALL LIB FILES(.SO) TO

PORT FOLDER >SYSTEM>LIB > PASTE HERE AND REPLACE EXISTING FILES

5. OPEN MIUI ROM ZIP FILE IN WINRAR AND GO TO SYSTEM>LIB FOLDER> EXTRACT THIS FILE SOMEWHERE

>>libandroid_runtime.so

>>libandroid_servers.so

>>libandroidfw.so

>> libjavacore.so

>> libjavacrypto.so

(IMPORTANT FILES )

6. NOW COPY ABOVE STEPS 5 LIB FILE AND MOVE IT TO PORT FOLDER >LIB FOLDER> PASTE HERE AND REPLACE EXISTING FILES

7. OPEN MIUI ROM ZIP FILE IN WINRAR AND GO TO SYSTEM>LIB FOLDER> EXTRACT THIS FILE SOMEWHERE

>>libwebp_android.so

>>libwebrtc_audio_preprocessing.so

>>libwebviewchromium.so

>> libwebviewchromium_plat_support.so

(IMPORTANT FILES )

[backcolor=Black]

[backcolor=White]8. NOW COPY ABOVE STEPS 4 LIB FILE AND MOVE IT TO PORT FOLDER >[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>LIB> PASTE HERE AND REPLACE EXISTING FILES

9. DELETE VENDOR FOLDER OF PORT AND PASTE FROM BASE FOLDER IN PORT FOLDER

10. CHANGE BOOTANIMATION IN PORT FOLDER>MEDIA FOLDER> HERE (ACC. TO YOUR SCREEN RESOLUTION)

11. GO TO PORT FOLDER>[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>ETC > DELETE FIRMWARE, MDDB(SOME ROM NOT EXISTED,SO IF YOU ROM NOT PRESENT IGNORE IT)

AND PASTE ABOVE TWO FOLDER FROM BASE TO PORT>[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>ETC> HERE

12. OPEN BASE FOLDER >[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>ETC> COPY AUDIOEFFECT, AUDIOPOLICY, MEDIACODECS FILES TO

PORT FOLDER>ETC FOLDER> PASTE HERE AND REPLACE EXISTING FILES

13. NOW GO TO BASE> [/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>XBIN> COPY libmnlp_mt65xx(DIFF ACC TO CHIPSET LIKE MT6582,MT6592) FILE TO

PORT FOLDER>[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>XBIN > PASTE HERE (DELETE PORT ROM'S libmnlp_mt65xx)

14. NOW COMES BOOT.IMG EDITING (USE KITCHEN OR ANYOTHER U PREFER)

>> EXTRACT BOTH BOOT.IMG (BASE AND PORT)

>> OPEN BASE BOOT>INIT.RC AND CAMPARE WITH PORT'S INIT.RC AND CHANGE BOOTCLASSPATH IF PRESENT

AND OTHER REGARDING THEMES ETC.

>> OPEN BASE BOOT>PROJECT.RC AND CAMPARE WITH PORT'S PROJECT.RC AND DO CHANGES WHICH IS EXTRA IN PORT

>> OPEN BASE BOOT>ENVIRONMENT.RC AND CAMPARE WITH PORT'S ENVIRONMENT.RC AND DO CHANGES WHICH IS EXTRA IN PORT (THIS IS ABSENT IN JB ,SO DON'T WORRY ABOUT IT)

>> PACK IT , COPY NEW BOOT.IMG AND PASTE ,REPLACE IN PORT FOLDER

15. NOW OPEN PORT FOLDER>[/backcolor][/backcolor][backcolor=Black][backcolor=White]SYSTEM>BUILD.PROP> AND CHANGE MT65xx TO UR CHIPSET ACC TO UR STOCK BUILD.PROP ,

ALSO WLAN LINE mT65xx TO UR CHIPSET ACC TO UR STOCK BUILD.PROP ,

16. OPEN META-INF>ANDROID>UPDATER-SCRIPT AS TEXT EDITIOR(IN NOTEPAD++ OR U PREFER ANY OTHER)

CHANGE MOUNTPOINT ACC. TO UR STOCK ROM'S UPDATER-SCRIPT[/backcolor]

[/backcolor]

[backcolor=White]

SAVE IT

17. GO TO BASE> SYSTEM>FRAMEWORK>COPY SERVICES.JAR(MAKE SURE DEODEXED)

>> USING BASKMALI[/backcolor][backcolor=White][backcolor=White][backcolor=White].JAR[/backcolor][/backcolor] UNPACK IT (NAME AS S)

DO SAME WITH PORT>SYSTEM>FRAMEWORK>[/backcolor][backcolor=White][backcolor=White] SERVICES.JAR(MAKE SURE DEODEXED)[/backcolor][/backcolor]

[backcolor=White][backcolor=White][backcolor=White]>> USING BASKMALI[/backcolor][/backcolor][/backcolor][backcolor=White][backcolor=White][backcolor=White][backcolor=White][backcolor=White].JAR[/backcolor][/backcolor] UNPACK IT[/backcolor][/backcolor][/backcolor][backcolor=White][backcolor=White][backcolor=White][backcolor=White] (NAME AS CLASSOUT)

[/backcolor]

>>NOW OPEN [/backcolor][/backcolor][/backcolor][backcolor=White][backcolor=White][backcolor=White][backcolor=White]S FOLDER[/backcolor]>ANDROID>SERVER AND SEARCH OF THESE FILES

MOUNTSMALI** (U WILL GET LOTS OF FILE STARTING WITH MOUNT),COPY THESE FILES

AND PAST & REPLACE IN CLASSOUT FOLDER>ANDROID>SERVER>HERE

[/backcolor]>> PACK THE CLASSOUT FOLDER USING SMALI.JAR

> PUSH IN SERVICES.JAR(PORT) AND PASTE IN SAME LOCATION AS MENTIONED IN STEPS 17.

(IMPORTANT STEPS)

(IMPORTANT STEPS)

[/backcolor]18. GO TO PORT FOLDER ,DELETE UNWANTED STUFF LIKE, UBOOT.IMG ,SCATTER ETC

19. MAKE ZIP OF BOOT.IMG,SYSTEM,META-INF AND FLASH VIA UR CWM RECOVERY,TWRP ETC[/backcolor]

FAQ :

1. IS THIS REALLY WORKING ??

>> YES ,IT IS ( I PORTED MIUI V5 BASED ON KITKAT (BETA) FROM MT6592 TO MT6582

2. MAY I GET LOTS OF BUGS ??

>> YES U WILL GET BUGS BUT NOT MAJOR.....I FOUND BUGS OF SOME APPS FC....TAKE LOGCAT AND TRY TO FIX IT OR ASK HERE

NOTE : I AM NOT RESPONSIBLE OR MIUI FORUM...IF UR DEVICE GOT FEVER,DEAD,WAR ETC

CREDITS :

GOOGLE

MIUI FORUM

XDA

ANSUMAN GUIDE (HERE IS LINK : http://en.miui.com/thread-20482-1-1.html)

ME

[/align]

[/align]