Jump to: navigation, search
2nd init

The following binary will basically inject code to /init to "restart itself" allowing you to use custom init binary and init.rc scripts without side effects developed by Skrilax_CZ. Technically using code injection the code to call "execve("/init", {"/init", NULL**, environ);" is injected and the environ variables are read from /proc/1/environ by the binary. Note that this is recomended only to be used with the "sh hijack" or inside recovery. You only need to replace the files (init.rc scripts and optionally init binary) in the filesystem.

The 2nd-init repository is located here: https://github.com/a853/a853_2nd_init