Phone screen lock settings, including Knock Code and patterns, can be set in 'Settings> Lock Screen.'
How to enable slide lock
In 'Settings> Lock screen> Lock screen type,' select Slide.
How to enable pattern lock
• When setting the pattern, a Google account or a backup PIN must be entered.
• If you have entered the wrong pattern five times, press 'Forgot pattern?' at the bottom of the lock screen. Your phone can be unlocked by entering your Google account details or your backup PIN.