GithubHelp home page GithubHelp logo

bluetoothlibrarypatcher's Introduction

Bluetooth Library Patcher

Description

This module attends to avoid losing bluetooth pairings after reboot or airplane mode switch on rooted samsung devices.

It patches on the fly the bluetooth library and should support most of samsung devices on android Nougat, Oreo, Pie, 10, 11 and 12.

This patch is NOT applicable with an aosp rom, only samsung stock/based.

Galaxy Watch devices support

Due to limitations in Magisk, a manual step is required to fix pairing issues with Galaxy Watch devices. After installing the Magisk module, use a command line (like Terminal Emulator or Termux) to run the following commands, then reboot:

*Beware! /!\ Owners of the S21 series cannot use these commands (or you have to be SURE your vendor partition isn't read only or full) and must instead use the zip bellow to flash using TWRP. The commands below could brick your device /!*

$ su
$ mount -o remount,rw /vendor
$ i=`grep -lr 'security.wsm' /vendor/etc/vintf` && [ ! -z $i ] && [ $i != *.bak ] && cp --preserve=all $i $i.bak && sed -i '/<.*security.wsm.*/,/<hal format="hidl">/d' $i
$ mount -o remount,ro /vendor

Alternatively, instead of installing the Magisk module and running the commands, flash the zip file (BluetoothLibraryPatcher_X.X.X.zip​) meant for TWRP recovery found on XDA under 'Links'.

Credits

  • @topjohnwu for magisk
  • @afaneh92 for the partition resizing script

Source code

Github

Support

XDA

Changelog

v1.0

  • Initial release

v1.1

  • Add verification point, to know if we successfully hexpatch

v1.2

  • Add recovery installation support

v1.3

  • Modify hexpatch (more safer patch)

v1.4

  • Add support for chinese variants

v1.5

  • Check we try to apply the patch on a Samsung device & add missing chinese Note10+ 5G variant

v1.6

  • Fix brand and model detection for magisk manager and recovery installation

v1.7

  • Add support for chinese/global snapdragon on Pie
  • Add support for chinese/global S/N9 snapdragon on Q & simplify the hexpatch

v1.8

  • Add support for A6, A10, A80, some S10e and N10 variants
  • Apply the only known qcom fix to all of them
  • Add some checks to avoid false negatives

v1.9

  • Support more arm devices
  • Auto create tar with needed files in internal storage to fix unsupported devices

v2.0

  • Support more devices
  • Misc optimizations

v2.1

  • Android 11 support
  • Android Nougat support
  • Misc optimizations

v2.1.1

  • Divers Android 11 fixes

v2.2

  • Large rewrite
  • Detect now OTAs and reapply the patch if needed

v2.2.1

  • Misc fixes

v2.2.2

  • Fix OTA survival script

v2.2.3

  • Handle library changes from latest A505FN firmware and possibly others devices

v2.3

  • Android 12 support
  • Handle few specific devices

v2.3.1

  • Fix qcoms on Android 12
  • Add A105F on Android 11

bluetoothlibrarypatcher's People

Contributors

3arthur6 avatar displax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.