How To Port MTK Roms | Custom Rom Guide |

in utopian-io •  7 years ago  (edited)

What Will I Learn?

  • Porting for marshmallow [Mediatek chipset only]
  • Fixing small bugs

Requirements

To pot a rom you need some tools written below-

  • A pc [As it's a pc guide]
  • Winrar/7zip [For extracting zip]
  • Notpad++
  • Both roms
  • And a working brain

Difficulty

  • Basic

Tutorial Contents

So, if you already have these tools then a big hand for you. If you don't have, download from internet. All these tools are available on internet and these tools are free as well.
If you have downloaded, let's get started-

First of all, extract both of your rom with winrar or 7zip. I mean your stock rom and the rom you want to port.
Now, create two separate folder. Name them stock rom and port rom like below-

Screenshot_14.png

Now move your stock rom to stock rom folder and other one to port folder. The main work begin now. Go to bin folder of stock rom-

Screenshot_15.png

You will see lots of file like this. Now you have to replace below files from stock to port.

-akmd09911
-applysig
-audiocmdservice_atci
-factory
-gzip_static
-kpoc_charger
-vold

If you can't see some files, ignore it.

Screenshot_16.png

Then go to etc folder and replace these folder-

-firmware folder
-mddb folder

Then go to lib folder and replace these files-
Replace From Stock To Port

-lib3a.so
-libacdk.so
-libbluetooth_mtk.so
-libcustom_nvram.so
-libdpframework.so
-libfeatureio.so
-libfeatureiodrv.so
-libhardware_legacy.so
-libimageio.so
-libimageio_plat_drv.so
-libJpgDecPipe.so
-libJpgEncPipe.so
-libm4u.so
-libMiraVision_jni.so
-libmtkjpeg.so
-libmtk_drvb.so
-libnetworklocation.so
-libnvram.so
-libnvramagentclient.so
-libnvram_platform.so
-libnvram_sec.so
-libshowlogo.so
-libvc1dec_sa.ca7.so
-libvcodecdrv.so
-libvcodec_oal.so
-libvcodec_utility.so
-mtk-ril.so
-mtk-rilmd2.so

Ignore if you can't find some of them.

Screenshot_18.png

Then Go to vendor folder and replace these folders-

-lib-folder
-media-folder

Now you need to do some chage on build property-

Open system/build.prop from both rom in notepad++. Then Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port rom. Save the Base build.prop, exit Notepad++, copy the Base build.prop into the Port ROM, overwriting the Port build.prop.

And the last step, replace your ported boot.img to port rom, do not put it to any folder. It's location is direct port folder.

Screenshot_19.png

Now the work is done, just re-zip your port rom and flash it through twrp or any custom recovery.

If you have any ask do comment. I will try to answer all about custom rom.

Curriculum

This is my first post on utopin-io



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Good post..

Thank you bro.
Be with me for this kind of tutorial.

Ok..keep writing

Great post bro so please chak my post

I will do bro.

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • this contribution is considered trivial and does not qualify for an approval ....

You can contact us on Discord.
[utopian-moderator]

This post has received a 0.74% upvote from thanks to: @sourovafrin.
For more information, click here!!!!
Send minimum 0.050 SBD|STEEM to bid for votes.


Do you know, you can also earn daily passive income simply by delegating your Steem Power to @minnowhelper by clicking following links: 10SP, 100SP, 500SP, 1000SP or Another amount

You got a 0.89% upvote from @postpromoter courtesy of @sourovafrin!

Want to promote your posts too? Check out the Steem Bot Tracker website for more info. If you would like to support the development of @postpromoter and the bot tracker please vote for @yabapmatt for witness!

This post has received gratitude of 1.54 % from @appreciator thanks to: @sourovafrin.

Thank you sourovafrin for making a transfer to me for an upvote of 1.36% on this post!

Half of your bid goes to @budgets which funds growth projects for Steem like our top 25 posts on Steem!

The other half helps holders of Steem power earn about 60% APR on a delegation to me!

For help, will you please visit https://jerrybanfield.com/contact/ because I check my discord server daily?

To learn more about Steem, will you please use http://steem.guide/ because this URL forwards to my most recently updated complete Steem tutorial?

This post has received a 0.17 % upvote from @drotto thanks to: @sourovafrin.

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by sourovhi from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, 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.