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

Re-write Zygiskd #38

wants to merge 44 commits into from

Commits on Jul 17, 2024

  1. add: Zygiskd C99 re-write

    This commit re-writes Zygiskd to be C99.
    ThePedroo committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    735a0bf View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. add: base for C99 zygiskd

    This commit adds the first base for C99 zygiskd, that is not fully working or code-ready.
    ThePedroo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7e19c72 View commit details
    Browse the repository at this point in the history
  2. 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.
    ThePedroo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    440ff33 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. add: base for CMake building (non-working)

    This commit will have a rebase soon.
    ThePedroo committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    d55a30c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. fix: zygiskd c99 building process

    This commit fixes building process of new zygiskd.
    ThePedroo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    c6d5176 View commit details
    Browse the repository at this point in the history
  2. remove: Rust from CI

    This commit removes the setup of Rust in the CI.
    ThePedroo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    8e22c2c View commit details
    Browse the repository at this point in the history
  3. improve: compilation commands

    This commit improves the compilation commands resulting in even better sized releases.
    ThePedroo committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    e79a695 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. fix: not properly switching mount ns

    This commit corrects mount namespace code.
    ThePedroo committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    d51acdd View commit details
    Browse the repository at this point in the history
  2. fix: merge conflicts

    This commit fixes the conflicts between "main" and "add/zygiskd-c99".
    ThePedroo committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    b6c83c0 View commit details
    Browse the repository at this point in the history
  3. improve: compiler calling code

    This commit improves the code that calls the compiler to compile zygiskd.
    ThePedroo committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    b461a33 View commit details
    Browse the repository at this point in the history
  4. 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.
    ThePedroo committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    f91a38e View commit details
    Browse the repository at this point in the history
  5. fix: zygiskd building

    This commit fixes the building of zygiskd.
    ThePedroo committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    1377b5a View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. fix: segmentation fault in write

    This commit fixes the segmentation fault when trying to write to /proc/.../sockcreate.
    ThePedroo committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    aa57a87 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. add: zygiskd C99 APatch support

    This commit adds support for zygiskd C99 to recognize APatch rooted devices.
    ThePedroo committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    c441b9f View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. add: Magisk support; fix: (some) zygiskd code issues

    This commit adds Magisk support to Zygiskd C99, and also fixes some code issues of it.
    ThePedroo committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    99134cf View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. fix: zygiskd companion, companion responses, write fd function and ea…

    …rly 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.
    ThePedroo committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    5cc1fdb View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. fix: Zygiskd APatch code

    This commit fixes the code that handles APatch based devices to allow them to boot successfully with ReZygisk.
    ThePedroo committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    5c9831f View commit details
    Browse the repository at this point in the history
  2. improve: APatch detection; fix: Magisk detection and Magisk manager d…

    …etection; 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.
    ThePedroo committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    24ad6cb View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. fix: close client in RequestLogcatFd; fix: not closing client in er…

    …ror 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.
    ThePedroo committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    307b2b4 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. 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.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    cf93826 View commit details
    Browse the repository at this point in the history
  2. remove: unused Zygiskd Makefile

    This commit removes the unused Zygiskd Makefile, superseeded by CMake file.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    a3916aa View commit details
    Browse the repository at this point in the history
  3. improve: zygisk-ptrace's event parsing

    This commit improves ptrace's event parsing by converting more C++ code to C.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    3726c2e View commit details
    Browse the repository at this point in the history
  4. fix: zygiskd building NDK version selection

    This commit fixes the code that selects which NDK to use.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    03ee0b7 View commit details
    Browse the repository at this point in the history
  5. 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.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    4cf697d View commit details
    Browse the repository at this point in the history
  6. 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.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    6fe5846 View commit details
    Browse the repository at this point in the history
  7. remove: logging to zygiskd.log file

    This commit removes the logging made to the zygiskd.log file.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    ed17af2 View commit details
    Browse the repository at this point in the history
  8. 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.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    a90d32f View commit details
    Browse the repository at this point in the history
  9. improve: Zygiskd build.gradle.kts

    This commit improves Zygisk's build gradle file by avoiding the repetition of compiler flags.
    ThePedroo committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    1488ce7 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. improve: code robustness

    This commit improves the robustness of the code by removing debug logs, fixing a memory leak, and adding missing error handling.
    ThePedroo committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    a232704 View commit details
    Browse the repository at this point in the history
  2. merge: main into zygiskd c99 branch

    Signed-off-by: Pedro.js <pedroolimpioguerra@gmail.com>
    ThePedroo committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    25ee940 View commit details
    Browse the repository at this point in the history
  3. fix: compiling errors

    This commit fixes compiling errors from missing declaration of variables and missing macros.
    ThePedroo committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    77839c9 View commit details
    Browse the repository at this point in the history
  4. remove: debug log

    This commit removes logging used in development, which is not needed anymore.
    ThePedroo committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    69d09ea View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. 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.
    ThePedroo committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    c2c16f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. improve: status description spacing

    This commit improves the spacing of the module status description.
    ThePedroo committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d3805b0 View commit details
    Browse the repository at this point in the history
  2. 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".
    ThePedroo committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e167fe0 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. 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.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    1d39abe View commit details
    Browse the repository at this point in the history
  2. fix: module name in Zygiskd log

    This commit fixes the module name in Zygiskd log which would only show a letter.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    0c7f879 View commit details
    Browse the repository at this point in the history
  3. improve: Zygiskd Magisk code

    This commit improves the Zygiskd Magisk code by avoiding redundant code and reducing complexity.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b1a6679 View commit details
    Browse the repository at this point in the history
  4. 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.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    cc72c7f View commit details
    Browse the repository at this point in the history
  5. 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.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    f0df39f View commit details
    Browse the repository at this point in the history
  6. 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.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    ddccafa View commit details
    Browse the repository at this point in the history
  7. 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.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    5ddffad View commit details
    Browse the repository at this point in the history
  8. fix: additional new line in some logs

    This commit fixes the issue where some loggings would add an additional new line.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    4905aee View commit details
    Browse the repository at this point in the history
  9. fix: space indentation in macros

    This commit fixes the space indentation done in the "ASSURE_*" macros.
    ThePedroo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    902fe4b View commit details
    Browse the repository at this point in the history