I created a android lock screen with native js. which on first run takes a pattern and saves it in local storage. On second screen it asks for the same pattern. Used pure native js no frameworks.