[Upgrading, Modifying and Unlocking] C4lculated:
Hello everyone.

I'm no expert, but I bought the Leagoo T5C and I tried to flash TWRP and and to use it to root the phone, and after hours of digging through the 4pda thread with Google Translate and some trial-and-error I succeeded.

I'd like to share with you what I did in the form of a guide.

As always, I take no responsibility if this bricks your phone.

Prerequisites:

1. My phone came with the ROM version OS2.1_E_20180310, if yours differ you can download the 20180310 ROM from the Leagoo website:

http://www.leagoo.com.my/support/firmware/

This procedure may or may not work for other ROMs. I don't know.

2. Download this archive:

http://www.mediafire.com/?03sggy76mqouj16

It contains all the necessary files.

Alternatively, download all the files used from their sources:

original_boot.img and twrp3.0.3full.img (by jemmini) downloaded from 4pda:

https://4pda.ru/forum/index.php?s=&showtopic=871989&view=findpost&p=72084529

patched_boot.img (by leo2m) downloaded from 4pda:

https://4pda.ru/forum/index.php?showtopic=871989&view=findpost&p=70143767

Magisk-v17.1.zip (by topjohnwu) downloaded from XDA:

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

(Before Magisk I tried SuperSU but it failed to install)

3. You will need the ADB+Fastboot binaries. If you don't have them you can get them here:

https://xdaforums.com/showthread.php?t=2588979

4. Copy twrp3.0.3full.img and Magisk-v17.1.zip to your ADB directory on the PC.

Copy original_boot.img and patched_boot.img to your phone's storage.

optional: Install leagoo T5C ADB driver.

The only driver that worked for me was this driver from Xiaomi:

http://bigota.d.miui.com/tools/xiaomi_usb_driver.rar

(8,672,261 bytes, CRC32: B62ED7DB)

optional: Allow unlocking the bootloader (OEM unlock) and usb debugging from developer options (If you don't know how to get to the developer options google it). I did this prior to everything but I don't think this step is necessary (although it can't hurt).

Lets start:

1. Put the phone in fastboot mode, either by adb (adb.exe reboot bootloader) or by entering stock recovery and selecting to reboot to fastboot.

To enter recovery turn off the phone and then hold both the power button and Vol- button together until you see the lcd turn on. Then you can release both buttons.

2. Connect the phone to the PC via usb and install the fastboot drivers (mine installed automatically so I don't know where to download from).

3. Open a command prompt and flash the recovery and boot images by executing the commands:

fastboot devices
fastboot flash recovery twrp3.0.3full.img
fastboot flash boot patched_boot.img
fastboot reboot

The phone will reboot to the Android OS.

4. Enter recovery by button press (see step 1) or by ADB (adb.exe reboot recovery).

5. Now, this is the tricky part. TWRP will work but only for a few seconds and then the phone reboots. Took me a few tries but I managed to make it stop rebooting by quickly swiping to allow modifications then quickly rebooting to recovery (TWRP>Reboot>Recovery).

6. I installed the original boot (TWRP>Install>Install image>original_boot.img) but I don't think this step is necessary (If you choose to do this DON'T EXIT TWRP until you do step 7).

7. Install Magisk.

8. Reboot to system.

You're done!