Magisk/jni
topjohnwu b6412afe96 Fix Magisk Hide losing root issue
This is the issue that has been haunting since day 1. Root and mounted files randomly disappears, and only an reboot can fix it.
The issue is that Zygote requires some time to isolate the mount namespace for the children it forks (read: most processes), so in rare cases such as the CPU is on heavy load, or CPU is in deep sleep, it takes longer than usual to finish the mount namespace isolation. Magisk Hide kicks in before the isolation is done, and it will switch to Zygote's namespace and do the unmounting. All children will then lose the mounted files, which includes root.
The solution is to first find the namespace id of Zygote, and wait a small period of time and retry if the namespace isn't isolated yet.
2016-12-28 04:02:35 +08:00
..
bootimgtools Minor restructure 2016-12-09 15:57:10 +08:00
resetprop@96949566fb Add bootanim, host, busybox 2016-11-09 05:17:14 +08:00
selinux@91e9179a23 Add su binary into Magisk 2016-12-06 04:49:35 +08:00
sepolicy-inject@f760a9d0c2 Various small changes 2016-11-13 16:58:43 +08:00
su@8475cecfeb Improve phh su installation 2016-12-10 23:48:24 +08:00
Android.mk Minor restructure 2016-12-09 15:57:10 +08:00
Application.mk Add su binary into Magisk 2016-12-06 04:49:35 +08:00
magiskhide.c Fix Magisk Hide losing root issue 2016-12-28 04:02:35 +08:00