This is the Easiest and Fastest Guide to Port any MTK Rom to Your MTK Device. Things you will need :-
Base Rom (Stock Rom of Your Device)Rom Port (Rom that you are going to Port)WinRARNotepad++
Before Porting please Make sure that you are using a Rom of Same MTKxxxx Device to Port. Take a clean base to port the Rom, it must be bugless. Porting Guide :- Now do as Follows :- First Of all Extract Both the Roms in Two Different Folders and then follow these steps :-
- Go to /system/etc/firmware in both the roms and drag and drop below files from base Rom to port Rom.
catcher_filter.binDSP_ROMmodem.imgmt662x_patch_e3_hdr.binmt662x_patch_e6_hdr.binS_ANDRO_SFL.iniWIFI_RAM_CODEWIFI_RAM_CODE_E6WIFI_RAM_CODE_MT6628WMT.cfg
- Go to /system/etc/permissions in both the roms and drag and drop below files from Base Rom to Port Rom.
com.google.android.maps.xmlcom.google.android.media.effects.xmlcom.google.widevine.software.drm.xmlandroid.hardware.camera.front.xmlandroid.hardware.camera.xml
- Go to /system/framework in both the roms and drag and drop below files from Base Rom to Port Rom.
com.google.android.maps.jarcom.google.android.media.effects.jarcom.google.widevine.software.drm.jar
- Go to /system/lib/modulesin both the roms and drag and drop below files from Base Rom to Port Rom.
ccci.koccci_plat.koccmni.komtk_fm_drv.komtk_fm_priv.komtk_hif_sdio.komtk_hif_sdio_mt6628.komtk_stp_bt.komtk_stp_bt_mt6628.komtk_stp_gps.komtk_stp_gps_mt6628.komtk_stp_uart.komtk_stp_uart_mt6628.komtk_stp_wmt.komtk_stp_wmt_mt6628.komtk_wmt_wifi.komtk_wmt_wifi_mt6628.ko
- Go to /system/libin both the roms and drag and drop below files from Base Rom to Port Rom.
libaudio.a2dp.default.solibaudio.primary.default.solibaudiocompensationfilter.solibaudiocustparam.solibaudiosetting.solibaudioeffect_jni.solibaudioflinger.solibbluetoothem_mtk.solibbluetooth_mtk.solibcamalgo.solibcameracustom.solibfmar1000.solibfmcust.solibfmjni.solibfmmt6616.solibfmmt6620.solibfmmt6626.solibfmmt6628.solibmhal.solibmhalcontent.solibmhalmdp.solibmhalpipe.solibmhalscenario.solibmhalutility.solibmhaldrv.solibsurfaceflinger.so {Black Screen Bug} (if port is successful and only touch is working, try replacing this lib to get the screen back)
- Go to /system/usr/keylayoutin both the roms and drag and drop below files from Base Rom to Port Rom.
Generic.kl (regarding Power Buttons & Soft Keys)
- Go to /system/usrin both the roms and drag and drop below files from Base Rom to Port Rom.
Whole ‘srec’ folder
- Go to /system/xbinin both the roms and drag and drop below files from Base Rom to Port Rom.
libmnlpmnld
- 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=
- 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”);
- Go to /META-INF/in both the roms and drag and drop below files from Base Rom to Port Rom.
CERT.RSACERT.SFMANIFEST.MF
- Internal Memory Fix: If You Face Bug Something like 0.00B internal storage then you can use this file to fix it.
In system/etc replace vold.fstab & vold.fstab.nand from base Rom to port Rom.
That’s it, Now you can Add or Remove System App from System/app folder, but make sure that the name of Apps must be without spaces. Now .zip the Port Folder and Flash it in your Phone with Recovery, before flashing Please Make sure that you have Backed Up up device because in case of bricking i may not be responsible for that. Source :- This Thread on XDA Credits :-
yuwengrishabh.raj37A N D Yyasirmujtaba
If you face any problem then please Comment.