
How To Port Lollipop and Marshmallow Based ROMs for MTK Kitkat Devices
Only For Mediatek SOCs
This guide applies to same chipsets:
Example:
MT6592 to MT6592
MT6572 to MT6572
MT6582 to MT6582
And works also for different SOC with same GPU
Before starting this tutorial, please make a backup of your ROM
I am not responsible for any damage to your device, this guide is for expert users.
You Need:
- Winrar, 7-Zip or similar
- Notepad++
- Tool for unpack/repack MTK boot.imgs
- Your Stock KitKat ROM
- One Lollipop/Marshmallow ROM for port
- Brain
Step 1.- Unzip the Lollipop or Marsmallow ROM you want to port and also the Stock ROM. Rename the Lollipop/Marshmallow ROM folder to Port ROM
Step 2.- Delete this files or folders in Port ROM folder and replace with your files from Stock ROM:
Code:
-[B][SIZE="2"]system/etc/firmware <-- Folder
-system/usr/keylayout/Generic.kl <-- File(if you have issues with softkeys and power,volume keys after replacing this file, try don't touch the original [COLOR="Blue"]usr[/COLOR] folder in port ROM. [URL="https://forum.xda-developers.com/showpost.php?p=70381044&postcount=457"]See here[/URL][/SIZE][/B]
Step 3.-Open system/lib/hw folder in Stock ROM folder, then select & copy all files and paste to inside the system/lib/hw folder in Port ROM replacing files.
Note: if you porting a ROM from a different SOC, delete this files before in port rom, like this: audio.primary.mt65xx.so, audio_policy.mt65xx.so, gralloc.mt65xx.so, hwcomposer.mt65xx.so, ligths.mt65xx.so, sensors.mt65xx.so etc.
Step 4.-Rename your stock kitkat boot.img to stockboot.img and the boot.img from Port ROM folder to portboot.img. Now unpack the boot.imgs, use the kernel 3.4.67(zImage)from your decompiled stockboot.img and the ramdisk folder from decompiled portboot.img, recompile it and put this new boot.img in Port ROM folder. Read my post #144.
Step 5.- Open the updater-script in META-INF from port rom, open it with Netepad++. Edit the format &mount points(compare with your updater-script from stock META-INF)
Example:
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p[COLOR="Red"]5[/COLOR]", "0", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p[COLOR="Red"]7[/COLOR]", "0", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p[COLOR="Red"]5[/COLOR]", "/system");
Step 6.- Zip the Port ROM folder and flash it in recovery mode and enjoy.:highfive:
Press the "Thanks" button if this guide has been useful for you
Last edited: