[Miscellaneous Android Development] bigrammy:
Root and TWRP Recovery

Usual Warning: Everything is at your own risk and I take zero responsibility for bricked devices etc etc etc.​

​

Download the provided TWRP.img TWRP.img HERE

Also at the bottom of this post.

Before you start I would advise you to do a "Read Back" (Backup) of your device using SPFlashTool :good:

Instructions on how:

Open the SPFlashTool folder and find the file named "options.ini" and open it using Notepad ++.

Find the Line

[ReadBack]
ShowByScatter=false

and change it to

[ReadBack]
ShowByScatter=true

If this line does not exist at all then just add it.

Now save it and exit Notepad ++

Open SPFlashTool and load the scatter.txt you extract from the .zip then go to the read back tab and select the parts you wish to backup.

Do Not Back Up userdata as 128GB is very big and will likely cause errors :silly:

I recommend you back up these preloader, nvram, lk, logo, boot, recovery and system as these should suffice for most eventuality's. :good:

These back up's will be saved in the root of the SPFlashTool Folder and auto named rom0 rom1 etc etc just check the scatter.txt and find the corrosponding sys# to see which each one is

eg: ROM0 = SYS0 = Preloader.

Warning all data will be wipe so back up what you value:

1. Downloaded the New TWRP and rename it to T3-twrp.img

2. Open SPFlashTool

3. Choose "Download Only"

4. Load the custom made scatter file "Lumigon-T3-MT6795_Android_scatter.txt" into SPFlashTool

5. Place a cross in boot, recovery and userdata then in the empty "location" box's double tap and choose the T3-twrp.img, userdata.img and Magisk patched_boot.img provided in the .zip

6. Now hit the download button.

7. After it's done disconnect the phone and wait a few minutes then start the phone.

NOTE: For some reason the patched boot.img of magisk v17 did not do the usual restart during the first boot for me so if this happens (Gets stuck on the white T3 Logo) then force power off and restart it. After this it boots fine but please allow 10 mins for the first boot.

Install the latest stable Magisk Manager app HERE and your done.

You can reboot to recovery to check TWRP is working fine too. ;)

Please Note: I did not unlock the bootloader or even try so it's either unlocked by default or the signed images do the trick.

Bootloader getvar after flashing TWRP and Patched Boot.img

bigrammy@bigrammy-pc ~ $ 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: 1a800000
(bootloader)	partition-type:cache: ext4
(bootloader)	partition-size:system: 79000000
(bootloader)	partition-type:system: ext4
(bootloader)	partition-size:tee2: c60000
(bootloader)	partition-type:tee2: raw data
(bootloader)	partition-size:tee1: 500000
(bootloader)	partition-type:tee1: raw data
(bootloader)	partition-size:expdb: a00000
(bootloader)	partition-type:expdb: raw data
(bootloader)	partition-size:frp: 100000
(bootloader)	partition-type:frp: raw data
(bootloader)	partition-size:logo: 800000
(bootloader)	partition-type:logo: raw data
(bootloader)	partition-size:para: 80000
(bootloader)	partition-type:para: raw data
(bootloader)	partition-size:secro: 600000
(bootloader)	partition-type:secro: raw data
(bootloader)	partition-size:recovery: 1000000
(bootloader)	partition-type:recovery: raw data
(bootloader)	partition-size:boot: 1000000
(bootloader)	partition-type:boot: raw data
(bootloader)	partition-size:lk: 60000
(bootloader)	partition-type:lk: raw data
(bootloader)	partition-size:seccfg: 40000
(bootloader)	partition-type:seccfg: raw data
(bootloader)	partition-size:protect2: a00000
(bootloader)	partition-type:protect2: ext4
(bootloader)	partition-size:protect1: a00000
(bootloader)	partition-type:protect1: ext4
(bootloader)	partition-size:nvram: 500000
(bootloader)	partition-type:nvram: raw data
(bootloader)	partition-size:proinfo: 300000
(bootloader)	partition-type:proinfo: 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: HTT6795_LWT_M
(bootloader)	version-preloader: 0.1.00
(bootloader)	version: 0.5
all: Done!!
finished. total time: 0.005s

Please take note of My firmware version which is v3.2P.273.306 and is shown in the screenshots below if yours is different the outcome may be very different from mine so think before you do anything.

Experimental notes and observations by other users are most welcome. :D

Some Screenshots:

TWRP Updated: Fix slow Data Wipes and some other minor fixes, code cleanup. (Nov 2020)

Click the SHOW button below to view link.

Fixed-Data-Wipe-T3-TWRP.img HERE