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 saved password for this
     * account, the request is considered valid; otherwise the authenticator
     * verifies the password (usually by contacting the server).
     *
     * <p>This method may be called from any thread, but the returned
     * {@link AccountManagerFuture} must not be used on the main thread.

*
     * <p><b>NOTE:</b> If targeting your app to work on API level 22 and before,
     * MANAGE_ACCOUNTS permission is needed for those platforms. See docs
     * for this function in API level 22.
     *
     * @param account The account to confirm password knowledge for
     * @param options Authenticator-specific options for the request;
     *     if the {@link #KEY_PASSWORD} string field is present, the
     *     authenticator may use it directly rather than prompting the user;
     *     may be null or empty
     * @param activity The {@link Activity} context to use for launching a new
     *     authenticator-defined sub-Activity to prompt the user to enter a
     *     password; used only to call startActivity(); if null, the prompt
     *     will not be launched directly, but the necessary {@link Intent}
     *     will be returned to the caller instead
     * @param callback Callback to invoke when the request completes,
     *     null for no callback
     * @param handler {@link Handler} identifying the callback thread,
     *     null for the main thread
     * @return An {@link AccountManagerFuture} which resolves to a Bundle
     *     with these fields if activity or password was supplied and
     *     the account was successfully verified:
     * <ul>
     * <li> {@link #KEY_ACCOUNT_NAME} - the name of the account verified
     * <li> {@link #KEY_ACCOUNT_TYPE} - the type of the account
     * <li> {@link #KEY_BOOLEAN_RESULT} - true to indicate success
     * </ul>
     *
     * If no activity or password was specified, the returned Bundle contains
     * {@link #KEY_INTENT} with the {@link Intent} needed to launch the
     * password prompt.
     *
     * <p>Also the returning Bundle may contain {@link
     * #KEY_LAST_AUTHENTICATED_TIME} indicating the last time the
     * credential was validated/created.

*
     * If an error occurred,{@link AccountManagerFuture#getResult()} throws:
     * <ul>
     * <li> {@link AuthenticatorException} if the authenticator failed to respond
     * <li> {@link OperationCanceledException} if the operation was canceled for
     *      any reason, including the user canceling the password prompt
     * <li> {@link IOException} if the authenticator experienced an I/O problem
     *      verifying the password, usually because of network trouble
     * </ul>
     */
    public AccountManagerFuture<Bundle> confirmCredentials(final Account account,
            final Bundle options,
            final Activity activity,
            final AccountManagerCallback<Bundle> callback,
            final Handler handler) {
        return confirmCredentialsAsUser(account, options, activity, callback, handler,
                Process.myUserHandle());
    }

锁屏界面 google账号解锁相关推荐

  1. 安卓12锁屏界面上滑解锁困难优化

    1. 参考链接 SystemUI 上滑解锁困难容易失败的分析与解决方案 Android Q 滑屏解锁误操作判断规则 Android S 滑动解锁概率失败 2. 前情摘要 目前MTK安卓12平台,部分项 ...

  2. Android 11.0 锁屏界面滑动解锁不灵的解决方案

    目录 1.概述 2.锁屏界面滑动解锁不灵的解决方案的核心类

  3. 锁屏界面提示某些设置已隐藏_iOS 13隐藏手电筒和相机快捷图标

    在iPhone X及其以上的机型,在iOS 13出现一个bug,通过触发这个bug,就可以隐藏手机锁屏界面的手电筒和相机快捷图标,界面更加简洁.那么又是如何操作的呢. 设置教程 首先,锁屏界面在中间上 ...

  4. 锁屏界面提示某些设置已隐藏_OPPO忘记锁屏密码怎么办?教你一招轻松解开!...

    忘记锁屏密码怎么办 打不开手机好着急 现在不用担心, 教你一招解锁 再也不用怕忘记密码啦 一起来看看吧~ 解锁方式1 1.如果之前有通过[设置]-[指纹.面部与密码]-[锁屏密码]-[绑定安全邮箱]设 ...

  5. android 锁屏显示音乐播放器,Android锁屏界面控制音乐播放

    目前,在锁屏界面控制音乐播放有两种常用方式. 第一种方式:原生Android系统及自带音乐播放器. 锁屏界面端: 原生Android中,锁屏界面相关的UI由KeyguardHostView提供,Key ...

  6. Mac电脑的锁屏界面如何自定义锁屏消息?

    Mac锁屏消息是一种非常实用的功能,您可以设置自定义消息,使其显示在Mac的锁定屏幕上,可以放上任何你觉得有用或者有趣的消息,例如如果您放上个人的联系信息,在放错Mac或丢失Mac的时候,会非常有用, ...

  7. android 系统 锁屏界面,在安卓手机系统使用Ubuntu漂亮的锁屏界面攻略

    如果你了解Ubuntu系统,那么绝对会被它那漂亮的锁屏界面所吸引.今天我们就让广大Android用户能够提前感受一下Ubuntu系统的锁屏界面,并且不会有任何功能上的影响,所有的通知与信息都可以正常显 ...

  8. 锁屏界面提示某些设置已隐藏_息屏还有这些“骚操作”,华为这几个隐藏小功能快用起来...

    现在手机系统更新太快了,有时候根本不知道新手机到底有什么便捷功能! 确实,很多小伙伴换了新手机后,都没怎么对系统深入研究,每当得知的时候就一脸"相见恨晚". 对于经常搞机.喜欢发掘 ...

  9. GNOME 3.36正式发布,家长控制、勿扰模式、更加优雅的锁屏界面

    2020年3月11日,GNOME 3.36正式发布,被命名为 "Gresik", 是 GNOME 3 当前的最新版本.它包含了主要的新功能,以及许多小的改进和错误修复.总的来说,这 ...

最新文章

  1. hdu 4850 字符串构造---欧拉回路构造序列 递归+非递归实现
  2. [Tyvj 1729] 文艺平衡树
  3. nohup.out文件过大的解决办法
  4. 如何新建一个datatable,并往表里赋值
  5. ztree 自定义参数_ztree的自定义编辑
  6. ActiveMQ下载和安装
  7. wps linux2019特色功能,WPS Office 2019 For Linux更新至11.1.0.9522版,附新功能介绍
  8. 音频压缩编码技术(一)—有损压缩
  9. TB-02 Kit开发板及TB系列BLE蓝牙模块固件及天猫精灵三元组串口烧录工具操作方法说明及固件市场介绍(基于泰凌微TLSR8258芯片)
  10. 网页中漂浮的图片代码
  11. 数据填报不用愁,帆软报表来解忧!
  12. Youtube是什么平台?有什么用?能同时登录吗?
  13. 【Arduino 连接DHT11 湿度和温度传感器】
  14. java时间管理_IT 人,如何构建自己的时间管理系统?
  15. c+语言基础教程pdf下载,C语言基础教程.PDF
  16. 秋天到了,有哪些秋季必备的育儿小常识?
  17. 类的加载过程(生命周期)
  18. oracle ogg端口,OGG报错 OGG-01223
  19. [转载]国画技法视频教学网址指南
  20. 日本咖啡馆推出AR体验,在三次元邂逅初音未来

热门文章

  1. GATT协议及蓝牙核心系统结构
  2. 自动构造支撑和阻力线
  3. 领导让你做超出本职岗位的工作,欣然接受or 坚决拒绝?
  4. 最全大数据学习资料,自取不谢!
  5. 有这17个素材网站,创作不会枯竭,免费素材网站
  6. 饭后立即喝茶等于喝毒药
  7. 冬至祝福语,总有一条适合你!!!
  8. 使用SVM对分泌效应蛋白数据集进行分类预测
  9. 在 Android 手机上恢复出厂设置后恢复照片的 4 种简单方法(新方法)
  10. 知识点 左连接、右连接、内连接