The tool has a built-in database of secret codes to launch hidden menus.

Once you remove FRP and set up a new Google account, doing another factory reset will not bring back the old lock. The new account becomes the legitimate owner.