My idea is to replace the lock screen data with an empty null data
and the phone will be restored to basic slide to unlock
and from here, you can access your phone and insert new password or pin or pattern...etc
without format or modify any data "settings, media, apps, Rom data ..etc"
So what...