If you have forgotten your screen lock or bought a second-hand phone locked to a previous owner’s Google account, flashing fresh firmware is the nuclear—but effective—option.

Flashing firmware carries risks (bricking the device, losing data, voiding warranty). Proceed only if you are confident. This guide is for educational purposes. The author assumes no responsibility for device damage.