For the security of your device, you will need the best security codes. Some good options are pattern codes, PIN code, and password.. Every type of security option has its pros and cons. Some people prefer pattern codes, and they often forget this code. There is no need to worry because you can unlock your android device even after forgetting a pattern code.