Commit b1e0c5ff authored by topjohnwu's avatar topjohnwu

Export MAGISKTMP so it survives exec

Fix #2926
parent 6dbd9bfb
......@@ -18,9 +18,9 @@ class RootInit : Shell.Initializer() {
fun init(context: Context, shell: Shell): Boolean {
shell.newJob().apply {
if (Const.Version.atLeast_20_4()) {
add("MAGISKTMP=$(magisk --path)/.magisk")
add("export MAGISKTMP=$(magisk --path)/.magisk")
} else {
add("MAGISKTMP=/sbin/.magisk")
add("export MAGISKTMP=/sbin/.magisk")
}
if (Const.Version.atLeastCanary()) {
add("export ASH_STANDALONE=1")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment