Magisk-Modules-Repo / libsecure_storage

This Magisk module contains modified libsecure_storage.so libraries that allow rooted Samsung to function without losing Bluetooth pairings after a reboot.
13 stars 2 forks source link

libsecure_storage companion for rooted Samsung devices

Description

This Magisk module allows rooted Samsung Galaxy S10e/S10/S10+/S10+ 5G (G970F/G973F/G975F/G977B), Note 10/10+/10+ 5G (N970F/G975F/G976B), S9/S9+ (G960F/G965F), Tab S4 (T830/T835), Tab S5e (T720/T725), Tab S6 (T860/T865), Galaxy Fold/Fold 5G (F900F/F907B) and other devices to function without losing Bluetooth pairings after a reboot.

Android 10 and later

When Android 10 is detected, the libbluetooth.so library on your device will be masked. Rather than include a patched version of the library in the module, an attempt will be made to prepare a patched copy from the library on your device.

If patching fails at installation time, your device is either unsupported or has already had its libbluetooth.so hard-patched (e.g. by the Multi-disabler). If you find your device is unsupported, you are advised to migrate to Arthur Trouillot's Bluetooth Library Patcher module. That module more comprehensively supports Android 10 devices and it is not my intention to duplicate that effort here. Android 10 support in the libsecure_storage companion should be regarded as transitional.

Android 9 and earlier

The module contains modified libsecure_storage.so libraries for use on these systems. These modified versions will be used to mask the ones on your device.

After installing the module, you may wish to manually edit /system/etc/init/secure_storage_daemon.rc or /vendor/etc/init/secure_storage_daemon.rc (if either exists) to change the line that reads:

start secure_storage

to:

stop secure_storage

Whilst not required, this extra step will prevent the secure storage daemon from running unnecessarily. This change cannot be dynamically applied by Magisk, because the file is read early in the boot process before Magisk runs.

No files other than the ones provided by this module are required.

Testing

The module was developed and has been tested on Android 8.x (Oreo), 9.x (Pie) and 10.

Changelog

2020-05-09: v2.1

2019-12-13: v2.0

2019-09-06: v1.8

2019-03-29: v1.7

2019-03-21: v1.6

2019-02-27: v1.5

2019-02-27: v1.4

2019-02-25: v1.3

2019-02-20: v1.2

2018-09-06: v1.1

2018-06-24: v1.0