Hey ,first of all thanks for work .
Another way around the flag is with a developer build ,if any for ur model. The modem in it disregards the flag so it can be unlocked. I also have reversed the algorithm to generate the qr codes used to unlock enginermode app. *#*#5646#*#* If any questions u can find me on telegram also user Ju5t3nc4s3
Please see this post on Page 3 of this thread above.