You're right. I factory reset the phone and the lock screen was set by default to SWIPE. When I set it to PASSWORD it caused the boot loop after the phone was restarted. When I set the lockscreen to NONE after deleting locksettings.db, as well as some other related files, in /data/system ( a fix...