Hardening mobile devices