There is a \"SIM card lock\" option in android \"setting/Location & security settings\" page.
It\'s necessary to input a PIN code after booting if the option is
As getSimLockEnabled always returns false for me, i had to find another way to do it.
See https://stackoverflow.com/a/12748638/314089 for the answer.