Removing verification scripts from a stock ROM 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.
One question first your phones a umiz pro and the twrp is based on umi z.V3.xxx.xxxxx  from Google it appears that there is a base and pro model am I correct
If so then I think from your post it sounds like u flashed the base model recovery on. A pro model I have done this on a homtom ht7 I really messed it up but I think that is your problum