If you
forget your Android’s lock screen code, you may be able to reset it. Unfortunately, this feature was removed in Android 5.0, so it won’t work on modern devices. On older devices, try an incorrect password, PIN, or pattern a few times and you may see a “Forgot password,” “Forgot PIN,” or “Forgot pattern” option. You can then regain access to your device by entering the username and password of the Google account associated with your device.
You can’t bypass the lock screen without your Google account password unless there’s a security hole you can exploit in the device. If you want to use the device, you can still
perform a factory reset from recovery mode. This will set the device back to its factory state, wiping all data on it. You can then log in and set up the device with another Google account.