Hello everyone, We've all experienced the frustration of having our phone locked and not knowing the pattern, password, or PIN. Don't worry, there's a way to unlock your device without having to perform a factory reset. This method should work on all devices with any Android version, except for those with locked bootloaders. You don't need root access for this.
The pattern is stored in the file "/data/system/gesture.key" and the password or PIN is stored in the file "/data/system/password.key". What I did was simply delete these two files.
Please notethat this method should be used responsibly and only if you're the rightful owner of the device.