lineageos – Bluetooth Process is Dying constantly

My phone’s bluetooth keeps disconnecting and connecting constantly.
I recently built my first custom ROM, Lineage OS 20 for my Redmi Note 9 (Merlin/Merlinx). Lineage OS is not officially supported on my device, so I used the community maintained device tree from here.
The build went smoothly and my phone is running just fine on it. BUT I’m facing this issue bluetooth. I ran adb logcat and in the logs I found this particular line:

Process com.android.bluetooth (pid 3034) has died: psvc PER

I don’t know how to fix this. I am a complete newbie at rom development. Any insight into this would be highly appreciated. I am attaching the full 1-min long log in the pastebin. Please ask for any more info if needed. Thanks !

Read more here: Source link