b6412afe96
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. |
||
---|---|---|
jni | ||
scripts | ||
uninstaller | ||
zip_static | ||
ziptools | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
build.cmd | ||
build.sh | ||
README.MD |
Magisk
###Static binaries included:
- Busybox: http://forum.xda-developers.com/android/software-hacking/tool-busybox-flashable-archs-t3348543
###How to build Magisk
- Download and install NDK
- Add the NDK directory into PATH
To check if the PATH is set correctly, try callingwhich ndk-build
(where ndk-build
on Windows) and see if it shows the NDK directory - Unix-like users (e.g. Linux & MacOS) please execute
build.sh
through shell
Windows users please executebuild.cmd
through cmd - The scripts will show you further details