mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-19 04:41:27 +00:00
parent
6dbd9bfb12
commit
b1e0c5ff38
@ -18,9 +18,9 @@ class RootInit : Shell.Initializer() {
|
|||||||
fun init(context: Context, shell: Shell): Boolean {
|
fun init(context: Context, shell: Shell): Boolean {
|
||||||
shell.newJob().apply {
|
shell.newJob().apply {
|
||||||
if (Const.Version.atLeast_20_4()) {
|
if (Const.Version.atLeast_20_4()) {
|
||||||
add("MAGISKTMP=$(magisk --path)/.magisk")
|
add("export MAGISKTMP=$(magisk --path)/.magisk")
|
||||||
} else {
|
} else {
|
||||||
add("MAGISKTMP=/sbin/.magisk")
|
add("export MAGISKTMP=/sbin/.magisk")
|
||||||
}
|
}
|
||||||
if (Const.Version.atLeastCanary()) {
|
if (Const.Version.atLeastCanary()) {
|
||||||
add("export ASH_STANDALONE=1")
|
add("export ASH_STANDALONE=1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user