I found that it is possible to make "knock to unlock" http://www.knocktounlock.com/ using accelerometer.
I found this for swift: Swift CoreMotion detect Tap or Knock on device while in background
Is there anyone who is interested in making it for android? I am really new on mobile development.
I would appreciate it so much if you share some source code in android java!
Best regards,
Mudin