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

Remove further detection points #104

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

ThePedroo
Copy link
Member

Changes

This PR is focused on doing vast things to remove the amount of detection points in ReZygisk, them being futile or not.

Why

This allows users to have less trouble with applications that use huge amount of detections to prohibit the use of their app.

Checkmarks

  • The modified functions have been tested.
  • Used the same indentation as the rest of the project.
  • Updated documentation (changelog).

This commit removes a detection point by caching mountinfo. Native Test Futile Hide (01) is a detection which is able to detect "/proc/self/mountinfo" reads in unshare, due to that it is not possible to read that file in the unshare syscall. To bypass that we cache the Magisk/KSU/APatch mounts and umount all of them in unshare.
@ThePedroo ThePedroo added confirmed This issue or pull request is confirmed to be done. enhancement New feature or request labels Dec 28, 2024
This commit changes logs from LOGI to LOGD. This change is explained by the fact that libzygisk.so logs inside the app, which is easily detectable, and LOGI is not removed in release builds, where LOGD and LOGV are, being a better solution in the meanwhile.
This commit focuses in porting JingMatrix/NeoZygisk@2814712#diff-e00e4b92e648c073b9ee1644fba5f7948b2d0b77fcfcdc26b7a4144290e321a3R379 to ReZygisk. Further explanation is given in NeoZygisk commit.
@ThePedroo ThePedroo force-pushed the remove/detection-points branch from ab27ffe to c030760 Compare December 29, 2024 07:01
@JingMatrix
Copy link
Contributor

The DenyList is still buggy, don't merge it too soon.

@JingMatrix
Copy link
Contributor

Now the implementation of DenyList is stable, you can pick my latest two commits into ReZygisk.

@ThePedroo ThePedroo force-pushed the remove/detection-points branch 2 times, most recently from 0ad5891 to b547cdc Compare December 29, 2024 22:23
@ThePedroo ThePedroo force-pushed the remove/detection-points branch from 8d00340 to 383d28f Compare January 1, 2025 01:09
This commit fixes/reverts the removal of SELinux rules, which can be necessary hence causing issues: "The cause is userdebug build has different sepolicy label from user build rom for tmpfs". Thanks aviraxp for reporting this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue or pull request is confirmed to be done. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants