Skip to content

Implement module hot reload support (libxposed API 102)#743

Open
HSSkyBoy wants to merge 2 commits into
JingMatrix:masterfrom
HSSkyBoy:102
Open

Implement module hot reload support (libxposed API 102)#743
HSSkyBoy wants to merge 2 commits into
JingMatrix:masterfrom
HSSkyBoy:102

Conversation

@HSSkyBoy
Copy link
Copy Markdown

Implement support for libxposed API 102 hot reloading in Vector. This update integrates the new server-side hot reload API, tracks reloadable Hook targets in the daemon, and adds runtime reloading workflows within xposed. Modules can now listen to onHotReloading and onHotReloaded events, while proper Hook handover behavior is guaranteed.

Changes Description

  • Implemented API 102 server-side methods for runtime target discovery and hot reload dispatching.
  • Added target registration and reload routing on the daemon side.
  • Introduced target-side hot reload bridging in xposed.
  • Implemented module reloading coordination logic in VectorModuleManager.
  • Froze active Hooks during reloading and transferred legacy Hook handles to the new instance.
  • Added support for API 102 Hook ID and Hook replacement.
  • Fixed snapshot behavior for replaced and inactive Hooks.
  • Passed module versionCode for target state tracking.
  • Maintained upstream consistency of services/libxposed. The superproject provides shared local annotation sources to satisfy compilation dependencies.

API 102 has not been officially released for now, pending further updates.
libxposed/api#62

@HSSkyBoy
Copy link
Copy Markdown
Author

@Copilot review

@JingMatrix
Copy link
Copy Markdown
Owner

JingMatrix commented May 29, 2026

Please explain the implementation technical details, current pr description is not informative. You can read the subproject README to see what kind of details is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants