[Android General] ttomovcik:
Recently, I successfully ported TWRP from Coolpad Note 3 Lite to Modena 2. After testing, everything works fine, on both devices. Since this device has locked bootloader, we need to bypass this by enabling fastmmi mode and factory mode to enable temporary root access and make initial backup and flashing. So, let´s get started.

Remember to read this post carefully. I am not resposible for any damage to your device. If you brick your device while flashing the TWRP you can *almost* always recover it using SP Flash Tool and YGDP Tool

IF YOU ACCIDENTALY BRICK YOUR DEVICE AND YOU WANT TO FLASH IT VIA SPFT, DO NOT FORMAT THE DEVICE IN SPFT!!! If you´ll format partitions in TWRP, that´s fine, but don´t do FORMAT ALL + DOWNLOAD or FIRMWARE UPGRADE! This will brick your device, like mine :( This tutorial will not (hopefully) brick it, but just in case something goes wrong, now you know what not to do.

Preparing the environment on your computer

Windows

Download ADB and Fastboot from this link

Open it

Install it system-wide

Also, install the drivers

GNU/Linux (Ubuntu / Debian based distros)

Open terminal

Type "sudo apt install adb fastboot libusb-dev" without the quotes (")

Other things, that are required

Since the file size of the recovery exceeds the maximum 8MB of allowed upload size, you can download it from DataFileHost.

Preparing the device

First, you need to remeber that this could render your device unbootable and will void warranty.

Enable developer options

Go to Settings -> About phone

Tap the build number 7 times

Go back

Go to Developer options

Make sure OEM unlocking and USB Debugging is enabled

Enabling factory mode

Open dialer app

Dial *#9527*#

Click on "DM"

You will be prompted to insert RD personnel password. Enter: 54321

Click cancel button

DM button should change colour to RED

Exit the app by clicking home button

Installing and setting up openrp app

Open terminal / command prompt

Type:

adb start-server

Type:

adb devices

Now, click on your phone allow debugging and make sure to tick the radiobutton to remember / always trust this computer

Type:

adb install

Press spacebar after the install word and drag and drop the downloaded openrp.apk file to terminal

Hit enter

After it´s done, type:

adb shell monkey -p com.yulong.openrp -v 500

Now, the fun part. ROOTING the device

But before that, BACKUP

Now, keep your phone plugged in, and do a normal reboot by pressing and holding the power button and clicking reboot

When it vibrates, press and hold the Volume down key (Vol-)

You will see these lines on the screen:

=>[Factory mode]

=>VolumeDown key is pressed

=>[fastmmi mode]

After that, you´ll see the LED turns green and "Up Down" text on the screen

Now, back to your computer, type in the command prompt

adb devices

You should see XXXXXXXXXXXXXX device listed (where XXXX... is the serial number)

Type in the command prompt:

adb shell dd if=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery of=/storage/self/primary/stock_recovery.img

and

adb shell dd if=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot of=/storage/self/primary/stock_bootimg.img

Flashing the TWRP Image

Type in the command prompt:

adb push (drag and drop the recovery image file here, like you did with the openrp.apk file) /storage/self/primary/

Type:

adb reboot

Press and hold VolumeDown key (Vol-) to boot to fastmmi mode

Type:

adb shell dd if=/storage/self/primary/recovery_twrp_e502.img of=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery

Type

adb reboot

Press and hold the VolumeUp key (Vol+) to boot into recovery. If you see white screen with "Recovery" text in it, congrats. Everything is working. If not, try again.

Flashing the SuperSU package

Download the zip from SuperSU website

Copy the zip over to the device, with TWRP running

In TWRP, click install, click the zip and confirm the installation.

Factory reset is not required, but you should at least wipe the cache

If this post was useful for you, hit the thanks button :)