Skip to content

Commit

Permalink
Merge branch 'PerformanC:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sabamdarif authored Nov 12, 2024
2 parents ef92880 + 47566a8 commit 8d5f18c
Show file tree
Hide file tree
Showing 47 changed files with 3,654 additions and 1,896 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,6 @@ jobs:
with:
gradle-home-cache-cleanup: true

- name: Setup rust-cache
uses: Swatinem/rust-cache@v2
with:
workspaces: zygiskd/src -> ../build/intermediates/rust
cache-targets: false

- name: Setup Rust
run: |
rustup override set nightly
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
rustup target add i686-linux-android
rustup target add armv7-linux-androideabi
- name: Set up ccache
uses: hendrikmuhs/[email protected]
with:
Expand All @@ -74,12 +60,6 @@ jobs:
debugName=`ls module/build/outputs/release/ReZygisk-v*-debug.zip | awk -F '(/|.zip)' '{print $5}'` && echo "debugName=$debugName" >> $GITHUB_OUTPUT
unzip module/build/outputs/release/ReZygisk-v*-release.zip -d zksu-release
unzip module/build/outputs/release/ReZygisk-v*-debug.zip -d zksu-debug
releaseSymbolName="SYMBOLS-$releaseName.zip"
debugSymbolName="SYMBOLS-$debugName.zip"
echo "releaseSymbolName=$releaseSymbolName" >> $GITHUB_OUTPUT
echo "debugSymbolName=$debugSymbolName" >> $GITHUB_OUTPUT
zip -r $releaseSymbolName zygiskd/build/symbols/release
zip -r $debugSymbolName zygiskd/build/symbols/debug
- name: Upload release
uses: actions/upload-artifact@v4
Expand All @@ -92,16 +72,3 @@ jobs:
with:
name: ${{ steps.prepareArtifact.outputs.debugName }}
path: "./zksu-debug/*"

- name: Upload release symbols
uses: actions/upload-artifact@v4
with:
name: ${{ steps.prepareArtifact.outputs.releaseName }}-symbols
path: "zygiskd/build/symbols/release"

- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: ${{ steps.prepareArtifact.outputs.debugName }}-symbols
path: "zygiskd/build/symbols/debug"

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ReZygisk

[中文](https://github.com/PerformanC/ReZygisk/blob/main/README_CN.md)

ReZygisk is a fork of Zygisk Next, a standalone implementation of Zygisk, providing Zygisk API support for KernelSU, Magisk (besides built-in), and APatch (Work In Progress).

It aims to modernize and re-write the codebase to C (from C++ and Rust), allowing a more efficient and faster implementation of the Zygisk API with a more permissive license.
Expand All @@ -18,7 +20,6 @@ The Zygisk Next developers are famous and trusted in the Android community, howe
## Advantages

- FOSS (Forever)
- Better Standalone Hiding

## Dependencies

Expand Down Expand Up @@ -76,4 +77,4 @@ It is mandatory to follow PerformanC's [Contribution Guidelines](https://github.

## License

ReZygisk is licensed majority under GPL, by Dr-TSNG, but also by BSD 2-Clause License for re-written code. You can read more about it on [Open Source Initiative](https://opensource.org/licenses/BSD-2-Clause).
ReZygisk is licensed majoritaly under GPL, by Dr-TSNG, but also AGPL 3.0, by The PerformanC Organization, for re-written code. You can read more about it on [Open Source Initiative](https://opensource.org/licenses/AGPL-3.0).
87 changes: 87 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# ReZygisk

[English](https://github.com/PerformanC/ReZygisk/blob/main/README.md)

ReZygisk 是 Zygisk 的另一个独立实现,从 Zygisk Next 分叉而来,为 KernelSU、Magisk 和 APatch 提供 Zygisk API 支持(目前处于测试阶段)。

项目致力于使用 C 语言重写原本的 C++ 和 Rust 代码,从而更加现代、高效地实现 Zygisk API,并使用更宽松的开源许可证。

> [!NOTE]
> 此模块还在测试阶段,请仅安装正式版本的压缩包。
>
> 您可以从 [Actions](https://github.com/PerformanC/ReZygisk/actions) 页面下载自动构建包,但要注意自负风险。使用不稳定的版本时,设备可能会陷入启动循环(Bootloop)。
## 为什么要ReZygisk?

最新版本的 Zygisk Next 并不开源,仅其核心开发者有权查阅全部源代码。这不仅阻止了其他开发者贡献代码,还阻止了他们对项目代码进行审计。Zygisk Next 是一个以超级用户(root)权限运行的模块,可以访问整个系统,闭源后存在重大安全隐患。

Zygisk Next 的开发者们在Android社区享有盛誉,备受信任。但这并不意味着他们的项目就一定没有任何恶意代码和漏洞。我们(PerformanC)理解他们出于某些原因不愿保持开源,但我们坚信,开源是更好的选择。

## 优点

- 永远保持开源

## 依赖

| 工具 | 简介 |
|---------------|------------------------------------|
| `rustc` | Rust 编译器 |
| `Android NDK` | Android 本地开发工具包 |

### Rust 依赖

| 依赖 | 简介 |
|------------------|-------------------------------------------------------|
| `android_logger` | Android 日志记录工具 |
| `anyhow` | 错误处理库 |
| `bitflags` | 用于生成位操作结构的宏 |
| `const_format` | 编译时字符串格式化 |
| `futures` | 异步编程的抽象实现 |
| `konst` | 编译时常量比较 |
| `lazy_static` | 用于声明静态延迟比较变量的宏 |
| `libc` | 对各平台系统C语言库的原始 FFI 绑定 |
| `log` | 日志外观框架 |
| `memfd` | 内存文件描述符实用程序 |
| `num_enum` | 在数字类型和枚举类型之间进行转换的衍生宏 |
| `passfd` | 通过Unix套接字传递文件描述符 |
| `proc-maps` | 解析和分析进程内存映射 |

### C++ 依赖

| 依赖 | 简介 |
|---------|-----------------------------|
| `lsplt` | Android 程序链接表钩子 |

## 用法

目前正在编写中 (敬请期待)

## 安装

目前还没有发布正式版本 (敬请期待)

## 翻译

您可以向 [add/webui](https://github.com/PerformanC/ReZygisk/tree/add/webui) 分支贡献翻译。

请不要忘记在 [TRANSLATOR.md](https://github.com/PerformanC/ReZygisk/blob/add/webui/TRANSLATOR.md) 中添加您的 GitHub 账号信息,以便人们看到您的贡献。

## 支持

如果您有任何关于 ReZygisk 或者其他 PerformanC 项目的问题,可以随时加入以下群组:

- Discord 服务器: [PerformanC](https://discord.gg/uPveNfTuCJ)
- ReZygisk Telegram 群组: [@rezygiskchat](https://t.me/rezygiskchat)
- PerformanC Telegram 群组: [@performancorg](https://t.me/performancorg)

## 贡献

要对 ReZygisk 做出贡献,请遵守 PerformanC 的 [贡献指南](https://github.com/PerformanC/contributing)

请遵循其安全政策、行为准则和语法标准。

## 开源许可证

ReZygisk 项目中,旧的 Zygisk Next 部分采用 GPL 许可证,但由 PerformanC 组织重写的代码则采用 AGPL 3.0 许可证。

您可以在 [Open Source Initiative](https://opensource.org/licenses/AGPL-3.0) 上阅读更多相关信息。
2 changes: 1 addition & 1 deletion loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ val defaultCFlags = arrayOf(
)

val releaseFlags = arrayOf(
"-Oz", "-flto",
"-Ofast", "-flto=thin",
"-Wno-unused", "-Wno-unused-parameter",
"-fvisibility=hidden", "-fvisibility-inlines-hidden",
"-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
Expand Down
Loading

0 comments on commit 8d5f18c

Please sign in to comment.