Code or program

How to use a code or program to get someone out of an Android phone and keep them out?