How To Port Custom Roms Without PC On Your Mobile [Lollipop/Marshmallow]
Do you want to port Custom ROM to your MTK phone? It’s obviously a wish of many people to port custom rom to their phone and enjoy new features and UI in their device. We have already talked about how you can port various android custom roms for your android device. We will recommend you to read all the guides, More you read the more you will get familiar with android system:
- .How to Port Kitkat Custom Rom
- .How to port lollipop/marshmallow roms
- .How to port MIUI Rom For your device
We have already talked about How To Port Kitkat Custom Roms Without PC On Your Mobile So if you want to port a kitkat rom read the guide : Here
But there are many users who want to port and use custom roms for there devices but they couldn't because they dont have access to computers.
No worry my friends, today i am going to show to how you can port custom roms for your MTK device on your device itself. Yes you heard it right, you can port custom roms without any computer directly on your mobile.
By following this tutorial, you can easily port Custom ROM to your MediaTek (MTK) ChipSet phone!
I will try to explain this guide in brief as I can so I don’t think anyone will have doubts left. In case if you have any doubts you can post your comment and I will reply it as soon as possible.
This is for all MT65xx chipsets including:
MT6577MT6582
MT6589
MT6592
This guide is only for MTK! This will work from same chip to same chip for example MT6582 to MT6582 orMT6577 to MT6577, MT6592 to MT6592. To port Custom ROM, all you need to have is a device with same SoC and it’s Custom ROM with your own Stock ROM.
Requirements to Port Custom ROM to your MTK device:
- A Custom Recovery: If you don’t have follow this tutorial to port one!
- Custom ROM (from a device with almost same specifications and SoC) [i hope you have read the guides mentioned before, if not go and read them].
- Your Stock ROM Zip.
- Now you need 2 android applications, One which can handle .zip archive and one that can edit .txt files. There are plenty of apps available on play store that can do mentioned tasks so do search on play store. Or you can Use FX File Manager or ES File Explorer these both file managers can do both tasks (Open .zip files and edit .txt files). Choice is yours.
Some devices have different partitions to flash and the ROM you might flash can brick your phone. It can even hard brick your phone. So it is recommended that you do a ReadBack, ClockWorkMod Backup and MTK Droid Root & Tools backup. This tutorial [Port Custom ROM to your MTK phone] is 100% working, but still we won’t take the GUARANTEE what happens to your device!
What you need to Port Custom ROM to your device [Your Chipset to Your Chipset only]:
- The ROM you need to port [in .zip]. [Port Rom]
- Your stock ROM [extracted with /system and build.prop]. [Base/stock Rom]
How To Port Custom ROM to your Phone:
1. Extract the ROM you need to port and you will have these main things:
- META-INF
- System
- boot.img.
- If you have them then you are ready for next step.
2. Extract both stock and port roms zip with any zip archiver application and then replace files mentioned below respectively :-
For Porting CyanogenMod 12.1 Lollipop
Just find the files and replace :[From Stock To Port]
- a. hwcomposer.mt65xx.so <--- File
- b. libmali.so <--- File
- c. -system/etc/firmware <-- Folder
- d. -system/lib/modules* <--- Folder
- e. -system/usr/keylayout/Generic.kl <--- File
- f. 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 and replace files don’t delete.
- g. In boot.img: (read guide to know how to port boot.img on mobile)- kernel/zimage- ueventd.rc
Note: - if you porting a ROM from a different SOC [6582 to 6592], delete these 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.
After doing this go to step 3.
For Porting CyanogenMod 13 Marshmallow
Just find the files and replace :[From Stock To Port]
a. In system/lib/:
- - libMali.so
- - hwcomposer.mt6582.so
- - libaudio.primary.default.so
- - libcameracustom.so
- - libcamalgo.so
- - libcamdrv.so
b. In system/bin/:
- - gsm* (all files with the name gsm)
- - rild (replace rild from working cm12.1)
c. In system/etc/:
- bluetooth, firmware, wifi (replace entire folder)
d. In boot.img: (read guide to know how to port boot.img on mobile)
- kernel/zimage
- ueventd.rc
3. Finally At the end:
Open the updater-script in META-INF from port rom, open it with any text editor application and. Edit the format & mount points(compare with your updater-script from stock META-INF)
format("ext4", "EMMC", "/dev/block/mmcblk0p7", "0", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
- The final step! Press back button to go to the main folder where you have the Stock ROM. Copy boot.img [From Stock ROM]and replace it with the Port rom‘s boot.img.
- Then go to port roms parent directory and select both folders and your ported boot.img and archive/compress them in a zip file.
- META-INF
- System
- boot.img.
- That's it You are ready! Go ahead and flash the ROM!
Porting ROM was an easy task. Wasn’t it?
But if this is your first port, then obviously your ROM might have some bugs in it. Now?
Read here how you can fix bugs:
If you want to port a Kitkat custom rom without PC on your mobile You can read read the guide here:
Sir mtk port method working in spreadtrum device? please suggest me sir
ReplyDeleteNo spreadtrum is quite different from mediatek so this method will not work for it.
Deletethankyou sir , I want custom ROM intex cloud zest lolipop 5.1 , build number intex_cloud_zest_v02_Indian_set
ReplyDeletespreadteum device sc7731g , please help me sir my device support custom install method custom ROM download link please
i've never used a spreadtrum device so i cant say much about this. but i will try to find a perfect porting method for it.
Deletethankyou sir I am waiting
ReplyDeletehi is this. applicable custom marsmallow based mt6735 arm64 to lollipop mt6753 arm64. thanks
ReplyDeleteUnfortunately not.
DeleteHey I want to port Cyanogen OS 12.1 for my device MyPhone My32L
ReplyDeleteMT6592
Lollipop 5.1
Kernel 3.10.72
Will your methods will work for porting rom??