Android lock screen bug after system files deleted I accidentally deleted some system files ( I was on adb connection) .
And lock screen stopped working right after.
The issue is that,
I have a lock pin/pattern/password, but system says, it's not correct password.
I changed my password with removing password files from system, and set a new password. But the error was same, incorrect password.
I tried to flash ROM, but it didn't help.After flashing ROM , abd and TWRP broke too, because of the password issue.
Also I can't add custom ssl certificates, because the password problem .
Samsung Galaxy s7, Android 9 with Hyper ROM (Galaxy Note port).
What should I do to repair my system files?
If you have access to the /data/system folder you should delete

password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal

all of them who existing.