PORTING GUIDE CM12.1 FOR MEDIATEK 6572
NOTE : mtk6572 to mtk6572
require :
-philz recovery
-same mtk6572
-KK
-Mtkbootimg ( for Unpack/repack Bootimg)
Okay Lets Do it DWYOR
Unpack Boot.img
Open ueventd.mt6572.rc find #mali node
compare with the mali node of your stock boot.img it can
be found in your ueventd.rc.
Note: open first ueventd.rc of port boot.img
if its the same with your stock boot.img then don't edit
ueventd.mt6572.rc but if its different then compare ueventd.mt6572.rc
of port with your stock boot.img
Open fstab.mt6572 then compare with your fstab
or just replace with this
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/bootimg /boot emmc defaults defaults
/dev/recovery /recovery emmc defaults defaults
/dev/block/mmcblk0p4 /system ext4 rw wait
/dev/block/mmcblk0p6 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/dev/block/mmcblk0p5 /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/dev/block/mmcblk0p2 /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
/dev/block/mmcblk0p3 /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
/devices/platform/mtk-msdc.1/mmc_host/mmc1 auto vfat defaults voldmanaged=sdcard1:auto
/devices/platform/mtk-msdc.0/mmc_host/mmc0 auto vfat defaults voldmanaged=sdcard0:7
/devices/platform/mt_usb auto vfat defaults voldmanaged=usbdisk0:auto
then replace port kernel with your stock kernel. then repack
Porting System :v
Stock to port
From /system/lib/hw
gralloc_mt6572.so
hwcomposer_mt6572.so
==================================
from /system/lib/
Libmali.so
==================================
from /system/etc/firmware
modem.img
==================================
open build.prop , compare hw.rotation and save
then open system/usr/keylayout/generic.kl
Search Key 102 MOVE_HOME , then Change To Key 102 HOME and Save
ZIP And Enjoy