/magisk_proc_monitor

A Magisk/Zygisk module allows user to run script whenever app process start

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Magisk Process Monitor Tool (Dynamic Mount)

  • Simple tool for monitoring app process start and allow modules to run script in app process namespace with or without inject into app process. In short, run script everytime lanching an app (every app can run different logic, see dynmount.sh)

Requirements

  • Can be installed as Magisk or Zygisk module. For the normal version, it will use logcat for monitoring app process start. For zygisk, require Zygisk API 3+ (mean Magisk version code >= 24300)
  • Zygisk mode has less performance impact, compare with logcat method

How to use

About Zygisk

  • Zygisk has a DenyList function. After enabling Enforce DenyList option, Zygisk will not load Zygisk modules for the apps in the list. For process monitor tool, scripts will not be able to run for app on denylist with enforced denylist
  • Note that the DenyList is not a hide feature, it can't even hide the presence of Zygisk itself. To solve this solution, please use hiding module or switch to Magisk Delta and use MagiskHide for hiding.

Credit

Links: