Open vidrug opened 5 months ago
https://github.com/anonymix007/ExtA2DP?tab=readme-ov-file#logs
Bluetooth® Bluetooth® 5.2, support SBC, AAC, APTX, aptx HD, LDAC, LHDC
the previous version was working
AndroidRuntime: FATAL EXCEPTION: main
04-18 18:10:39.109 21985 21985 E AndroidRuntime: Process: com.android.bluetooth, PID: 21985
04-18 18:10:39.109 21985 21985 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for void com.oplus.bluetooth.feature.nativechannel.OplusBtNativeChannelUtils.classInitNative() (tried Java_com_oplus_bluetooth_feature_nativechannel_OplusBtNativeChannelUtils_classInitNative and Java_com_oplus_bluetooth_feature_nativechannel_OplusBtNativeChannelUtils_classInitNative__) - is the library loaded, e.g. System.loadLibrary?
Sorry, I'm not going to spend time on reverse engineering BBK BT stack. If you want to, you may provide the list of all those functions and I'll add dummy implementations for them. Refer to this and JNI docs for the format.
Unfortunately I won't be able to pull this off without outside help, is there any way to replace the BBK stack with AOSP then apply the patch?
Use custom ROM. Alternatively, you may try to build QTI BT stack from Paranoid Android and replace Bluetooth.apk with a simple Magisk module, but you'll be on your own here.
I'm planning to add support for AOSP-based (LineageOS, crDroid etc) ROMs in the future, so you'll be able to use any custom ROM.
i find source code for my phone, maybe it help? https://github.com/OnePlusOSS/android_kernel_oneplus_sm8475/tree/oneplus/sm8475_u_14.0.0_oneplus_ace_pro
Nope, it didn't. Kernel has nothing to do with this.
If OplusBtNativeChannelUtils is not that important to the system, then you can consider hooking all native modified functions of OplusBtNativeChannelUtils and skipping them.
That's why I need a list of all these functions. There is already a similar mechanism implemented in jniRegisterNativeMethodsSafe
bluetooth crashes