Home » » TUTORIAL PORTING ROM

TUTORIAL PORTING ROM

Ok.. so first thing first…

1. Any Rom can be ported from any device having mt6589 cpu to iBall Andi 4.5h
2. “Base rom” is any full functional rom of andi 4.5h and “port rom” is the rom u want to port.
3. Tools u need are Master Shifu dsixda's Android Kitchen, Apk tool, 7zip tool, notepad
++, photo shop (optional).
4. You should be rooted and custom recovery should be installed.



Now download the rom u want to port (I am saying again… it should be of mt6589 cpu based rom) ….

What actually we are doing here is porting all those features of base rom to port rom which will not work by keeping port’s main features as they are… so that it will feel u are using complete port rom…

I use two phases of porting… one is using kitchen and other part is manual…

Kitchen part::

Use dsixda’s Android kitchen to port base’s kernel to port’s kernel… search for kitchen tutorial in other forums of XDA (how to configure and install kitchen using cygwin)… I assume u use windows xp, 7 or 8…

The procedure is,

• Use kitchen to unzip your port rom… u can add root, add busybox, deodex ur rom, add init.d, add /data/app feature at this stage depending upon the status of your port rom….
• Now use kitchen to decompile boot.img of port rom and also base rom…
• Replace base zImage (kernel) to port’s boot_extracted folder..
• Combine base’s zImage and port’s ramdisk and recompile to create new boot.img
• Now build rom from working folder, zipalign apk’s, sign zip file
• At the end u will find a new zip file in OUTPUT_ZIP folder of kitchen
• Now check updater-script of new zip and compare with old zip file… change things accordingly…
• Remember for our phone system partition is /dev/block/mmcblk0p3
• Data partition is /dev/block/mmcblk0p5
• U need these information frequently

Ok… so kitchen part is done….

Manual Part::

Now open the new port rom zip file using 7zip file explorer… and also open ur base rom zip file using 7zip file explorer…. Keep both explorer window side-by-side… so that u can see contents of both zip in one view… do these…


1. Go to /system/etc/firmware in both the roms… drag and drop below files from base to port

catcher_filter.bin
DSP_ROM
modem.img
mt6620_patch_e3_hdr.bin
mt6620_patch_e6_hdr.bin
S_ANDRO_SFL.ini
WIFI_RAM_CODE
WIFI_RAM_CODE_E6
WIFI_RAM_CODE_MT6628
WMT.cfg


2. Go to /system/etc/permissions in both the roms… drag and drop below files from base to port

com.google.android.maps.xml
com.google.android.media.effects.xml
com.google.widevine.software.drm.xml


3. Go to /system/framework in both the roms… drag and drop below files from base to port

com.google.android.maps.jar
com.google.android.media.effects.jar
com.google.widevine.software.drm.jar


4. Go to /system/lib/modules in both the roms… drag and drop below files from base to port

ccci.ko
ccci_plat.ko
ccmni.ko
mtk_fm_drv.ko
mtk_fm_priv.ko
mtk_hif_sdio.ko
mtk_hif_sdio_mt6628.ko
mtk_stp_bt.ko
mtk_stp_bt_mt6628.ko
mtk_stp_gps.ko
mtk_stp_gps_mt6628.ko
mtk_stp_uart.ko
mtk_stp_uart_mt6628.ko
mtk_stp_wmt.ko
mtk_stp_wmt_mt6628.ko
mtk_wmt_wifi.ko
mtk_wmt_wifi_mt6628.ko


5. Go to /system/lib in both the roms… drag and drop below files from base to port

libaudio.a2dp.default.so
libaudio.primary.default.so
libaudiocompensationfilter.so
libaudiocustparam.so
libaudiosetting.so
libaudioeffect_jni.so
libaudioflinger.so
libbluetoothem_mtk.so
libbluetooth_mtk.so
libcamalgo.so
libcameracustom.so
libfmar1000.so
libfmcust.so
libfmjni.so
libfmmt6616.so
libfmmt6620.so
libfmmt6626.so
libfmmt6628.so
libmhaldrv.so


6. Go to /system/usr/keylayout in both the roms… drag and drop below files from base to port

Generic.kl

7. Go to /system/usr in both the roms… drag and drop below files from base to port

Whole ‘srec’ folder

8. Go to /system/xbin in both the roms… drag and drop below files from base to port

libmnlp
mnld


9. Open /system/build.prop file of port rom using notepad++ and put the same values as base rom for

ro.build.display.id=
ro.product.model=
ro.product.brand=
ro.product.locale.language=
ro.product.locale.region=
fmradio.driver.chip=
mediatek.wlan.chip=
mediatek.wlan.module.postfix=


10. Open /META-INF/com/google/android/updater-script of port rom using notepad++ and put the same values as base rom for

symlink("/system/lib/modules/wlan_mt662x.ko", "/system/lib/modules/wlan.ko");

11. Go to /system/app in both the roms… drag and drop below files from base to port

All google apks
street.apk
talk.apk
talkback.apk
maps.apk
phonesky.apk


12. Go to /META-INF/ in both the roms… drag and drop below files from base to port

CERT.RSA
CERT.SF
MANIFEST.MF


13. Save files and put them to their proper place in port zip file
14. Now the basic porting is over…. any apk file of port rom can be modified using apktool by decompiling it, modding it and recompiling it… search for apktool tutorial in other forums of XDA…
15. Any background images can also be changed using photoshop and placed back to proper location of apk using decompiling and compiling by apktool….

THIS TUTORIAL I MADE FOR ANDI 4.5H IBALL PHONE… HOWEVER IT CAN BE USED FOR ANY PHONE WITH MT65xx CPU WITH MINOR CHANGES….

DON’T POST ANY ROM UNTIL YOU CHECKED IT ON YOUR DEVICE COMPLETELY…!!!

Thanks to,

Master shifu
Yuweng
Igor Pavlov
Kumar abhishek


for their great contributions for mt65xx devices...



1 komentar:

Nt-User mengatakan...

Hi, thanks for ur tutorial... i have succesfully ported lewa rom to my lenovo s930 but the camera is not working..how to fix camera force close and also some other aplication contact. message n clock.. please help me sir...

 
Support : Your Link | Your Link | Your Link
Copyright © 2013. MEDIATEK - All Rights Reserved
Add me Facebook
Proudly powered by Blogger