I'm working on source code of Lollipop. It seems the type lock (if users have to enter a password/SIMM or a pattern) is stored in a database,
/data/system/locksettings.db. This database is located in
/data is encrypted before the user types the password. So I think it may be stored in another place.
CryptKeeperConfirm.java, there is this comment:
/* WARNING - nasty hack! Settings for the lock screen are not available to the crypto screen (CryptKeeper) at boot. We duplicate the ones that CryptKeeper needs to the crypto key/value store when they are modified (see LockPatternUtils). However, prior to encryption, the crypto key/value store is not persisted across reboots, thus modified settings are lost to CryptKeeper. In order to make sure CryptKeeper had the correct settings after first encrypting, we thus need to rewrite them, which ensures the crypto key/value store is up to date. On encryption, this store is then persisted, and the settings will be there on future reboots. */
That leads me to believe that the settings for lock screen (including type lock) are stored in 2 places. Does anyone know what other places lock screen settings and type lock may be stored?