Thanks for the detailed guide, would try to unlock once my warranty is over for the Redmi 5, Redmi Note 4X. Want to try to flash custom based rom like Lineage or Pixel Experience.