yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] shadeau:
First: I apologize that I haven't been looking at this thread more often. Things have been crazy for me and I stopped receiving updates via email from xda so I missed the recent comments. For Oneplus 3T users I've updated the zip to OB13's bluetooth file: link

Second: There appear to be several individuals interested in getting this running on their devices. The short answer is as long as you have a ROM where bluetooth works I should be able to create a zip for your device, but this specific zip will only work for the Oneplus 3/3T.

I've quoted the instructions I gave to the last person who requested this below. They are posted in-context in a few pages back. For non-Samsung users replace "TW" with whatever stock ROM you use (or whatever ROM you got bluetooth working on). I'll need at least the link to the thread hosting that ROM to extract some files from. Also if you know what your devices "TWRP name" is (so I can mount /system from within TWRP) that will be useful for me to have. If you can't find it then I'll try to find it and we'll have some back-and-forth for testing (I don't own any of the mentioned devices so I can't test them personally).

Feel free to post here or PM me with questions.
[OnePlus 3 & 3T Cross Device Development] Derpa:
Hey man! are you still making these for other devices? I desperately need a fix for my axon 7 :) ty!
[OnePlus 3 & 3T Cross Device Development] shadeau:
as long as you can provide the information and files I need, yes. If anyone needs help with this let me know via quoting me or PM.
[OnePlus 3 & 3T Cross Device Development] bashar.abu.diak:
[MENTION=7439032]shadeau[/MENTION]

I used this rom "[Sep 16] [CAF] [7.1.2] [Sultan-ized] Unofficial Resurrection Remix [GCC] by DroidFreak32" my device (op3) connect to my car by Bluetooth and every thing work playing music, making phone calls, except when I press shuffle button or repeating button on my car did not work. Does this fix solve my problem
[OnePlus 3 & 3T Cross Device Development] shadeau:
Did those features work in OOS? If so there's a chance that this could help, but that's not what it's intended for.
[OnePlus 3 & 3T Cross Device Development] Dzinic:
I actually had the opposite issue that the OP had where after upgrading to AOSPA I lost my metadata on my car's display. After I flashed this fix, the metadata was returned but now all of my Spotify songs are playing at what seems to be a faster speed and higher pitch. Basically it makes most the songs sound like they are being sung by chipmunks. Is anyone else experiencing this? I'm on an OP3 with Paranoid Android 7.3.

Edit: I fixed this issue by taking the /system/lib/hw/bluetooth.default.so from LineageOS (last working ROM for me), replacing the bluetooth.default.so in the bt_fix.zip and flashing it. Works fine now. Thanks for the instructions and the fix!
[OnePlus 3 & 3T Cross Device Development] l31gh:
Hi Shadeau, I just sent you a PM with a link for files for the Xiaomi redmi note3. Hopefully you can make a flashable zip for me. Thanks mate.
[OnePlus 3 & 3T Cross Device Development] Srkineo:
shadeau = a BOSS, BMW 116 2016 BLUETOOTH MUSIC FIXED

Hello,

While driving back from Switzerland to The Netherlands, fixed Bluetooth audio problem that surfaced after installing 7.1.1 (Oxygen OS 4.5.1) on the OnePlus 3T of a friend of mine

The file below (BT_Fix_v1.1.zip) WORKS with the BMW 116 2016 sound system!!!

File info for the so that works:

C:\Users\Base>adb shell

~ # [6ncd /system/lib/hw

cd /system/lib/hw

/system/lib/hw # [6nls -la | grep -i blue

ls -la | grep -i blue

-rw-r--r-- 1 root root 1633028 Aug 1 2008 bluetooth.default.so

Many thanks from my friend and me, we have music in the car now:D:D

Flashable Zip fix for other ROMs (Recommended): AFH.

Instructions:

1) Flash ROM in TWRP

2) Flash ZIP

3) Boot ROM

4) Connect to car/device

5) Grant MAP rights

6) Enjoy!

Also, Headset Volume problems? (here, fix by Creeper36) works on same version of OOS.
[OnePlus 3 & 3T Cross Device Development] shadeau:
With some help from [MENTION=1170536]l31gh[/MENTION] I put together a zip for the redmi note 3:

https://androidfilehost.com/?fid=889964283620761279
[OnePlus 3 & 3T Cross Device Development] hasan4791:
Thanks mate... What are files i need to backup before flashin this zip... Also does it trigger safetynet?
[OnePlus 3 & 3T Cross Device Development] shadeau:
I'd do a TWRP backup, but it's only replacing one file (bluetooth.so) I've posted the location in a previous post. Just copy that and paste it into internal storage so you can move it back in TWRP later if you have issues.

Shouldn't trigger safety net. It's just a different Bluetooth profile from a stock ROM.
[OnePlus 3 & 3T Cross Device Development] depii:
I'm using OnePlus 3 (not 3T) with Resurrection Remix v5.8.5 (android-7.1.2, OpenBeta24-FIRMWARE+MODEM). My car is a VW with "Discover Pro" navigation system (2018 model year). Three from four times driving with the car, the Discover Pro says "not connected" for Media Profile. Freehand calling always works fine. According to the first posting, that my Rom is already with fix included. But because of my problems, I tested this bluetooth-stack nevertheless, but it did not help. Damn...
[OnePlus 3 & 3T Cross Device Development] shadeau:
Sorry it's not working. I'll have to fix the first post because RR definitely has the same BT problems as every other LOS based ROM. This BT stack was taken from OOS and will only fix issues if all of those features worked with OOS. If they work with AOSPA I can use that stack to make a BT zip for you as well. Hope that helps clarify.
[OnePlus 3 & 3T Cross Device Development] shadeau:
Apply bluetooth fix without zip

I've updated the main post and the second post. The outdated ROMs that I had have been removed and the instructions are clearer.

Post 2 now includes instructions that anyone can use to fix Bluetooth for their device without needing me to create a zip for them. This should allow anyone reading this thread to apply the same fix themselves. I would request that if you try this to post your results here so others can see if it's working or not for their device. I will still answer requests for making zips if people want them.

Validus' Oreo ROM now has a Bluetooth profile that works with my car. I haven't tested other Oreo ROMs so I'm not sure if this is true for all Oreo ROMs, but it fixed it for me. I would not recommend using a Bluetooth file from a nougat ROM in an Oreo ROM or vice versa (but I did get my nougat zip to work on Validus Oreo so.......). I will post a flash for the OOS Oreo BT file and will label it accordingly to avoid problems. Link will be in the main post.
[OnePlus 3 & 3T Cross Device Development] payat7:
Hi OP,

I'm user from Honor 5x running on LOS 14.1 having Bluetooth problem also when pairing to Bluetooth earphone sometime the music drop and reconnect again , even if the question is out of topic, would your fix be applicable to my device?

feel free to delete this if not meet your thread rules.
[OnePlus 3 & 3T Cross Device Development] Jaizu:
nope, it's a lib and it's hardware based
[OnePlus 3 & 3T Cross Device Development] Carom3de:
Hello... THANK YOU very much!

I have a S5 G900M with RR v.5.7.0 android 6.0.1

My Rom it's completely organized... So, if possible, I don't wanna make any wipe or re-installation

PLEASE:

1- Now I just need to flash the zip file on the first page and that's it???

2- Or this Can brick my rom?

3- Do I have to use a specifically file to my phone?

THANK YOU again!
[OnePlus 3 & 3T Cross Device Development] shadeau:
You won't need to wipe anything, but you can't use the zip here as it's only for the OP3/3T. You can either follow the instructions in the second post or get me the files that I need to make a zip for you. Both options will probably require you to backup your device, flash another ROM, take a file, and restore your backup. Let me know if you need additional help.
[OnePlus 3 & 3T Cross Device Development] ratulupadhyay:
I have the same problem with my Mi4 running on Lineage OS 14.1 (had same problem with CyanogenMod too) where bluetooth connects in a jiffy but then there is no sound output from any of the connected headsets/speakers.

I used MIUI 9.2.2.0 build for this process, went smoothly thanks to your tutorial, but now that I'm back on LOS 14.1, the bluetooth refuses to turn on. Any recommendations?

Edit: OH, could it be that this version of MIUI is still running on Marshmallow? I've not used MIUI since a very long while. LOS 14.1 is on nougat.
[OnePlus 3 & 3T Cross Device Development] shadeau:
Yes, it's very possible that the version mismatch is causing issues. Are there any other Nougat ROMs that have working Bluetooth profiles you can use?
[OnePlus 3 & 3T Cross Device Development] ratulupadhyay:
Well I tried using an AOSP Nougat ROM that didn't list any Bluetooth problems, and this time around atleast the Bluetooth switched on (unlike MIUI) and got connected, but sadly no sound :|

Thanks for the reply though. :)
[OnePlus 3 & 3T Cross Device Development] Nitz327:
Pretty sure this fixed my Bluetooth issue, ALL I could get was phone audio, no media audio at all. Followed the manual install directions, booted and tested and it works!! Iv'e been scouring the internet for daaaays. Appreciate it, I'd give you 100 thanks if i could. :laugh:

Redmi 3s With:

Lineage (Functional Bluetooth)

CRDroid (Just Phone Audio).
[OnePlus 3 & 3T Cross Device Development] kl34n:
do you think this will work in oreo roms?
[OnePlus 3 & 3T Cross Device Development] scilor:
Is it possible to create a magisk module from it?

This is exactly you did? I may create the magisk module myself.

I have problems with bluetooth (bmw cic navigation) since I updated from mm to n.

I am using sultanxdas rom for it.
[OnePlus 3 & 3T Cross Device Development] scilor:
Done:

https://github.com/SciLor/OnePlus-3-AOSPA-Bluetooth-Stack/releases/tag/1.0.0
[OnePlus 3 & 3T Cross Device Development] Lessexpert:
can your method be used roms on samsung galaxy J5 by extracting the file and pasting it in another oreo rom with bluetooth fixed??

any help would be appreciated.
[OnePlus 3 & 3T Cross Device Development] coreytg:
Hi All,

I am new to the board. I just rooted and installed custom RR rom on S5 900H. I cannot get the bluetooth on my headsets or car to work. It does not seem to transmit audio. So I am unable to hear people and they are unable to hear me. I had tried backing up the bluetooth.default.so file with no luck. I know it wasn't quite built for my device but i still tried it unsuccessfully. Has anyone been able to get the bluetooth to work on the S5 900H?

Thanks,

Corey.
[OnePlus 3 & 3T Cross Device Development] kl34n:
hello. thanks for you post. manual procedure worked for me in Liquid Remix oreo rom on a redmi 4x.

Enviado do meu Redmi 4X através do Tapatalk
[OnePlus 3 & 3T Cross Device Development] comishi:
I unpacked the bluetooth.default.so from the OP's zip and used it on a moto G4 with unnoficial LOS14.1 without any problem. Now I can sync with my fitness tracker clock properly!

Thanks!
[OnePlus 3 & 3T Cross Device Development] shadeau:
I've stopped getting notification emails again for posts so in sorry it's taken awhile to get back to you. In the future feel free to pm me if your question hasn't been answered in a day or two.

Thanks for putting that together! :good:

I don't see why not, but there may be some issues with version differences (nougat vs oreo). You should try the manual method to extract your file from the stock ROM and try it in the new one.

Can you clarify what you mean when you say you tried backing it up? Is that the file from the original ROM (Samsung stock)? Did your Bluetooth audio work on the stock ROM? What are the Android versions of the two ROMs?
[OnePlus 3 & 3T Cross Device Development] coreytg:
Hi,

I apologize for not completing that sentence. I meant backing up and using another bluetooth file. I had subsequently found another bluetooth files which seem to work. It can be found at the link below. I used the ¨install-bt-test-v2¨ file.

https://jira.lineageos.org/browse/BUGBASH-1154?jql=text%20~%20%22bluetooth%22
[OnePlus 3 & 3T Cross Device Development] kakhak:
Sadly this doen't work on Samsung Galaxy S5 (SM-G900H - k3gxx) with Nougat v7.1.0 (Resurrection Remix OS/official, Lineage OS/official, Mokee/official). Smartphone barely pairs to the gadgets, then connection works very unstable and it only keeps on 50 cm distance, not more. Then terrible sound drops begins...
[OnePlus 3 & 3T Cross Device Development] nickelnine:
Hi, anyone know what and where is the relevant Bluetooth file in Android 9? I'm facing a similar issue on my OnePlus 6 where stock oos pie Bluetooth is flawless but any AOSP ROM, Bluetooth craps out after a while after making the initial connection. Thank you.
[OnePlus 3 & 3T Cross Device Development] Yakusha:
Hi, does it work with Android 8.1?.. or only 7.1?...

Thanks
[OnePlus 3 & 3T Cross Device Development] rdang:
Hello

[MENTION=7439032]shadeau[/MENTION]

Many thanks for your work!! Connecting to a BLE heart rate belt used to work like a charm on my Leeco s2 with los14.1.

But since switching to los15.1 it's no working. Could someone provide me with one or more bluetooth.default.so files known to work on oreo for testing?

Best regards.
[OnePlus 3 & 3T Cross Device Development] Mega Buster:
I just wanted to say THANK YOU! HTC One, M7 WLS OR SPR (Sprint) using XOSP 7.1.2. Bluetooth didn't work at all; would click slider to on position & would not change color, switch on, or work at all in general. Followed your directions using the Candy 7.1.2 ROM to copy bluetooth file from and it works! FYI: Mount "system" and "SD card" so when you copy & paste it will take properly in both locations. Setup an account on xda just to say thank you!
[OnePlus 3 & 3T Cross Device Development] frazelle09:
i just d/l the BT_Fix_v1.2.zip and used ESExplorer on the OnePlus3 to open a channel to my linux box and just copied the xxx.so to the 3 and then used the ESExplorer to copy it to the /system/hw (after first renaming the original of course). Then rebooted the phone. i still can't get BT to connect to my earphones. Grrr. It was working on the previous version of the Lineage OS.

Have a great evening! :)
[OnePlus 3 & 3T Cross Device Development] DmaxGuy:
Hello, and thank you for this interesting info! I'm very new to Android, and my question will probably reflect this fact, but I can't find the answer via web searches so I'm going to ask it here (since it's directly related to your bluetooth.defaultso advice/info).

I have a Motorola phone that I'm trying to connect a bluetooth earpiece to for streaming audio, and also bidirectional phone calls. I have used the bluetooth earpiece for a long time and it always worked great with the stock ROM. However, when I upgraded to Lineage 13.0 (marshmallow, last stable build), the earpiece won't reconnect any longer. If I press the pair button on the earpiece, it will pair and connect, and as soon as I turn it off the earpiece, the phone sees it as disconnected (as it should), BUT when I switch the earpiece back on, NOTHING. It won't autoconnect, and won't manually reconnect!

Since it was previously paired, I can go into the bluetooth settings and click on the earpiece. It attempts to connect, saying "Connecting...", but never actually connects. The only way to get it reconnected is to press the pair button again. This will send another pair request to the phone, and when I accept the pair request, it will then pair and connect. All is well again until I switch the earpiece off again.

The Motorola phone has a TI bluetooth chipset, and I don't know of any ROMs for it other than CM and Lineage. So my question is if it's possible to take the bluetooth file from the stock rom, and put it into the /system/lib/hw folder of the CM 13.0. Will this wreak havoc?

Also, I have other devices (tablets, etc.) that are also running Android marshmallow, and work perfectly with the earpiece. Can I use one of their bluetooth.defaultso files? I assume not because it's probably chip dependent, or is this not the case?

Thanks for the assistance, it's very much appreciated!
[OnePlus 3 & 3T Cross Device Development] DmaxGuy:
Just an update for those that may be reading this... I attempted to use the stock ROM bluetooth file, but was unable to find any default.bluetooth.so file. This may be something that only exists in ASOP ROMs...? I also attempted to use the file from my tablet, but no joy there either. When I turned on bluetooth it immediately crashed. I'll look around and see if I can find another custom ROM that uses a different bluetooth stack, and is also marshmallow.
[OnePlus 3 & 3T Cross Device Development] :
The filename is "bluetooth.default.so". It's there on oos:

ingo@adler /usr/local/src $ find oxygenos/ -name bluetooth.default.so
oxygenos/system/lib64/hw/bluetooth.default.so
oxygenos/system/lib/hw/bluetooth.default.so
ingo@adler /usr/local/src $

los15 uses a source build version from $BUILD_ROOT/system/bt. los16 doesn't use bluetooth.default.so.
[OnePlus 3 & 3T Cross Device Development] DmaxGuy:
nvertigo67: Oops, talk about a typo on my part! I actually knew that the file was bluetooth.default.so ,not the other way around. I have since installed CyanogenMod 12.1 in a spare slot, and found that the bluetooth on that KitKat version works perfectly with my earpiece. I attempted to take that bluetooth.default.so file and use it with the CM 13.0 Marshmallow version that I have installed, but bluetooth won't turn on (as soon as I flip the slider to on, it automatically flips back to off).

Do you know if it's possible to use the CM 12.1 bluetooth.default.so file with CM 13.0 in some sort of custom build? As for OOS, I would try that one, but I didn't see a version for my phone which is a Motorola Droid 4 (Masarati).

Thanks for the reply and the help!

---------- Post added at 01:36 PM ---------- Previous post was at 01:02 PM ----------

...or does the bluetooth.default.so file not change when built for the different hardware profiles? I just don't know enough about this yet. I don't suppose this is the case because I tried the bluetooth.default.so file from my tablet running Marshmallow and it crashes as soon as I activate bluetooth. Thus, I assumed that I needed something that was made for my specific phone.
[OnePlus 3 & 3T Cross Device Development] shadeau:
I got your PM and I'll respond to that since I still need to fix my subscription not sending me emails. OOS is the stock ROM for the OnePlus series of phones. Since you're running a Droid 4 it's not applicable.
[OnePlus 3 & 3T Cross Device Development] billlum:
[MENTION=7439032]shadeau[/MENTION], thanks so much for your helpful and tireless work!! I SO MUCH wanted this to work but unfortunately it didn't. I did this exact manual procedure as follows. I have a Xiaomi Mi Pad 2 and copied the bluetooth.default.so file from;

LineageOS v 13.0 (for my device name "latte") with bluetooth working .... over to Resurrection Remix v 5.7.4 where bluetooth still doesn't work afterwards.

The toggle for Bluetooth goes ON but cannot scan nor is visible to other devices. Any further suggestions?:)
[OnePlus 3 & 3T Cross Device Development] shadeau:
My first suggestion is to clear the cache and data for the any app related to bluetooth, force close the app, reboot the phone, and try again. If that doesn't work then this is the second non-Qualcomm device that is having issues with the bluetooth fix. Your case is even odder than the Motorola since both the ROMs are the same version of android. In fact since RR is based off of Lineage I'm surprised that it's not working (unless they're both unofficial ports). If you post links for both the ROMs I will try to do the same thing that I've been attempting for [MENTION=6016430]DmaxGuy[/MENTION] and edit the files before compiling. Hopefully I won't have the same issues since it seems that some of the Devs for these ROMs have moved on to other devices.
[OnePlus 3 & 3T Cross Device Development] billlum:
OK, I repeated the manual procedure 3 times now and still no luck with Bluetooth. Really weird! What apps should I be looking for that's Bluetooth related to try force close/clear cache/ clear data?

And btw, I think the LineageOS v 13.0 and ResurrectionRemix-M-v 5.7.4 20170310-latte ROMs are "UNOFFICIAL" versions. But I can't post those links here apparently coz I'm just a junior member?
[OnePlus 3 & 3T Cross Device Development] shadeau:
Go to the settings menu, open the apps setting, ensure that system apps are displayed, and find Bluetooth (the main one). Your phone might have other apps related to Bluetooth, but you probably don't need to mess with them. Try PMing me the links or post them as text instead of a link and I can paste them into my browser.
[OnePlus 3 & 3T Cross Device Development] billlum:
Bluetooth works here;

drive.google.com/file/d/1JMjHW6Gkjff_tbUDPdlJTRboE4AGuyer/view

Bluetooth doesn't here;

drive.google.com/drive/mobile/folders/0B-Fin8UxrD6PVGZyVHc1aTN5V2s

Tried the Settings>Bluetooth>Forced stop, still didn't fix the issue.

THANKS!!
[OnePlus 3 & 3T Cross Device Development] Dobrejtega:
Bluetooth

Does this also work with xiaomi mi a3 runninflg the pixel experience rom?
[OnePlus 3 & 3T Cross Device Development] shadeau:
Honestly I haven't used or needed this fix for almost 3 years now so you'd have to try to find out. I would attempt the manual instructions since the zip was designed for the OnePlus 3/3T and see if that works. No guarantees though.
[OnePlus 3 & 3T Cross Device Development] Dobrejtega:
How do I do this manually? Where are the bluetooth files located?
[OnePlus 3 & 3T Cross Device Development] shadeau:
The second post includes instructions for where to find the bluetooth files in TWRP. I'm assuming your ROMs will have it in this location, but if they don't then I'm not sure where they'd be in this version of Android.
[Blu Vivo 5R Guides, News, & Discussion] mirozeman:
Working Android 7.0.

Flash it with sp flash tool.

Start your phone and follow the setup (language=>wifi=>google account=>.......).

Now in your phone go to setting and find factory reset.

Reset your phone and reboot

Do it in your own risk.

Bugs: 00 Credit in 30 minutes, sms are sent to +91 -_-

Fix: change your center message number
[Blu Vivo 5R Guides, News, & Discussion] stonerphoner:
can you flash with twrp?

bootloader and root going to be ok?
[Blu Vivo 5R Guides, News, & Discussion] 561852:
THANK YOU, I will be trying this very soon, I'll try to give some helpful feedback

---------- Post added at 01:14 AM ---------- Previous post was at 01:09 AM ----------

Also, just to be clear, is this a stock 7.0 rom (with the vivo 5r skin, like the quick settings sliding from the bottom?) or is it aosp or cyanogen mod?
[Blu Vivo 5R Guides, News, & Discussion] 561852:
Okay, I just installed this rom using SP Flash Tool, and i have to say it works fairly well, it's still has a gionee skin on it (the original manufacturor). Thank you for this rom. :D

Update: I can't seem to get around the invalid imei issue, so i'm switching back to stock rom :(
[Blu Vivo 5R Guides, News, & Discussion] sixdown:
I also installed it successfully using the SP Flash tool but it wiped my IMEI numbers. I had to use MauiMETA 9.16 to restore them. I tried both firmware and download flashes with the same results. This Gionee stock rom does work, other than the IMEI issue and the message centre default number. For those asking, it does not have the BLU skins but it does have the same carefree launcher. It is not for TWRP.
[Blu Vivo 5R Guides, News, & Discussion] mirozeman:
Hi guys,

Did you flash this rom, turned on the phone and followed the setup, went to setting and did factory reset ???

Please can you confirm you followed these steps and after this you have still a IMEI problems. Thanks.

If you have a IMEI issue, you can use this apk Chamelephon and generate new imei numbers.
[Blu Vivo 5R Guides, News, & Discussion] shingers5:
Has anyone tried this and has it fully working? I wanna try but don't wanna lose imei
[Blu Vivo 5R Guides, News, & Discussion] Navajoth:
It's cool