It is possible to directly edit the ssr max latency default value in bluetooth.default.so.Forgive me for being a complete noob about this but here is my thought process so far.
1. I was thinking of downgrading my s7 firmware to 4.0 but that is apparently impossible given the s7 came with 6.0 stock.
2. Since samsung is bad about AOSP, I try to modify the stock rom somehow without having to build from source. I think I may have to root my phone for this part to gain access to the .h file as I still have been unable to find it (with a root file browser from ASUS). I have no idea if this will work and I will need to give myself write access to these files.
3. Flash a custom rom like lineage OS and either see if the Bluetooth works natively, or fiddle with the files from there.
4. Flash a modified samsung source rom?
Is there anything else I should try? Which would be the best way to go about this? I'm going to start with number 2 first.
Someone would probably have a way easier time with this on a different device since samsung is notoriously closed off to modding, so please feel free to try what @igloo suggested above and let us know what happens.
Search for the hex-values B1 F5 48 7F 88 BF 4F F4 48 71 and replace with B1 F5 48 7F 88 BF 18 21 00 BF
If that doesn't work, try searching for B2 F5 48 7F 88 BF 4F F4 48 72 and replace with B2 F5 48 7F 88 BF 18 22 00 BF
This probably only works with Samsung (tested with Note 4 and S6).