使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
追溯写入账号密钥
如果 Seeker 通过传统方式(例如,通过蓝牙设置)而非通过快速配对入口点执行配对,则不会将账号密钥写入 Provider。在这种情况下,即使用户拥有支持快速配对的设备,也无法看到或使用任何快速配对功能。为了让用户能够享受快速配对带来的好处,提供方应允许搜寻方在配对完成后立即静默写入账号密钥。
- 如果提供方在未通过快速配对流程的情况下完成绑定,则允许通过基于密钥的配对方法写入新账号密钥,时间最长为一分钟。在此期间,仅接受写入一个账号密钥。
- 建立 RFCOMM 通道后,提供方应通过消息流将型号 ID 和 BLE 地址发送给搜索方,搜索方将建立 GATT 连接并启动基于密钥的配对程序。
- 如果收到设置了标志位 3 的 Raw Request,提供程序应验证已配对设备的 BR/EDR 地址是否与请求中包含的地址相同。否则,拒绝该请求。
- 由于设备已配对,因此将跳过 BR/EDR 配对和通行密钥验证(流程中的步骤 8-17),并且在建立共享密钥后,Seeker 将直接向 Provider 写入账号密钥。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-13。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-13。"],[[["\u003cp\u003eIf a Fast Pair device is paired traditionally (e.g., via Bluetooth settings), it won't have Fast Pair features until an account key is written.\u003c/p\u003e\n"],["\u003cp\u003eProviders should allow Seekers to write an account key for up to a minute after traditional pairing using Key-based Pairing.\u003c/p\u003e\n"],["\u003cp\u003eThis process involves the Provider sending its Model ID and BLE address, the Seeker establishing a GATT connection, and initiating Key-based Pairing.\u003c/p\u003e\n"],["\u003cp\u003eFor security, the Provider verifies the bonded device's address before accepting the account key write request.\u003c/p\u003e\n"],["\u003cp\u003eSince devices are already bonded, the process skips some steps and the Seeker directly writes the account key after a shared secret is established.\u003c/p\u003e\n"]]],[],null,[]]