Magisk/native
topjohnwu 44395e8ff0 Fix root loss issue when MagiskHide is enabled
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.
2018-06-20 04:55:34 +08:00
..
jni Fix root loss issue when MagiskHide is enabled 2018-06-20 04:55:34 +08:00
src/main Rename module core to native 2018-01-27 09:11:28 +08:00
.gitignore Rename module core to native 2018-01-27 09:11:28 +08:00
build.gradle Use lower API level for static binaries 2018-05-13 05:22:46 +08:00