Commit a609e0aa authored by 残页's avatar 残页 Committed by John Wu

Update tools.md

magiskpolicy is no longer an applet of magiskinit
parent f97866a9
......@@ -5,10 +5,9 @@ Magisk comes with a huge collections of tools for installation, daemons, and uti
```
magiskboot /* binary */
magiskinit /* binary */
magiskpolicy -> magiskinit
supolicy -> magiskinit
magiskpolicy /* binary */
supolicy -> magiskpolicy
magisk /* binary */
magiskhide -> magisk
resetprop -> magisk
su -> magisk
```
......@@ -120,7 +119,7 @@ This binary will replace `init` in the ramdisk of a Magisk patched boot image. I
(This tool is aliased to `supolicy` for compatibility with SuperSU's sepolicy tool)
An applet of `magiskinit`. This tool could be used for advanced developers to modify SELinux policies. In common scenarios like Linux server admins, they would directly modify the SELinux policy sources (`*.te`) and recompile the `sepolicy` binary, but here on Android we directly patch the binary file (or runtime policies).
This tool could be used for advanced developers to modify SELinux policies. In common scenarios like Linux server admins, they would directly modify the SELinux policy sources (`*.te`) and recompile the `sepolicy` binary, but here on Android we directly patch the binary file (or runtime policies).
All processes spawned from the Magisk daemon, including root shells and all its forks, are running in the context `u:r:magisk:s0`. The rule used on all Magisk installed systems can be viewed as stock `sepolicy` with these patches: `magiskpolicy --magisk 'allow magisk * * *'`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment