TGViewer
APatch Updates APatch Updates @apatchchannel · 25.4K subscribers
Post #118 78.8K
Due to increasingly aggressive root detection, we aim to move as much capability of the root manager as possible into modules. The original shell-script-based workflow has become too simple and can no longer meet the needs of module development. We are now introducing a new scripting system: by adding Lua scripts, you can call Rust or even C directly from Lua. This allows Lua to invoke system calls, and you can also expose module interfaces in Lua to communicate with other modules. Modules can pass parameters and call each other in any format you define.

apd provides a set of built-in functions for modules to use. You can refer to our official template at
https://github.com/AndroidPatch/Module-Template-Lua/
to start Lua-based module development. You only need to add a module_id.lua file inside your module to enable the new features.

Starting from this commit:
https://github.com/bmax121/APatch/commit/a5a5c4a8c0a6ea179b2db62dca9bf9b4ab360a0f
we will gradually add more functions to improve the Lua scripting ecosystem. Follow
https://nightly.link/bmax121/APatch/workflows/build/main/APatch
to get the latest build versions.
GitHub GitHub - AndroidPatch/Module-Template-Lua: for APatch Tempate-Lua for APatch Tempate-Lua. Contribute to AndroidPatch/Module-Template-Lua development by creating an account on GitHub.
  • ❤ 284
  • 👍 32
  • 🫡 22
  • 🔥 13
  • ⚡ 9
  • 👎 8
  • 🤗 6
  • ❤‍🔥 4
  • 💯 4
  • 😁 3
  • 👏 2
More from @apatchchannel
  1. Aug 6, 2026由于长时间没有发布release,我们正在快速修复一些bug,新版本需要元模块对模块进行挂载,我们将旧版本的挂载分离为单独的模块你可以仍然使用旧版挂载来保持与旧版挂载一致( htt…
  2. Feb 16, 2026春节快乐🎆🎉~ Happy Chinese New Year‌!
  3. Nov 12, 2025Support kernel 6.12 and fix many bugs.... 👉 Report bug or feature request: https://github…
  4. Jul 7, 2025🎉 New APatch release 11107 is available 🎉 Changelog Fix Linux 6.1 / 6.6 support (by NepX…
  5. Feb 13, 2025🎉 New APatch release 11039 is available 🎉 Changelog Upgraded KernelPatch to version 0.11…
  6. May 2, 2024🎉 New APatch release 10763 is available 🎉 Changelog Upgrade KernelPatch to 0.10.7 Upgrad…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →