{"id":21106848,"url":"https://github.com/magisk-modules-repo/libsecure_storage","last_synced_at":"2025-05-17T09:41:05.931Z","repository":{"id":98399014,"uuid":"150421517","full_name":"Magisk-Modules-Repo/libsecure_storage","owner":"Magisk-Modules-Repo","description":"This Magisk module contains modified libsecure_storage.so libraries that allow rooted Samsung to function without losing Bluetooth pairings after a reboot.","archived":false,"fork":false,"pushed_at":"2020-05-09T14:30:31.000Z","size":294,"stargazers_count":14,"open_issues_count":6,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T06:21:36.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Magisk-Modules-Repo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-26T12:15:44.000Z","updated_at":"2024-12-23T16:14:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d11bdd39-e5ab-4919-a645-b9660fb0917d","html_url":"https://github.com/Magisk-Modules-Repo/libsecure_storage","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magisk-Modules-Repo%2Flibsecure_storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magisk-Modules-Repo%2Flibsecure_storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magisk-Modules-Repo%2Flibsecure_storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magisk-Modules-Repo%2Flibsecure_storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Magisk-Modules-Repo","download_url":"https://codeload.github.com/Magisk-Modules-Repo/libsecure_storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254688894,"owners_count":22112514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T00:29:48.696Z","updated_at":"2025-05-17T09:41:05.853Z","avatar_url":"https://github.com/Magisk-Modules-Repo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **libsecure_storage companion for rooted Samsung devices**\n\n## Description\n\nThis Magisk module allows rooted Samsung Galaxy S10e/S10/S10+/S10+ 5G\n(G970F/G973F/G975F/G977B), Note 10/10+/10+ 5G (N970F/G975F/G976B), S9/S9+\n(G960F/G965F), Tab S4 (T830/T835), Tab S5e (T720/T725), Tab S6 (T860/T865),\nGalaxy Fold/Fold 5G (F900F/F907B) and other devices to function without losing\nBluetooth pairings after a reboot.\n\n## Android 10 and later\n\nWhen Android 10 is detected, the `libbluetooth.so` library on your device will\nbe masked. Rather than include a patched version of the library in the module,\nan attempt will be made to prepare a patched copy from the library on your\ndevice.\n\nIf patching fails at installation time, your device is either unsupported or\nhas already had its `libbluetooth.so` hard-patched (e.g. by the\n[Multi-disabler](https://forum.xda-developers.com/galaxy-s10/samsung-galaxy-s10--s10--s10-5g-cross-device-development-exynos/g97xf-multi-disabler-encryption-t3919714)).\nIf you find your device is unsupported, you are advised to migrate to Arthur\nTrouillot's [Bluetooth Library\nPatcher](https://github.com/Magisk-Modules-Repo/BluetoothLibraryPatcher)\nmodule. That module more comprehensively supports Android 10 devices and it is\nnot my intention to duplicate that effort here. Android 10 support in the\n**libsecure_storage companion** should be regarded as transitional.\n\n## Android 9 and earlier\n\nThe module contains modified `libsecure_storage.so` libraries for use on these\nsystems. These modified versions will be used to mask the ones on your device.\n\nAfter installing the module, you may wish to manually edit\n`/system/etc/init/secure_storage_daemon.rc` or\n`/vendor/etc/init/secure_storage_daemon.rc` (if either exists) to change the\nline that reads:\n\n```\nstart secure_storage\n```\n\nto:\n\n```\nstop secure_storage\n```\n\nWhilst not required, this extra step will prevent the secure storage daemon\nfrom running unnecessarily. This change cannot be dynamically applied by\nMagisk, because the file is read early in the boot process before Magisk runs.\n\nNo files other than the ones provided by this module are required.\n\n## Testing\n\nThe module was developed and has been tested on Android 8.x (Oreo), 9.x (Pie)\nand 10.\n\n## Changelog\n\n2020-05-09: v2.1\n\n- Support Snapdragon devices updated to Android 10.\n\n- Improve robustness of detecting successful patch of libbluetooth.so.\n    \n- Fix mode of patched libbluetooth.so to match original.\n\n2019-12-13: v2.0\n\n- Android 10 support added. When Android 10 is detected at installation time,\n  the module will create a modified version of `libbluetooth.so` from the\n  native library and mask this instead of `libsecure_storage.so`.\n\n  Tested and verified on S10 series BSKO firmware and N10 series BSL7\n  firmware.\n\n  Thank you to Arthur Trouillot for finding the byte sequence to be patched.\n\n2019-09-06: v1.8\n\n- Remove files that were used to treat delayed Bluetooth initialisation. It's\n  not clear which devices, if any, need these, and certainly no Samsung device\n  launched in 2019 needs them.\n\n- Android 9 (Pie) support is now deemed stable and will no longer issue a\n  warning.\n\n2019-03-29: v1.7\n\n- Updated for Magisk v19 template format.\n\n2019-03-21: v1.6\n\n- S10e/S10/S10+ doesn't suffer from delayed Bluetooth initialisation, so it is\n  exempt from installation of the extra support files for Pie devices added in\n  v1.5.\n\n2019-02-27: v1.5\n\n- Install extra files on Pie devices to restore undelayed Bluetooth\n  initialisation.\n\n2019-02-27: v1.4\n\n- Experimental Pie support: Explicitly check for the actual location of files\n  to be masked and act as required.\n\n2019-02-25: v1.3\n\n- Add installation check for Android 8.x and issue warning if different.\n\n2019-02-20: v1.2\n\n- Update to latest Magisk template.\n\n- Minimum version of Magisk now v17.0.\n\n- Documentation updates.\n\n2018-09-06: v1.1\n\n- Changed docs to include Tab S4 (T830/T835) and no longer be S9-specific.\n\n2018-06-24: v1.0\n\n- Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagisk-modules-repo%2Flibsecure_storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagisk-modules-repo%2Flibsecure_storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagisk-modules-repo%2Flibsecure_storage/lists"}