HOW TO PORT TWRP ON MEDIATEK DEVICES

Car Gaqui

New Member
Jul 18, 2017
8
8
3
49
Edit:

Yes there were although in portuguese... :( :) I am going to upload them... it's a pdf...
also here is a zip file (with the smaller files inside that zip)... If you want the original stock rom please do say so and refer an upload cloud and I will gladly upload it there. :)
 

Attachments

  • Like
Reactions: mrsim

mrsim

KingOfNoobs
Staff member
Mar 1, 2014
14,677
2,179
113
48
London UK
ok so from those instructions it is an OTA zip only and cannot be used with a scatter file or with sp flash tools it is for sd card install only...have you tried installing it...did it install ok...?
 
  • Like
Reactions: Car Gaqui

Car Gaqui

New Member
Jul 18, 2017
8
8
3
49
ok so from those instructions it is an OTA zip only and cannot be used with a scatter file or with sp flash tools it is for sd card install only...have you tried installing it...did it install ok...?
Hello @mrsim and thank you again for your care.

I installed it several times. Although I am not sure if the persistence of flash led problems along with the recent problems the camera is showing can be considered as an ok installation :)

And you are correct I installed it as an sd card update. Most surely from the stock recovery. What I did not know yet was that it couldn't be flashed as an spflashtools rom/image or with any other tool for that matter.

I used spflashtools with the files that I had previously backed up with the mtkdroidtools... But perhaps I did not do it properly.

What I am going to do right now is to perform (again) an sdcard update ---> then root it (with kingroot) --> then replace kingroot with some super su --> then I am going to use mtkdroidtools to make the backup of the (freshly rooted and hopefully good) rom that will be on the device --> and then I will try to reprocess those backup files that I will get with mtkdroidtools (but that are not quite ready for spflashtools and this is what I have not done before and perhaps that is why the camera and the led flash are having issues right now) and I will post back.

Again @mrsim thank you for your time and patience.

C u soon.
 
  • Like
Reactions: mrsim

MR-EGO

New Member
Aug 27, 2017
1
1
3
Hello dear people, hi Cleo,

Great contribution!

For days I tried it with the back and forth switchen different ROMs.

Was everything good, but not 100% satisfactory.

Yesterday, I actually dreamed of a similar possibility as shown here by Cleo.

Today I took the time and worked these steps and it went flawlessly!
However, I can not find any differences in system.

I keep watching.


Thanks to this HOW-TO, I now have much more possibilities for modifying my devices.
:)
 
  • Like
Reactions: mrsim

samin sikong

New Member
Oct 29, 2017
7
4
3
38
HOW TO PORT TWRP MT6735, MT6737, MT6752, MT6753, MT6795, MT6797

I am NOT responsible for any brick that could happen to your phone.
You will take all the responsibilities for everything.
It might not work out with all MTK devices !
Before to start to apply all the following steps,
it assumes you already have a copy of the stock firmware (flashable by SP Flash Tool).

I STRONGLY RECOMMEND you to port a TWRP of a device with the following characteristics :
a) same SoC.
b) same storage (optional, but preferred).
c) same GPU (optional, but preferred).


VIDEO TUTORIAL - STEPS :



SCREENSHOTS TUTORIAL - STEPS :

1) Above all download "Carliv Image Kitchen for Android" at the next link :

http://forum.xda-developers.com/android/development/tool-cika-carliv-image-kitchen-android-t3013658

2) Unzip Carliv.zip and click on carliv.bat.
Please see the next screenshot :



3) Copy the recovery.img of your stock rom and paste it into the "recovery-resources" folder (inside Carliv unzipped folder).
Please see the next two screenshots :



4) Type R (and press enter), then type 1 (and press enter).
Please see the next screenshot :



5) Type 1 (Unpack image) and press enter, and see what happens. Please see the next two screenshots :



6) Now you can see the next message : "Your image is unpacked in recovery folder".
Open the "recovery" folder (inside Carliv unzipped folder).
You will can see with your own eyes the "ramdisk" folder and the other 10 files.
Please see the next screenshot :



7) And this is the content of the "ramdisk" folder (of my unpacked stock recovery).
Please see the next screenshot :



8) Create a folder on your desktop and rename it "stock".
Then copy the entire content of "recovery" folder (the "ramdisk" folder and the other 10 files),
and paste them into the folder just created on your desktop (stock folder).
9) Delete your stock recovery.img from "recovery-resources" folder (inside Carliv unzipped folder).
10) Delete all files from the "recovery" folder (inside Carliv unzipped folder).
11) Copy the custom recovery.img (the TWRP that you want to port for your device),
and paste it into "recovery-resources" folder.
12) Now repeat the steps 3, 4 and 5 for the custom recovery.img.
13) Create another folder on your desktop and rename it "port".
Then copy the entire content of "recovery" folder (the "ramdisk" folder and the other 10 files),
and paste them into the "port" folder.
14) Delete all files (unpacked custom recovery.img) from the "recovery" folder (inside Carliv unzipped folder).
15) DO NOT DELETE the custom recovery.img from "recovery-resources" folder.
16) Open simultaneously the stock folder and the port folder (on your desktop).
Please see the next screenshot :



17) Copy the "recovery.img-kernel" and "recovery.img-kernel_offset" from stock folder,
and paste/overwrite them into port folder.
Please see the next screenshot :



18) Open simultaneously the "ramdisk" folder in both stock folder & port folder.
Please see the next screenshot :



19) Copy the "fstab" (in my case "fstab.mt6752"), the "meta_init.modem.rc", the "meta_init.project.rc",
the "meta_init.rc" and the "ueventd.rc" from stock folder,
and paste/overwrite them into port folder.
Please see the next screenshot :



20) You should be able to see the port folder ("ramdisk" folder).
Please see the next screenshot :



21) Now copy the "ramdisk" folder and the other 10 files from port folder (on your desktop),
and paste them into "recovery" folder (inside Carliv unzipped folder).
Then type 2 (Repack image) and press enter.
Please see the next screenshot :



22) "Your new image was repacked as recovery-date-time.img. You can find it in [output] folder".
Open "output" folder (inside Carliv unzipped folder),
and you will find your TWRP ported img.
Please see the next screenshot :



23) Copy the "recovery-date-time.img" from "output" folder and paste it into a new folder on your desktop.
Then, rename your ported twrp img like "recovery.img". Copy the scatter file of your stock rom,
and paste it into the new folder on your desktop (together your ported recovery img).
Then, flash it with SP Flash Tool.
Please see the next screenshot :

[
very easy guide to follow. Thank you for this Tutorial @CLEOPATRA81
 

samin sikong

New Member
Oct 29, 2017
7
4
3
38
How to fix or make it stable TWRP recovery which has bugs like:
1- Black screen when first boot into recovery (need to press power+ volume rocker to see the menu)
2- Reboot function not working, has to be back to MAIN MENU and hit switch off

Any suggestions?

Device: Nubia M2 Lite
3GB RAM, 64GB Storage
MT6750, 64bit
Android 6
 
  • Like
Reactions: mrsim

mrsim

KingOfNoobs
Staff member
Mar 1, 2014
14,677
2,179
113
48
London UK
How to fix or make it stable TWRP recovery which has bugs like:
1- Black screen when first boot into recovery (need to press power+ volume rocker to see the menu)
2- Reboot function not working, has to be back to MAIN MENU and hit switch off

Any suggestions?

Device: Nubia M2 Lite
3GB RAM, 64GB Storage
MT6750, 64bit
Android 6
i would try creating a log cat and then posting that into a forum like XDA or some such and seeing what the experts say
 

mikestr

New Member
May 3, 2018
8
8
3
31
does the kitchen work for you guys? i got errors about paths and similar in windows and linux. even after aplying bovirus patches..
 
  • Like
Reactions: mrsim