android4.4以前的就有这个功能:
Android自定义账户类型和同步适配器模式 Custom Account Type & SyncAdapter
http://blog.csdn.net/w804518214/article/details/52820878
检查账号密码
android\frameworks\base\core\java\android\accounts\AccountManager.java
/**
* Confirms that the user knows the password for an account to make extra
* sure they are the owner of the account. The user-entered password can
* be supplied directly, otherwise the authenticator for this account type
* prompts the user with the appropriate interface. This method is
* intended for applications which want extra assurance; for example, the
* phone lock screen uses this to let the user unlock the phone with an
* account password if they forget the lock pattern.
*
* <p>If the user-entered password matches a