Ensure your phone has at least 50% battery life to prevent it from turning off mid-process.

Find the and tap it exactly 7 times until a toast notification reads, "You are now a developer!" .

This homes all axes and re-establishes the coordinate system. The lock flag will now show "unlocked" and stop flashing.

Download the official Android SDK Platform-Tools package for your specific operating system.