[心得] 出现 "蓝芽 / 蓝牙 已停止" 的解决方法

楼主: OOLoop (迷失的路口)   2016-06-15 14:55:53
[注意]此方法要root,若没root可以参考文章最下方
不知道有多少人遇到过? 新版本的Android应该没有这个问题了,看了一些文章大概是
4.2~4.4都有可能会遇到。
状况:开启蓝芽后,没多久后出现"抱歉,蓝芽已停止",按确定之后,蓝芽会自动关闭
> 再次自动打开 > 再度出现 "抱歉,蓝芽已停止",这样的循环。
闪光的LG G2有出现过这个问题,因为没有root,最后回复原厂设定来解决问题,自己G2
昨天也遇到,于是再次请教Google大神,发现不只LG G2有相同问题,各厂手机都有人遇
到过,关键的原因大概是开启蓝芽后,会自动搜寻附近的装置,然后自动把各装置的MAC
Address记录到 {root}/data/misc/bluedroid/bt_config.xml 这个档案里(for LG G2),
当找到的新装置总数量大于1989或1990时会达到上限导致崩溃,暂时的解决方法是将之前
纪录的MAC Address清除掉,直到下次累积到1990...这个档案没root是没有修改权限的,
我有root所以就参考了 ZackFreedman 的解决方法:https://goo.gl/moJomi,也确实解
决了我的问题,希望能够帮助到遇到相同状况的人。
ZackFreedman 的解决方法:
1. Root your phone and install a file explorer, such as Root Explorer.
2. Turn off Bluetooth.
3. Open your file explorer and mount the filesystem as read/write. Navigate
to {root}/datamedia/misc/bluedroid.
4. Make a backup of the file bt_config.xml.
5. Open bt_config.xml in a text editor.
6. The tags between <N2 Tag="Remote"> and the corresponding </N2> are the
cached Bluetooth devices. Delete them. Save the file in place and return to
the folder.
7. Delete the file bt_config.old.
8. Rename bt_config.xml to bt_config.old.
9. Turn Bluetooth back on.
10. Check your Bluetooth settings. If all your paired devices are gone, the
fix worked. Otherwise, repeat from step 4.
●我跟闪光的LG G2皆为 Android 4.4.2 原厂ROM,我的有root + xposed
●第3点的档案路径,可能每只手机不太一样
●从第6点可以观察到 <N2 Tag="Remote"> 到快到档案底端的 </N2>,中间有多少装置被
记录到,如果是1989~1990,那问题就八九不离十了。
●修改前记得备份原始档案,不然改错就哭哭了。
另外一篇参考文章:
[Bug Watch] Bluetooth Will Begin Crashing After Encountering Too Many BLE
Devices, Affects KitKat 4.4 And Jelly Bean 4.3
http://goo.gl/R67Fkr
里面有两个没root的解法:
1.安装 Bluetooth Crash Resolver APP on Google play store
我在闪光的手机上试过..无效,且这APP要常驻可能会吃电
2.恢复原厂设定

Links booklink

Contact Us: admin [ a t ] ucptt.com