If you forgot the password or pattern that locks your Android device, or a child or relative was playing with it and entered the wrong password or pattern enough times that it's now locked, this guide will help you. Whatever the reason, in this wiki we will cover exactly what to do to unlock your Android phone.
First, don't panic. There are several ways to unlock your device without resetting it and losing all of your data. Just below this section, we have provided a list of solutions. Each one links to a series of detailed steps you can follow to solve your particular problem. We'll start with the solutions that are easiest to apply, and won't cause any loss of data. If those don't work for you, we've also provided some more in depth and complicated solutions, but make sure to try the easiest solutions first. We encourage you to read through this guide before applying a solution that involves any loss of data. Many times you will be able to recover data, or access a device you that thought was otherwise locked. You can unlock it with your Google account, restore data from your lock screen or reset your device to factory settings.
Also, keep in mind that if you do end up needing to perform a Factory Reset on your device, the data on your SD card should not be changed, and you should take it out before trying any of the more complex solutions listed here (just in case a future Android update changes this).
Note that if you are trying to Factory Reset a Digital 2 tablet, you'll need to follow a different set of instructions, explained in our guide
how to factory reset a Digital2 D2 table terry