How to port custom ROM

in #custom-rom6 years ago

Hello Readers, Welcome to my blog.
I hope you all are well by the grace of Almighty.
So today I am going to share how to custom ROM for MTK chipset 32bit divices.
First of all, remember that it is simple porting method not the cross(X) porting method. So you can port rom from same chipset and same kernel version. But you can't port rom from different kernel or different chipset with this guide.
And formost I am not responsible for any damage to your device.

Let's Begin:


°The following are matter for this guide
•Your Stock ROM(extract it by system.img extractor)
•Your Port ROM(which you want to port to your dwvice)
•Carliv Image kitchen(For extracting boot.img)
•And a little brain :D.

First make two folders on your desktop. Name them Stock ROM and Port ROM. Now put the extracted version of both rom in these folders. First we will port the boot.img. So use the carliv image kitchen to extract the both port and stock ROM's boot.img. Now open both extraced boot folder and browse to kernel. Copy kernel-zImagexx from stock to port folder.
Now repack it via the Carliv Image Kitchen Software. And you have successfully ported boot.img. Next stop system porting. So, for this you will need to copy files from the stock system files to port system files. Go to stock rom/system/lib and copy the following and paste it in same folder of port rom.
°lib/hw(audio.primary.defualt.so, hwcomposer.so, lights.mt65xx.so, sensors.mt65xx.so)
°lib/soundfx(full folder)
°lib/libcameracustom.so
°lib/camalgo.so

Now open system/etc folder on both rom and copy the following from stock to port rom.
°etc/firmware
°etc/mddb(not necessary if it doesn't exist)
°etc/wifi

Vala!You have successfully poeted a custom rom. Now edit the mountpoints in the
Meta-Inf/com/google/android/updater-script. You can use disk info app to know your devices mount points.
Now zip Meta-Inf, system and boot.img. And your rom is redy to flash.

I hope you enjoyed my post. If I have done any mostake please forgive me. And don't forget to follow me.

Always Be Happy!

Sort:  

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by SMTamiM from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Hi @darkslave, your post has been upvoted by @bdcommunity and the trail!

If you want to support us, please consider following our curation trail on Steemauto.com or delegating STEEM POWER to us.

20 SP50 SP100 SP200 SP300 SP500 SP1000 SP

JOIN US ON

Congratulations @darkslave! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got your First payout

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!