ThePedroo
8892eca4a7
fix: wrong longest root implementation name macro value
...
This commit fixes the value of the macro that defines the size of the longest root implementation name, leading to Zygiskd crashes on Magisk Official.
2024-11-10 23:09:49 -03:00
ThePedroo
a6124a6a5e
improve: Zygiskd Magisk code
...
This commit improves the Zygiskd Magisk code by avoiding redundant code and reducing complexity.
2024-11-10 23:09:47 -03:00
ThePedroo
c4ab77ed9e
fix: memory leak and use-after-free in APatch Zygiskd code
...
This commit fixes a memory leak and a user-after-free vulnerability in APatch code of Zygiskd.
2024-11-10 23:09:45 -03:00
ThePedroo
135ebbb9ba
add: Magisk variant status; improve: KSU detection
...
This commit adds the Magisk variant to module description, and also improves KernelSU detection by requiring the userspace part of it to be installed, AKA "ksud".
2024-11-10 23:09:44 -03:00
ThePedroo
e0d0bd0d76
fix: Zygiskd C99 not properly detecting Magisk DenyList
...
This commit fixes the Magisk part of Zygiskd C99 which used to mark all apps as outside DenyList.
2024-11-10 23:09:41 -03:00
ThePedroo
ab7de49e4c
improve: code robustness
...
This commit improves the robustness of the code by removing debug logs, fixing a memory leak, and adding missing error handling.
2024-11-10 23:09:36 -03:00
ThePedroo
980bf2ab4c
improve: Zygiskd build.gradle.kts
...
This commit improves Zygisk's build gradle file by avoiding the repetition of compiler flags.
2024-11-10 23:09:35 -03:00
ThePedroo
0352d9378b
fix: few UBs; fix: missing error handler for malloc
...
This commit fixes some few UBs (Undefined Behaviors) based on numerous sanitizers, and also adds the missing error handling for a "malloc" call.
2024-11-10 23:09:33 -03:00
ThePedroo
b392730366
improve: APatch detection; fix: Magisk detection and Magisk manager detection; fix: fd leak
...
This commit both improves the APatch detection, making it more stricter, and fixes Magisk detection, together with its manager detection, allowing it to successfully boot. Also fixes a fd leak which makes it better at a long run.
2024-11-10 23:08:34 -03:00
ThePedroo
05ae6941ba
fix: Zygiskd APatch code
...
This commit fixes the code that handles APatch based devices to allow them to boot successfully with ReZygisk.
2024-11-10 23:08:32 -03:00
ThePedroo
c2abef8826
fix: zygiskd companion, companion responses, write fd function and early client close
...
This commit fixes numerous issues in zygiskd code: The zygiskd companion code not loading the right entry, the companion not sending the correct responses, the write fd function not working properly and early client close when connecting to the companion.
2024-11-10 23:08:30 -03:00
ThePedroo
a549f0e5ae
add: Magisk support; fix: (some) zygiskd code issues
...
This commit adds Magisk support to Zygiskd C99, and also fixes some code issues of it.
2024-11-10 23:05:37 -03:00
ThePedroo
c1e45e9af6
add: zygiskd C99 APatch support
...
This commit adds support for zygiskd C99 to recognize APatch rooted devices.
2024-11-10 23:05:36 -03:00
ThePedroo
42a5ab989f
add: base for CMake building (non-working)
...
This commit will have a rebase soon.
2024-11-10 23:05:25 -03:00
ThePedroo
da68db8a9a
add: base for C99 zygiskd
...
This commit adds the first base for C99 zygiskd, that is not fully working or code-ready.
2024-11-10 23:03:26 -03:00
ThePedroo
5635c9f7c5
add: Zygiskd C99 re-write
...
This commit re-writes Zygiskd to be C99.
2024-11-10 23:03:25 -03:00
Captain Throwback
f1fe6b4435
add: support for APatch reset su path ( #26 )
...
This commit allows proper root detection when using multiple root solutions.
Co-authored-by: Admire <43035036+Admirepowered@users.noreply.github.com >
2024-07-13 15:43:24 -03:00
Matt
2047bdb1bf
add: APatch support ( #4 )
...
This commit adds support for APatch.
2024-06-22 23:13:29 -03:00
ThePedroo
b7adea736a
fix: compiling with modern Rust
...
This commit fixes compiling errors with modern Rust.
2024-06-16 15:27:05 -03:00
Nullptr
fd603982e8
Refine uid_is_manager
2024-01-05 16:43:04 +08:00
5ec1cff
ad32c4efb0
reformat code
2024-01-05 13:10:10 +08:00
5ec1cff
331b01b0f4
recognize magisk variants correctly
2024-01-05 13:00:01 +08:00
5ec1cff
d5c896e966
check manager app
2024-01-02 19:33:27 +08:00
5ec1cff
ad8510dee0
show root impl
2023-12-11 20:24:50 +08:00
5ec1cff
5d95f627bf
don't use Result on handle_daemon_action
2023-12-11 20:10:28 +08:00
5ec1cff
add1c65626
make compiler happy
2023-11-04 16:39:21 +08:00
5ec1cff
a2af28dc6f
add 32 bit support back & fix x86-64 support & fix jni hook restore ( #59 )
...
* Add back 32 bit support & some fix
* fix system server crash on android 10
* Refine code
---------
Co-authored-by: Nullptr <noreply@nullptr.icu >
2023-10-24 15:27:21 +08:00
Nullptr
a956dba77d
Show crash info correctly
2023-10-23 22:23:25 +08:00
Nullptr
abbca19c82
Implement uid_should_umount for magisk
2023-10-22 00:23:12 +08:00
Nullptr
2b41a8336c
Use rustix to replace nix
2023-10-19 01:33:47 +08:00
5ec1cff
ccb5764b72
Receive the reply_ok to prevent from dmesg flooding ( #35 )
2023-06-21 23:06:47 +08:00
5ec1cff
0338cdb0ed
Update kernelsu.rs ( #34 )
2023-06-18 16:42:54 +08:00
Nullptr
99e653c576
Revert "Fix #27 : bool on kernel is 4 bytes, while rust's is 1 byte. This causes the stack to be covered, triggering a ub."
...
This reverts commit 7c27c32861 .
2023-06-18 15:47:12 +08:00
Nullptr
7c27c32861
Fix #27 : bool on kernel is 4 bytes, while rust's is 1 byte. This causes the stack to be covered, triggering a ub.
2023-06-13 23:32:43 +08:00
Nullptr
954a712089
Use app profile
2023-06-04 01:31:12 +08:00
Nullptr
3eee57eb8f
Fix incorrect ksu denylist meaning
2023-04-21 08:40:11 +08:00
Nullptr
a6f455218f
No inline for root_impl
2023-03-21 22:55:14 +08:00
Nullptr
49e3ac9d7a
Fix dependency bug: OnceCell crashes on 32 bit
2023-03-03 18:20:36 +08:00
Nullptr
cce8e6686f
Implement uid_on_allowlist for Magisk
2023-02-28 20:48:32 +08:00
Nullptr
8affc8f991
Fix zygote restart & Show zygisksu status on module.prop
2023-02-26 11:54:52 +08:00
Nullptr
915749e59b
Never allow multiple root implementation
2023-02-24 09:31:44 +08:00
Nullptr
5365ab1f12
Check correct KernelSU version
2023-02-20 16:28:15 +08:00
Nullptr
b99d042002
Implement GetProcessFlags for KernelSU
2023-02-19 13:29:36 +08:00