Skip to main content

Magisk/Apatch/Kernelsu模块的工具集

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Alt

RMM 传统模式

运行Action Workflow 完成完整的构建流程

不包含以下功能:

  • prebuild script ❌ 不支持 编译前脚本
  • postbuild script ❌ 不支持 编译后脚本
  • 分模板初始化功能 ❌ 不支持
  • 多项目合并构建 ❌ 不支持
  • 依赖管理 ❌ 不支持
  • 多模块合并 ❌ 不支持
  • 模块仓库 ❌ 不支持
  • AI测试&审计&优化&修复 ❌ 不支持
  • Telegram / Discord 通知 / QQ / 酷安 模块推送功能 ❌ 不支持
  • 代理加速 ❌ 不支持
  • 虚拟机仿真模块测试 ❌ 不支持
  • 模块构建日志 ❌ 不支持
  • 快捷安装至物理机 ❌ 不支持
  • GPG 签名 ❌ 不支持

RMM 新模式

运行Action Workflow apt install pyrmm pyrmm build & test $ release 一条龙服务

  • 在任意地方运行而无需新建github仓库 ☑️
  • 支持 prebuild script / postbuild script ☑️
  • 支持分模板初始化功能 ☑️
  • 支持多项目合并构建 ☑️
  • 支持依赖管理 ☑️
  • 支持多模块合并 ☑️
  • 支持模块仓库 ☑️
  • 支持 AI 测试&审计&优化&修复 ☑️
  • 支持 Telegram / Discord 通知 / QQ / 酷安 模块推送功能 ☑️
  • 支持代理加速 ☑️
  • 支持虚拟机仿真模块测试 ☑️
  • 支持模块构建日志 ☑️
  • 支持快捷安装至物理机 ☑️
  • 支持 GPG 签名 ☑️

快速介绍

RMM (模块开发工具集) v0.1.7 之前 由纯python实现 RMM v0.2.0 至今 由 Rust 混合 Python 实现速度大提升` 核心特点:

支持shellcheck静态sh语法检查 ,在build阶段发现错误. 语法错误包含详细的错误信息和修复建议 全模块开发环节支持 从新建模块 到 构建模块 到测试模块 到发布模块 甚至 ,发布模块时可以选择在release note选择添加代理加速下载链接

不想下载?这样安装到手机太慢了! 我们还支持直接通过adb连接AVD测试机虚拟仿真与直接安装到真机!

如果你是kernelsu用户,还支持不重启手机直接测试模块(因为ksud有这个功能)

avd你可以参考下面的教程,本项目拷贝了rootAVD几个关键文件。 并未将rootAVD内置于本项目,你需要参考rootAVD教程对你的AVD进行root.

感谢 rootAVD 的作者 newbit 提供的便捷root脚本。

Magick.zip版本v29

使用方法

安装 uv (推荐)

从pypi安装

uv tool install pyrmm 

或者 cd到本项目根目录

uv tool install -e . --force 

用户手册

rootAVD:

致谢:rootAVD 示例命令: .\rootAVD.bat "system-images\android-36\google_apis\x86_64\ramdisk.img"

WIN + R 输入以下命令

%LOCALAPPDATA%\Android\Sdk\system-images

system-images\android-36\google_apis\x86_64\ramdisk.img 需要替换为实际路径

模块仓库

开发中 计划兼容现有模块仓库

Magick模块MCP服务器

计划中

开发指南

DEV & 开发指南

git clone https://github.com/LIghtJUNction/RootManageModuleModel.git cd RootManageModuleModel uv sync -U uv build maturin develop uv tool install -e . --force

依次执行上述命令

RMM正式启动时间 2025-06-07 高考首日

预祝各位考生金榜题名,前程似锦!

让我们携手构建一个更庞大的模块生态系统! Let's build a bigger module ecosystem together!

License

MIT License Copyright (c) 2025 LIghtJUNction

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

如果你使用rmm构建模块,请勿移除rmm自动生成的license文件 请在license顶部添加您的license 本项目采用MIT License 因此你可以将你开发的模块进行闭源处理 并且允许将模块进行商业化处理 唯一的要求是包含一份RMM MIT License的副本

声明

本开源项目旨在促进模块生态系统的发展和创新。 拥抱AI技术,提升模块开发效率和质量。

前提

  • 具备一定的Python编程基础
  • 熟悉基本的命令行操作
  • 了解模块化开发的基本概念
  • 开启静态类型检查,等级为strict

贡献

我们欢迎任何形式的贡献,包括但不限于:

  • 提交问题和建议
  • 提交代码和文档的改进
  • 参与讨论和社区活动 请遵循以下步骤进行贡献:
  1. Fork 本仓库
  2. 创建一个新的分支

vscode 启动 注意开启类型检查工具 不接受的PR:

  • 类型检查爆红的PR
  • 大量使用过时的Python语法或库的PR
  • 破坏包独立性的PR

作者我会认真审查每个PR

  • 如果你的PR被拒绝,我会给出详细的理由。如果你提供邮件,我会通过邮件通知你。
  • 如果你的PR被接受,我会在合并时注明你的贡献。

如果你有任何问题或建议,请随时联系我。

  • LIghtJUNction.me@gmail.com
  • 本仓库已加入PROJECT: RMM
  • 请多多提交功能建议,BUG反馈
  • 团队会在项目中进行跟踪ISSUE
  1. 提交你的改动
  2. 提交 Pull Request

感谢你的支持与贡献!

外部依赖

  • uv
  • maturin 用来编译Rust python 扩展模块 基于pyo3
  • shellcheck 用来检查shell脚本语法
  • adb 用来连接AVD或物理机
  • rootAVD 用来root AVD -- 可选 如果有测试需求

环境变量

  • GITHUB_ACCESS_TOKEN: 用于访问GitHub API的令牌 如果未设置 无法使用发布release功能

致谢名单

Credits Kernel-Assisted Superuser: The KernelSU idea. Magisk: The powerful root tool. genuine: APK v2 signature validation. Diamorphine: Some rootkit skills. KernelSU: The kernel based root solution. APATCH : The kernel based root solution. RootAVD: The AVD root script. ShellCheck: The shell script static analysis tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrmm-0.2.2.tar.gz (81.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrmm-0.2.2-cp313-cp313-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.13Windows x86-64

pyrmm-0.2.2-cp312-cp312-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12Windows x86-64

pyrmm-0.2.2-cp311-cp311-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file pyrmm-0.2.2.tar.gz.

File metadata

  • Download URL: pyrmm-0.2.2.tar.gz
  • Upload date:
  • Size: 81.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pyrmm-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ec369b76b128cb1d003904bfda6b576980d5ebe7ebcf691e1d8df7682915d2fb
MD5 1b6c55a66bda1dd30bcde71ee1ea7342
BLAKE2b-256 16273a160dbd6e6fa4fa596fdaad0e637676a79af8789fb1b5c8915c3b8e7de2

See more details on using hashes here.

File details

Details for the file pyrmm-0.2.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyrmm-0.2.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pyrmm-0.2.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c4949d88ef0450d28d027d43ca4d00144fbf19cd5cdc855567ac5881a6e695f5
MD5 eb8884620a8fc5644f6bacd3da02749f
BLAKE2b-256 aff1972fbbaba3b684eea608b79ed326c390d73473dcce08d25ac7b79f4dc46b

See more details on using hashes here.

File details

Details for the file pyrmm-0.2.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyrmm-0.2.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pyrmm-0.2.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 13251bd502d848753a579df8b0cffa83f6487ff6a7b7763d1002dc748cb64906
MD5 1dc3b1b83b28dbd98212effa2cb66164
BLAKE2b-256 bf4368e73ba3cf0de3a157fcf6bff5a825cbc6e8cc8ad590729d1096448c0857

See more details on using hashes here.

File details

Details for the file pyrmm-0.2.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyrmm-0.2.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pyrmm-0.2.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d544a41a0c652664358c10874af7dd60ab8d75b46b1ee7d98f222dcaca7721fc
MD5 2f78e3d24080f360781ee209a99258b7
BLAKE2b-256 ec0235368ac7a0aa013e892f28d09b70cd5c27ac5e3e2c5824b679db351a5308

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page