I'm not really familiar with Android development so I'm not sure how to go about this, sorry if those questions are basic.
I have successfully flashed a TWRP recovery on my MTK6797 phone (UMI Z Pro) and I can enter it but somehow managed to soft brick it (the ROM itself doesn't boot, - hangs on the boot screen). So I'd like to install the stock ROM again but keep TWRP recovery since I was planning to tweak the ROM or even perhaps build a custom ROM for this phone since there are none available and probably won't be any in the future.
The problem is that the stock ROM contains some verification scripts, here's a quote from their official forum:
You need the original boot, recovery and system image on your phone since the update script checks their integrity before running. As a conclusion, if you have a custom recovery on your phone and/or ever rooted it, you cannot update it via FOTA but the only way is flashing with SPFT.
How would I go about removing those scripts from the stock ROM? Or does anyone know of another solution to this - TWRP recovery + stock ROM on this phone. Thanks in advance.
UMI Z.V3.01_20170116
kernel version of the stock ROM using SP Flash Tool. The ROM version wasV3.01_20170408
. I also only flashed the recovery.