Installing FTS devcfg on POCO F1

How to install devcfg on POCO F1 without getting error?

Question:
What is the correct process/procedure?
Flashing devcfg before installing windows or flashing devcfg after installing windows ?

I need the tutorial guide please
Can someone help me with this Thanks in advance