mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 10:35:26 +00:00
44395e8ff0
In previous implementations, proc_monitor checks whether the mount namespace of an app is actually separated from zygote using a list generated at startup. However, for some unknown reason, some devices (e.g. Samsung) has multiple zygote servers running in the background. This means that app processes spawned from the unlisted zygotes are not checked whether the separation is done or not, causing MagiskHide unmount stuffs in the namespace of zygote, and since zygote is the "mother" of all apps, all apps will no longer have root access. Since I'm not sure of the reason why multiple zygotes exists, so instead of checking the namespace against a list, compare the current namespace against the parent process's namespace. This will make sure the namespace is NOT the same as the parent process, which is supposed to be the zygote server. |
||
---|---|---|
.. | ||
core | ||
external | ||
include | ||
magiskboot | ||
magiskhide | ||
magiskpolicy@c69dc0f036 | ||
resetprop | ||
su@29d5740205 | ||
utils | ||
Android.mk | ||
Application.mk | ||
b64xz.c |