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
2016-12-28 04:02:35 +08:00
2016-12-22 20:02:29 +08:00
2016-12-22 20:02:29 +08:00
2016-12-08 00:58:22 -08:00
2016-12-06 04:49:35 +08:00

Magisk

###Static binaries included:

###How to build Magisk

  1. Download and install NDK
  2. Add the NDK directory into PATH
    To check if the PATH is set correctly, try calling which ndk-build (where ndk-build on Windows) and see if it shows the NDK directory
  3. Unix-like users (e.g. Linux & MacOS) please execute build.sh through shell
    Windows users please execute build.cmd through cmd
  4. The scripts will show you further details
Description
The Magic Mask for Android
Readme GPL-3.0
Languages
C++ 36.6%
Kotlin 30.4%
Rust 16.4%
Java 9%
Shell 4.9%
Other 2.6%