A fork of JingMatrix's LSPosed/Vector, aiming to make GKMSPatch work
Go to file
JingMatrix 3540f14481
Gracefully handle ENOTSUP in ConfigFileManager.chattr0 (#523)
The `chattr0` method, which attempts to clear special file attributes (like 'i' for immutable) using `ioctl`, can fail with an `ErrnoException` and the error code `ENOTSUP` (Operation not supported) on certain filesystems or Android environments (e.g., noted on a Android 11 device).

When `ioctl` fails with `ENOTSUP`, it means the underlying filesystem does not support the operation of setting/clearing these attributes. In this case, we can safely assume the file/directory is not immutable via this mechanism and treat the operation as a successful non-action.

This commit updates `chattr0` to catch `ErrnoException` specifically and return `true` if the error is `OsConstants.ENOTSUP`, preventing unexpected failures in config file management.
2026-01-31 15:51:03 +01:00
.github Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
app [translation] Update translation from Crowdin (#503) 2026-01-15 21:50:16 +01:00
core Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
daemon Gracefully handle ENOTSUP in ConfigFileManager.chattr0 (#523) 2026-01-31 15:51:03 +01:00
dex2oat Refactor dex2oat wrapper to solve long-standing issues (#515) 2026-01-25 10:13:57 +01:00
external Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
gradle Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
hiddenapi Properly set SELinux context after reboot 2025-11-08 20:17:05 +01:00
magisk-loader Refactor dex2oat wrapper to solve long-standing issues (#515) 2026-01-25 10:13:57 +01:00
services Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
xposed Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
.gitattributes Ndk build (#753) 2021-06-20 11:46:38 +08:00
.gitignore Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
.gitmodules Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00
LICENSE [README] Fix license 2021-02-13 17:28:01 +08:00
README.md Release LSPosed v1.10.2 2025-07-12 11:30:46 +02:00
build.gradle.kts Fix and refactor DexParser implementation (#509) 2026-01-21 18:12:25 +01:00
crowdin.yml [skip ci] Config crowdin 2024-07-24 10:27:25 +02:00
gradle.properties Adjust proguard for Android R8 2024-05-18 23:48:43 +02:00
gradlew Update dependencies 2025-11-08 11:56:08 +01:00
gradlew.bat Update dependencies 2025-11-08 11:56:08 +01:00
settings.gradle.kts Centralize dependencies and migrate to submodules (#512) 2026-01-22 15:13:06 +01:00

README.md

LSPosed Framework

Build Crowdin Download Total

Introduction

A Zygisk module trying to provide an ART hooking framework which delivers consistent APIs with the OG Xposed, leveraging LSPlant hooking framework.

Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: multiple modules can do changes to the same part of the system or app. With modified APKs, you have to choose one. No way to combine them, unless the author builds multiple APKs with different combinations.

Supported Versions

Android 8.1 ~ 16

Install

  1. Install Magisk v26+
  2. Download and install LSPosed in Magisk app
  3. Reboot
  4. Open LSPosed manager from notification
  5. Have fun :)

Download

Note: debug builds are only available in Github Actions.

Get Help

Only bug reports from THE LATEST DEBUG BUILD will be accepted.

  • GitHub issues: Issues
  • (For Chinese speakers) 本项目只接受英语标题的issue。如果您不懂英语请使用翻译工具

For Developers

Developers are welcome to write Xposed modules with hooks based on LSPosed Framework. A module based on LSPosed framework is fully compatible with the original Xposed Framework, and vice versa, a Xposed Framework-based module will work well with LSPosed framework too.

We use our own module repository. We welcome developers to submit modules to our repository, and then modules can be downloaded in LSPosed.

Community Discussion

Troubleshooting guide and Disscusions.

Translation Contributing

You can contribute translation here.

Credits

  • Magisk: makes all these possible
  • XposedBridge: the OG Xposed framework APIs
  • LSPlant: the core ART hooking framework
  • Dobby: inline hooker for LSPlant and native_api implement
  • EdXposed: fork source
  • xz-embedded: decompress .gnu_debugdata header section of stripped libart.so
  • Riru: provides a way to inject code into zygote process
  • ~SandHook: ART hooking framework for SandHook variant~
  • ~YAHFA: previous ART hooking framework~
  • ~dexmaker and dalvikdx: to dynamically generate YAHFA hooker classes~
  • ~DexBuilder: to dynamically generate YAHFA hooker classes~

License

LSPosed is licensed under the GNU General Public License v3 (GPL-3) (http://www.gnu.org/copyleft/gpl.html).