Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-write Zygiskd #38

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
735a0bf
add: Zygiskd C99 re-write
ThePedroo Jul 17, 2024
7e19c72
add: base for C99 zygiskd
ThePedroo Jul 24, 2024
440ff33
improve: code readability; fix: not properly starting up companions
ThePedroo Jul 24, 2024
d55a30c
add: base for CMake building (non-working)
ThePedroo Jul 25, 2024
c6d5176
fix: zygiskd c99 building process
ThePedroo Jul 26, 2024
8e22c2c
remove: Rust from CI
ThePedroo Jul 26, 2024
e79a695
improve: compilation commands
ThePedroo Jul 26, 2024
d51acdd
fix: not properly switching mount ns
ThePedroo Aug 15, 2024
b6c83c0
fix: merge conflicts
ThePedroo Aug 15, 2024
b461a33
improve: compiler calling code
ThePedroo Aug 15, 2024
f91a38e
fix: using fgets in a file descriptor
ThePedroo Aug 15, 2024
1377b5a
fix: zygiskd building
ThePedroo Aug 15, 2024
aa57a87
fix: segmentation fault in write
ThePedroo Aug 16, 2024
c441b9f
add: zygiskd C99 APatch support
ThePedroo Aug 16, 2024
99134cf
add: Magisk support; fix: (some) zygiskd code issues
ThePedroo Aug 20, 2024
5cc1fdb
fix: zygiskd companion, companion responses, write fd function and ea…
ThePedroo Sep 8, 2024
5c9831f
fix: Zygiskd APatch code
ThePedroo Oct 1, 2024
24ad6cb
improve: APatch detection; fix: Magisk detection and Magisk manager d…
ThePedroo Oct 1, 2024
307b2b4
fix: close client in `RequestLogcatFd`; fix: not closing client in er…
ThePedroo Oct 1, 2024
cf93826
fix: sending 32-bit int instead of 8-bit; fix: fd leak
ThePedroo Oct 4, 2024
a3916aa
remove: unused Zygiskd Makefile
ThePedroo Oct 4, 2024
3726c2e
improve: zygisk-ptrace's event parsing
ThePedroo Oct 4, 2024
03ee0b7
fix: zygiskd building NDK version selection
ThePedroo Oct 4, 2024
4cf697d
improve: `zygisk-ptrace` speed by modifying compiler flags
ThePedroo Oct 5, 2024
6fe5846
update: Zygiskd C99 LICENSE
ThePedroo Oct 5, 2024
ed17af2
remove: logging to zygiskd.log file
ThePedroo Oct 5, 2024
a90d32f
fix: few UBs; fix: missing error handler for `malloc`
ThePedroo Oct 5, 2024
1488ce7
improve: Zygiskd `build.gradle.kts`
ThePedroo Oct 5, 2024
a232704
improve: code robustness
ThePedroo Oct 7, 2024
25ee940
merge: main into zygiskd c99 branch
ThePedroo Oct 7, 2024
77839c9
fix: compiling errors
ThePedroo Oct 7, 2024
69d09ea
remove: debug log
ThePedroo Oct 7, 2024
c2c16f2
fix: Zygiskd C99 not properly detecting Magisk DenyList
ThePedroo Oct 21, 2024
d3805b0
improve: status description spacing
ThePedroo Oct 24, 2024
e167fe0
add: Magisk variant status; improve: KSU detection
ThePedroo Oct 24, 2024
1d39abe
fix: memory leak and use-after-free in APatch Zygiskd code
ThePedroo Nov 8, 2024
0c7f879
fix: module name in Zygiskd log
ThePedroo Nov 8, 2024
b1a6679
improve: Zygiskd Magisk code
ThePedroo Nov 8, 2024
cc72c7f
fix: wrong longest root implementation name macro value
ThePedroo Nov 8, 2024
f0df39f
fix: fd leak and out-of-bounds access in `exec_command`
ThePedroo Nov 8, 2024
ddccafa
fix: possible out-of-bounds write; remove: unnecessary logging
ThePedroo Nov 8, 2024
5ddffad
improve: `module.prop` parsing code; fix: deferecing a NULL pointer
ThePedroo Nov 8, 2024
4905aee
fix: additional new line in some logs
ThePedroo Nov 8, 2024
902fe4b
fix: space indentation in macros
ThePedroo Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/ccache-action@v1.2
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"

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,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).
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