bluetooth keeps stopping

发布时间 2023-04-14 12:38:05作者: nihinumbra

前言

注:本文只提供参考,进行操作前请一定要备份好个人数据,否则请自行承担风险。请把本文看完后再自行斟酌你需要做什么操作,不要看了半截文章就开跑。
我的k40,一年多前刷了残芯twrp和乌堆官改包。然后昨天由于某些原因,我刷了新的安卓13的twrp,然后发现解密分区失败,然后再换安卓11的twrp刷入,因为我的k40是安卓11,解密分区正常了,刷入了delta 面具,开机后发现蓝牙崩了,报错信息类似于:蓝牙屡次停止运行Bluetooth keeps stopping。随后我翻遍了GitHub、XDA社区、Reddit、小米欧洲论坛等发现很多人都有遇到这个问题,情况都差不多,刷了delta面具,刷回低版本twrp仍然蓝牙崩溃,也有和我一样去把/data/user_de/0/com.android.bluetooth/data/user_de/0/com.xiaomi.bluetooth相关文件补上,并把相关文件修改owner和group为Bluetooth依然无法解决的。总结来说,罪魁祸首基本可以判定为twrp导致,当前来看这是一个bug,在XDA和GitHub中,有的用户提供了一些可行的解决办法,但最终都指向了一个必要的操作:在twrp中reset factory,随后开机进系统就好了。

参考解决办法

注:以下方法,笔者没有进行测试,请读者自行斟酌。

  • 方法1
    来自GitHub用户AlphaGeek1:
Here is what worked for me.. and what didn't work. I am on a OnePlus 7 Pro (GM1915) with stock OOS 11 and using TWRP recovery. Right now, I am on TWRP 3.6_11-0 and using Magisk 25.2.

What doesn't work: Wipe (factory reset), boot system and run setup. Reboot recovery, flash Magisk, reboot system. Bluetooth (and keychain, and Atmos...) is broken. Constant message coming up about these stopping.

What worked: boot recovery, wipe (factory reset), now flash Magisk <-- this is the difference because the Android one-time setup has not run yet, reboot system, go through setup. I did not see Magisk app, so I installed Magisk 25.2 APK via File Manager. Upon opening, it says additional setup needed and reboots device. Once rebooted, device is rooted, bluetooth works.
  • 方法二
    来自XDA用户Jatin Verma x821
I know this is very late and you might have found the solution yourself, but I found the solution to this problem. Since yesterday I was trying to root my ginkgo with twrp, using magisk delta and had exact same issue. Joyose and bluetooth keeps stopping, and don't work. Simply factory reset ( I also formatted data) in twrp, and in next boot bluetooth should work. Then you can simply install the magisk apk and let it do its thing. No need to flash again since it has already made changes to boot file that can't be overriden by resetting phone.

参考资料

GitHub:https://github.com/topjohnwu/Magisk/issues/6389
XDA:https://forum.xda-developers.com/t/bluetooth-problem-after-flashing-twrp.4546467/
reddit:https://www.reddit.com/search/?q=Bluetooth keeps stopping