www.chinaphonearena.com

Full Version: HOW TO PORT TWRP MT6735, MT6752, MT6753, MT6795, MT6797 TWRP MT67xx tutorial
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
(2017-04-16, 00:02)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]
(2017-04-16, 00:13)iceandfire Wrote: [Only registered and activated users can see links Click here to register]

The zip is bigger than 2,5 GB because inside the zip there are also the next folders :

1) ota (902,3 MB)
2) fota (940,8 MB)

TWO SUGGESTIONS :

1) I suggest you to keep only "bin" (1,7 GB) and "db" (16,2 MB) folders.
Then, rar it and share it on Needrom
2) Try to look for the twrp recoveries of the next devices :

[Only registered and activated users can see links Click here to register]

Of course only the Lollipop OS. Then, try to port them.
(2017-04-16, 00:55)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]

The zip is bigger than 2,5 GB because inside the zip there are also the next folders :

1) ota (902,3 MB)
2) fota (940,8 MB)

TWO SUGGESTIONS :

1) I suggest you to keep only "bin" (1,7 GB) and "db" (16,2 MB) folders.
Then, rar it and share it on Needrom
2) Try to look for the twrp recoveries of the next devices :

[Only registered and activated users can see links Click here to register]

Of course only the Lollipop OS. Then, try to port them.
Thank you for the suggestions but I have tried porting the recovery from countless similar devices. With exactly the same specs and lollipop 5.1 but no go! None of them has touch working.
Hello

I will donate for you, Kindly confirm that you can make a custom recovery for my phone MT6797 Innjoo Pro 2.

I tried your way but it seems not working in my phone it goes back to the factory recovery.

also I cannot use bootloader because my phone is locked, and I couldn't find any way to unlock it.

Thanks
(2017-04-18, 07:13)majed2010sa Wrote: [Only registered and activated users can see links Click here to register]

BEFORE TO MAKE A DONATION :

1) Install the adb drivers and fastboot commands :

[Only registered and activated users can see links Click here to register]

2) Unrar the rar. Run “adb-setup.exe”. Hit “Y” to all 3 questions.
3) Tap on Settings --> About phone --> Tap Build number seven times.
Developer options --> OEM unlocking enabled and USB debugging enabled.
4) Plug your phone to PC via USB cable.
5) Allow the pop up request on your phone to give your PC USB debugging.
6) Open CMD (command prompt).
7) Type the next command :

adb reboot bootloader (and press enter)

8) Now type the next command :

fastboot getvar all

9) Tell me if you see "bootloader locked" or "bootloader unlocked".
(2017-04-20, 01:31)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]

BEFORE TO MAKE A DONATION :

1) Install the adb drivers and fastboot commands :

[Only registered and activated users can see links Click here to register]

2) Unrar the rar. Run “adb-setup.exe”. Hit “Y” to all 3 questions.
3) Tap on Settings --> About phone --> Tap Build number seven times.
Developer options --> OEM unlocking enabled and USB debugging enabled.
4) Plug your phone to PC via USB cable.
5) Allow the pop up request on your phone to give your PC USB debugging.
6) Open CMD (command prompt).
7) Type the next command :

adb reboot bootloader (and press enter)

8) Now type the next command :

fastboot getvar all

9) Tell me if you see "bootloader locked" or "bootloader unlocked".


Yes you are correct, I type it by mistake it is MT6757



Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Majed>adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

C:\Users\Majed>fastboot getvar all
(bootloader) max-download-size: 0x8000000
(bootloader) partition-size:flashinfo: 1000000
(bootloader) partition-type:flashinfo: raw data
(bootloader) partition-size:userdata: 32000000
(bootloader) partition-type:userdata: ext4
(bootloader) partition-size:cache: 1b000000
(bootloader) partition-type:cache: ext4
(bootloader) partition-sizeConfusedystem: e0000000
(bootloader) partition-typeConfusedystem: ext4
(bootloader) partition-size:tee2: b00000
(bootloader) partition-type:tee2: raw data
(bootloader) partition-size:tee1: 500000
(bootloader) partition-type:tee1: raw data
(bootloader) partition-size:logo: 800000
(bootloader) partition-type:logo: raw data
(bootloader) partition-size:boot: 1000000
(bootloader) partition-type:boot: raw data
(bootloader) partition-size:lk2: 100000
(bootloader) partition-type:lk2: raw data
(bootloader) partition-size:lk: 100000
(bootloader) partition-type:lk: raw data
(bootloader) partition-size:nvram: 500000
(bootloader) partition-type:nvram: raw data
(bootloader) partition-size:md3img: 500000
(bootloader) partition-type:md3img: raw data
(bootloader) partition-size:md1arm7: 300000
(bootloader) partition-type:md1arm7: raw data
(bootloader) partition-size:md1dsp: 400000
(bootloader) partition-type:md1dsp: raw data
(bootloader) partition-size:md1img: 1800000
(bootloader) partition-type:md1img: raw data
(bootloader) partition-size:proinfo: 300000
(bootloader) partition-type:proinfo: raw data
(bootloader) partition-sizeConfusedec1: 200000
(bootloader) partition-typeConfusedec1: raw data
(bootloader) partition-size:persist: 3000000
(bootloader) partition-type:persist: ext4
(bootloader) partition-sizeConfusedeccfg: 800000
(bootloader) partition-typeConfusedeccfg: raw data
(bootloader) partition-size:protect2: c78000
(bootloader) partition-type:protect2: ext4
(bootloader) partition-size:protect1: 800000
(bootloader) partition-type:protect1: ext4
(bootloader) partition-size:metadata: 2000000
(bootloader) partition-type:metadata: raw data
(bootloader) partition-size:nvdata: 2000000
(bootloader) partition-type:nvdata: ext4
(bootloader) partition-size:nvcfg: 800000
(bootloader) partition-type:nvcfg: ext4
(bootloader) partition-size:frp: 100000
(bootloader) partition-type:frp: raw data
(bootloader) partition-size:expdb: a00000
(bootloader) partition-type:expdb: raw data
(bootloader) partition-size:para: 80000
(bootloader) partition-type:para: raw data
(bootloader) partition-size:recovery: 1000000
(bootloader) partition-type:recovery: raw data
(bootloader) partition-size:preloader: 40000
(bootloader) partition-type:preloader: raw data
(bootloader) off-mode-charge: 1
(bootloader) warranty: yes
(bootloader) unlocked: no
(bootloader) secure: yes
(bootloader) kernel: lk
(bootloader) product: G9V57_KW_U31B_4M
(bootloader) version-preloader:
(bootloader) version: 0.5
all: Done!!
finished. total time: 0.151s

C:\Users\Majed>

Also please be aware that when I try to flash the custom recovery from ADB, its give me a message that my device is locked. as below:

C:\Users\Majed>fastboot flash recovery recovery.img
target reported max download size of 134217728 bytes
sending 'recovery' (14054 KB)...
OKAY [ 0.467s]
writing 'recovery'...
FAILED (remote: not allowed in locked state)
finished. total time: 0.475s

C:\Users\Majed>


When I try to unlock it I cannot press volume up " no response to confirm the unlocking.

Also, when I try to flash the custom recovery from "SP flash tool" it works, but I cannot boot to the custom recovery its like the OS refusing the flashed image and replace it with the factory one.

I appreciate you help me on this.
@majed2010sa :

Please try once again to unlock the bootloader.

STEPS :

1) Connect the phone to the pc via USB cable.
2) Open CMD (command prompt).
3) Type the next command :

adb reboot bootloader (and press enter)

4) Now type the next command :

fastboot oem unlock (and press enter)

5) Press volume up (into your phone) to confirm to unlock the bootloader.
You will see in the CMD prompt the next messages :

"Start unlock flow", and when it will be finished, you will see "OKAY".

6) Reboot in normal mode (be patient, when you unlock the bootloader, the phone reset to factory).
7) Now tap seven times on Build number.
Then Developer options, and re-enable OEM unlocking and USB debugging.

Please keep me update about the situation.
Hi Cleopatra,
Pleased help me.
I followed your instruction but the twrp cannot mount system, data, cache, etc,...

This is which I used to port from: [Only registered and activated users can see links Click here to register]
And this is my device's rom: [Only registered and activated users can see links Click here to register]

Only External SD card mounted successfully.

This is code from original recovery ramdisk\etc\recovery.fstab:
# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6735/fstab.in"
# 1 ""
# 1 ""
# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6735/fstab.in"
# 20 "vendor/mediatek/proprietary/hardware/fstab/mt6735/fstab.in"
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system /system ext4 ro wait,verify



/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,resize,forceencrypt=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/metadata,
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect1 /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect2 /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/nvdata /nvdata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable
# 37 "vendor/mediatek/proprietary/hardware/fstab/mt6735/fstab.in"
/devices/mtk-msdc.0/11230000.msdc0* auto vfat defaults voldmanaged=sdcard0:auto
/devices/mtk-msdc.0/11240000.msdc1* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto


/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/frp /persistent emmc defaults defaults






/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/nvram /nvram emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/proinfo /proinfo emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/lk /bootloader emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/para /misc emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot /boot emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/logo /logo emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/expdb /expdb emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/secro /secro emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/seccfg /seccfg emmc defaults defaults

/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/tee1 /tee1 emmc defaults defaults
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/tee2 /tee2 emmc defaults defaults

And this is from my twrp:
#device mount point fstype [device2] [length=]

/boot emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot flags=display="Boot";backup=1
/logo emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/logo flags=display="Logo";backup=1;flashimg=1
/nvram emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/nvram flags=display="Nvram";backup=1;flashimg=1
/nvdata ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/nvdata flags=display="NvData";backup=1;flashimg=1
/recovery emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery flags=display="Recovery";backup=1
/lk emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/lk flags=display="Uboot"
/proinfo emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/proinfo flags=display="Proinfo";backup=1;flashimg=1
/protect_f ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect1 flags=display="Protect1"
/protect_s ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect2 flags=display="Protect2"
/para emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/para flags=display="Parametr"
/secro emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/secro flags=display="Secro";backup=1
/frp emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/frp flags=display="Frp";backup=1
/metadata emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/metadata
/oemkeystore emmc /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/oemkeystore
/system ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system flags=display="System";backup=1;wipeingui
/cache ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/cache flags=display="Cache"
/data ext4 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata flags=forceencrypt=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/metadata
/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="External SDcard";storage;wipeingui;removable;backup=0

/devices/mtk-msdc.0/11230000.msdc0* auto vfat defaults voldmanaged=sdcard0:auto
/devices/mtk-msdc.0/11240000.msdc1* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto
(2017-04-20, 02:02)Cleopatra Wrote: [ -> ]@majed2010sa :

Please try once again to unlock the bootloader.

STEPS :

1) Connect the phone to the pc via USB cable.
2) Open CMD (command prompt).
3) Type the next command :

adb reboot bootloader (and press enter)

4) Now type the next command :

fastboot oem unlock (and press enter)

5) Press volume up (into your phone) to confirm to unlock the bootloader.
You will see in the CMD prompt the next messages :

"Start unlock flow", and when it will be finished, you will see "OKAY".

6) Reboot in normal mode (be patient, when you unlock the bootloader, the phone reset to factory).
7) Now tap seven times on Build number.
Then Developer options, and re-enable OEM unlocking and USB debugging.

Please keep me update about the situation.

Still its been 15 minutes and no response Smiling, not even something shows that there is process in the background.

I have pressed yes up volume but nothing changes the phone screen still in the confirmation stage, but when I press down volume its response and send me back the main menu.

C:\Users\Majed>adb reboot bootloader

C:\Users\Majed>fastboot oem unlock
...

When I went to Developer options, and re-enable OEM unlocking and USB debugging. its asking to put my pin key, is it something can cause the issue to not be able to unlock the phone through the bootloader?
Boys ... please be patient ... please consider the Italy time zone Smiling

@Cheatmo :

Please install "Aida64" apk :

[Only registered and activated users can see links Click here to register]

Then, make some screenshots about System, CPU, Display and Android.
Then, post here on Chinaphonearena the screenshots.

**********************************************************

@majed2010sa :

Please tell me the Build number of your installed stock rom.
Please post here the link of the custom recovery that you have tried to flash.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49