Skip to content

duhansysl/Bluetooth-Library-Patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

Originally coded and written By @duhansysl

Thanks to @3arthur6 for legacy OneUI HEX values. I got them from his project. His TWRP patcher is here : https://github.com/3arthur6/BluetoothLibraryPatcher

You can run this on Terminal with WSL2 or Linux in the following directory of the script by typing;

  • sudo chmod +x hexpatcher.sh
  • ./hexpatcher.sh
  • You need to choose the right OneUI version to make it work "properly". Every android has its own HEX values so if you don't choose the right value it will fail or won't patch properly for sure.
  • OneUI 1/2/3/4 needs "libbluetooth.so", take it from lib64 folder and put it in "in" folder
  • OneUI 5/6/7 needs either "libbluetooth_jni.so" or "com.android.btservices.apex" so get them from your ROM base and add them into "in" folder
  • OneUI 8 needs either "libbluetooth_jni.so" or "com.android.bt.apex" so get them from your ROM base and add them into "in" folder
  • Patched lib will be copied to "lib_patched" folder and stock one will be copied to "lib_stock" folder.

Last updated: 26.07.2025 - 09:43

SCREENSHOTS

script-pre

script-after

About

Linux & WSL shell script - Universal Bluetooth Library Patcher for OneUI 1/2/3/4/5/6/7/8

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages