简体   繁体   English

Android 蓝牙配对对话框显示不到 1 秒

[英]Android Bluetooth pairing dialog shows less than 1 second

This post is here to help people from my brief experience with a bug of the Bluetooth pairing dialog on my phone.这篇文章是为了帮助人们从我的简短经验中解决我手机上蓝牙配对对话框的错误。

Context: I was unable to pair my smartwatch with my Google Pixel 5 running Android 12. When I try the pairing from the Bluetooth menu, the PIN shows on my Withings ScanWatch and the popup to enter the PIN shows on my smartphone.背景:我无法将智能手表与运行 Android 12 的 Google Pixel 5 配对。当我尝试从蓝牙菜单配对时,PIN 码显示在 Withings ScanWatch 上,输入 PIN 码的弹出窗口显示在我的智能手机上。 But after less than 1 second it closes automatically.但不到 1 秒后它会自动关闭。 So I wasn't able to enter the PIN :(所以我无法输入 PIN :(

What I tried:我尝试了什么:

  • restart my phone and my watch重启我的手机和手表
  • delete all my Bluetooth devices already paired删除我所有已配对的蓝牙设备
  • delete the cache of the "Bluetooth" application删除“蓝牙”应用程序的缓存
  • do the pairing in safe mode在安全模式下进行配对

I don't want to reset my phone, so I would like to find another solution.我不想重置我的手机,所以我想找到另一个解决方案。

Solution:解决方案:

  • Go in the "Developer options" (search on Google if not already enabled)进入“开发者选项”(如果尚未启用,请在 Google 上搜索)
  • Check "Enable Gabeldorsche"选中“启用 Gabeldorsche”

It is the new Android BLE stack written in Rust.它是用 Rust 编写的新的 Android BLE 堆栈。 With this option checked, the dialog asking for the pairing PIN remains visible and gives me enough time to enter the PIN.选中此选项后,询问配对 PIN 的对话框仍然可见,并给了我足够的时间输入 PIN。

Hope it can help somebody ;)希望它可以帮助某人;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM