Go to file
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
jni Fix Magisk Hide losing root issue 2016-12-28 04:02:35 +08:00
scripts Bump support 2016-12-22 20:02:29 +08:00
uninstaller Uninstaller bump support 2016-12-22 20:02:29 +08:00
zip_static Move /sbin binaries to new location for root 2016-12-22 20:03:35 +08:00
ziptools Add Windows build scripts and fix script bugs 2016-12-06 02:45:51 +08:00
.gitattributes Add Windows build scripts and fix script bugs 2016-12-06 02:45:51 +08:00
.gitignore Magic Mount Total Re-factor Part 2 2016-12-08 00:58:22 -08:00
.gitmodules Add su binary into Magisk 2016-12-06 04:49:35 +08:00
build.cmd Add Windows build scripts and fix script bugs 2016-12-06 02:45:51 +08:00
build.sh Add Windows build scripts and fix script bugs 2016-12-06 02:45:51 +08:00
README.MD Add Windows build scripts and fix script bugs 2016-12-06 02:45:51 +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