Think of Fastboot as the "BIOS" level of your Android phone. It is a low-level interface to the bootloader.

Before you set a complex password, unlock your bootloader and flash a custom recovery (like TWRP). That way, when you forget your password next month, you can boot into recovery, delete /data/system/locksettings.db using the file manager, and keep all your photos. That is the real power user move. Disclaimer: This article is for educational purposes and for unlocking devices you own. Attempting to bypass locks on devices you do not own is illegal. Always back up your data before using Fastboot commands.

Type the magic command: