ThePedroo
f35680837e
remove: non-working info in zygisk-ptraceXX info response
...
This commit removes information given in the response of info command of "zygisk-ptrace64" or "zygisk-ptrace32" that leads to failing builds, as it is not exported from monitor.cpp.
v1.0.0-rc.1
2024-11-10 23:28:33 -03:00
ThePedroo
b1d118d120
fix: missing pid and running in zygote_info structure
...
This commit fixes the issue where the commit that added "pid" (pid_t) and "running" (bool) members to the "zygote_info" structure, a structure that stores the response given by Zygiskd about its state, wasn't added, leading to failing buildings.
2024-11-10 23:19:21 -03:00
ThePedroo
97af7fe2da
merge: add/zygiskd-c99 branch
...
This commit merges the Zygiskd C99 branch, which not only adds the re-written Zygisk daemon, but also implement fixes in the ptrace command.
2024-11-10 23:14:05 -03:00
ThePedroo
519d1db6a0
fix: space indentation in macros
...
This commit fixes the space indentation done in the "ASSURE_*" macros.
2024-11-10 23:11:50 -03:00
ThePedroo
ba7d044611
fix: additional new line in some logs
...
This commit fixes the issue where some loggings would add an additional new line.
2024-11-10 23:11:49 -03:00
ThePedroo
2c74ee3877
improve: module.prop parsing code; fix: deferecing a NULL pointer
...
This commit both improves the code that parses "module.prop" file of ReZygisk, reducing its complexity greatly and also making it smaller, and also fixes an issue where ReZygisk would deference a NULL pointer, leading to crashes in Zygiskd crash.
2024-11-10 23:11:46 -03:00
ThePedroo
66e98cf007
fix: possible out-of-bounds write; remove: unnecessary logging
...
This commit both fixes a possible out-of-bounds write by using "snprintf" over "sprintf" and also removes a unnecessary logging which was meant to be removed commits ago.
2024-11-10 23:09:51 -03:00
ThePedroo
47d46e305c
fix: fd leak and out-of-bounds access in exec_command
...
This commit fixes both fd leak and out-of-bounds access in the "exec_command" function, which can happen when execution of the command fails, leading to crashes on Magisk-rooted devices, and possibly APatch-rooted devices too.
2024-11-10 23:09:50 -03:00
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
3265bcb581
fix: module name in Zygiskd log
...
This commit fixes the module name in Zygiskd log which would only show a letter.
2024-11-10 23:09:46 -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
380ef011a1
improve: status description spacing
...
This commit improves the spacing of the module status description.
2024-11-10 23:09:42 -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
e23d1a53d0
remove: debug log
...
This commit removes logging used in development, which is not needed anymore.
2024-11-10 23:09:39 -03:00
ThePedroo
182c0293ca
fix: compiling errors
...
This commit fixes compiling errors from missing declaration of variables and missing macros.
2024-11-10 23:09:38 -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
e11db94002
remove: logging to zygiskd.log file
...
This commit removes the logging made to the zygiskd.log file.
2024-11-10 23:09:32 -03:00
ThePedroo
d4ce0916f6
update: Zygiskd C99 LICENSE
...
This commit updates the LICENSE for Zygiskd C99, using a LICENSE that doesn't allow the code to be used for closed source projects, and with more restrictions while allowing other people to fork, modify as much as wanted as long as it remains open source.
2024-11-10 23:09:31 -03:00
ThePedroo
6ca4b72762
improve: zygisk-ptrace speed by modifying compiler flags
...
This commit improves the "zygisk-ptrace" command speed by changing the compiler flags to use more brutal optimizations.
2024-11-10 23:08:41 -03:00
ThePedroo
b252056ca0
fix: zygiskd building NDK version selection
...
This commit fixes the code that selects which NDK to use.
2024-11-10 23:08:40 -03:00
ThePedroo
6cc01fb548
improve: zygisk-ptrace's event parsing
...
This commit improves ptrace's event parsing by converting more C++ code to C.
2024-11-10 23:08:39 -03:00
ThePedroo
e31f9b3d85
remove: unused Zygiskd Makefile
...
This commit removes the unused Zygiskd Makefile, superseeded by CMake file.
2024-11-10 23:08:37 -03:00
ThePedroo
4d267aa719
fix: sending 32-bit int instead of 8-bit; fix: fd leak
...
This commit fixes the issue where a 32-bit (int) number was sent instead of a 8-bit (uint8_t) number. Also fixes a fd leak when connecting to the companion.
2024-11-10 23:08:36 -03:00
ThePedroo
7a6ca482f0
fix: close client in RequestLogcatFd; fix: not closing client in error cases
...
This commit fixes the case where Zygiskd would close the client in "RequestLogcatFd" action, and also fixes the leak of closes for client when handling errors.
2024-11-10 23:08:35 -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
19d2a1758e
fix: segmentation fault in write
...
This commit fixes the segmentation fault when trying to write to /proc/.../sockcreate.
2024-11-10 23:05:35 -03:00
ThePedroo
2ab6542a9a
fix: zygiskd building
...
This commit fixes the building of zygiskd.
2024-11-10 23:05:34 -03:00
ThePedroo
c981907f36
fix: using fgets in a file descriptor
...
This commit fixes the use of fgets in a file descriptor, which would make it easier to use fopen instead of using fdopen.
2024-11-10 23:05:33 -03:00
ThePedroo
b1e217b665
improve: compiler calling code
...
This commit improves the code that calls the compiler to compile zygiskd.
2024-11-10 23:05:32 -03:00
ThePedroo
c852a2c146
fix: not properly switching mount ns
...
This commit corrects mount namespace code.
2024-11-10 23:05:31 -03:00
ThePedroo
37a667ce2a
improve: compilation commands
...
This commit improves the compilation commands resulting in even better sized releases.
2024-11-10 23:05:30 -03:00
ThePedroo
41e83aec52
remove: Rust from CI
...
This commit removes the setup of Rust in the CI.
2024-11-10 23:05:29 -03:00
ThePedroo
7d29fd821f
fix: zygiskd c99 building process
...
This commit fixes building process of new zygiskd.
2024-11-10 23:05:28 -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
5d0adacf4a
improve: code readability; fix: not properly starting up companions
...
This commit both improves the code readability and also fixes a bug that wouln't start companions properly.
2024-11-10 23:03:27 -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
ThePedroo
3d2125d6c0
improve: ReZygisk status saving
...
This commit improves how ReZygisk saves its status.
2024-11-10 23:01:54 -03:00
ThePedroo
6187f34837
fix: code spacing
...
This commit fixes a minor spacing issue in the code.
2024-11-10 23:01:52 -03:00
SheepChef
7027e8147f
add: Chinese README ( #68 )
...
This commit adds Chinese translation for the "README.md" file.
Signed-off-by: SheepChef <50871867+SheepChef@users.noreply.github.com >
2024-11-02 11:05:43 -03:00
WinCS
f1ba34fd29
improve: README.md grammar and information ( #37 )
...
This commit improves "README.md" grammar and adds more information to it.
Signed-off-by: WinCS <94188592+Meltartica@users.noreply.github.com >
2024-08-16 19:17:39 -03:00
ThePedroo
763e94b9b6
fix: Magisk app marking Zygisk as disabled
...
This commit fixes the regression added (by me) that doesn't set "ZYGISK_ENABLED" environment variable, making it mark Zygisk as disabled.
2024-08-15 00:38:25 -03:00