Hiding in APatch is a bit challenging due to the following reasons:
- it uses OverlayFS but lacks a built-in unmount mechanism
- bind mount is NOT widely adopted
Recommendations:
- move to bind mount and use Zygisk Assistant OR ZygiskNext's enforce denylist
- use hosts_file_redirect kpm
- if hosts_file_redirect fails, install ZN-hostsredirect
Hiding in KernelSU should just work, provided that:
- you have path_umount (GKI, backported)
- no conflicing modules (e.g. Magical Overlayfs)
Recommendations:
- if kernel is non-gki and kernel lacks path_umount, ask kernel dev to backport this feature
- if you want to keep using Magical OverlayFS, use this fork, this fork respects skip_mount
- alternatively, just install ZN-hostsredirect
Hiding in Magisk (and clones) should just work as is.
- Add the apps you want to hide root from to the denylist.
- optionally you can also use Shamiko or Zygisk Assistant
- Why is this needed?
- some root detections now includes and check for modified hosts file.
- How do I check for detections?
- How do I move to bind mount on APatch?
- get ci builds here
- bind mount - APatch's term for magic mount, mounting method primarily used by Magisk.