Unlock pin or paasword

How To Bypass Android lock screen, Pattern Lock, or Password/PIN Without Wiping Data

How can you unlock your phone if you forgot the password:

Unlock with Google’s “Find My Device” Website

This is the safest way to unlock the phone and remove the current password. However, your device should have been enabled “Find My Device,” which most users kept enabled. It can still be in the back of your mind when panic kicks in. That’s why we highlighted how to unlock your device using Google’s built-in security service.