How to Port Custom Recovery To Any MediaTek{MTK} Device





How to Port Custom Recovery

</>iyke

Why to install a custom recovery?

A custom recovery environment will do the same things as the stock Android recovery. However, it will also have additional features. Custom recoveries also have the ability to create and restore device backups. Custom recoveries allow you to install Custom ROMs. ClockworkMod even offers a “ROM Manager” app that allows you to access many of these features from a running Android system — this app requires a custom recovery installed to function properly.
Requirements:
  • Rooted Android Phone
  • Knowledge On Unpacking/Repacking .img Files
  • Your Device Resolution
  • Stock Recovery
  • Ported Recovery

How to port custom recovery?

First of all your Android device should be rooted to do this. To know if your device is rooted or not, download Root Checker from the Google Play Store. To root your android device, you may prefer the Ways of Rooting post.
  • Download TWRP/COT/PhilZ or CWM on your PC from any Mediatek device with same screen resolutions.
  • Put the image recovery in the "recovery-resources" folder folder which has extracted tools.
  • Same with the case of Custom Recovery.
  • Now open the folder of stock recovery folder and open a ramdisk folder in it.
Copy these files:
meta_init.project.rc
meta_init.rc
ueventd.rc
meta_init.modem.rc
ueventd.goldfish.rc
fstab.xxx
  • Open etc folder and copy recovery.fstab file too.
  • Now replace these files in the Custom recovery with the same directories.
Now go back and copy these files from the main folder in which you have your stock recovery’s extracted ramdisk and kernel files:
kernel 
  • Replace these files in the Custom Recovery too.
  • Now go back to the main folder where you extracted the tool and locate output folder
  • Done!!!

Credit:
Nana Iyke Quame{me}

Android Matrix Development

Comments

  1. Thank you so much! I have successfully ported your twrp to tecno c8 using this guide

    ReplyDelete
  2. I successfully ported, but my recovery and touch are inverted...

    ReplyDelete
  3. there is no ueventd.goldfish.rc, what should i do?

    ReplyDelete
  4. Nice work you are doing here. Keep It up.
    Pls, I have searched for the phone closest to Tecno H6 to port latest TWRP, but I've been unlucky.

    Any ideas on the phone/s to use?
    Thanks.

    ReplyDelete
  5. I've succeeded in porting CWM to my device but it doesn't work well. In my stock recovery, there were no files with 'goldfish' in the name. Besides that, I did everything else. But my partitions won't mount even with fstab.mt6580 and recovery.fstab replaced correctly. Can you please help me out?

    ReplyDelete

Post a Comment

Popular posts from this blog

[GUIDE][PORTING][MEDIATEK][mt6580]Android 6.0.x Marshmallow ROM Porting Guide-figured

Lollipop n Marshmallow System Extractor and Repacker Version 1.60

[CM] [ROM] [6.0.1] CyanogenMod 13 Unofficial - TECNO W4