Magisk/native/jni
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
..
core Change to applet name to prevent showing magisk.bin 2018-06-17 01:47:55 +08:00
external Fix busybox issues 2018-06-09 15:45:56 +08:00
include Remove invincible mode 2018-06-17 01:28:29 +08:00
magiskboot magiskboot: Check dtb header content to avoid false positives 2018-06-10 03:02:13 +08:00
magiskhide Fix root loss issue when MagiskHide is enabled 2018-06-20 04:55:34 +08:00
magiskpolicy@c69dc0f036 Update sepolicy rules 2018-05-13 14:30:41 +08:00
resetprop Add Protobuf support to resetprop 2018-04-29 01:20:48 +08:00
su@29d5740205 Remove invincible mode 2018-06-17 01:28:29 +08:00
utils Simplify hiding conditions 2018-06-17 05:16:52 +08:00
Android.mk Bundle in stub APK into magiskinit 2018-06-14 02:54:38 +08:00
Application.mk Use lower API level for static binaries 2018-05-13 05:22:46 +08:00
b64xz.c Rename module core to native 2018-01-27 09:11:28 +08:00