You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
no need to unshare
This commit is contained in:
@@ -26,7 +26,7 @@ val commitHash by extra(gitCommitHash)
|
|||||||
val minKsuVersion by extra(10940)
|
val minKsuVersion by extra(10940)
|
||||||
val minKsudVersion by extra(11412)
|
val minKsudVersion by extra(11412)
|
||||||
val maxKsuVersion by extra(20000)
|
val maxKsuVersion by extra(20000)
|
||||||
val minMagiskVersion by extra(26300)
|
val minMagiskVersion by extra(26402)
|
||||||
|
|
||||||
val androidMinSdkVersion by extra(26)
|
val androidMinSdkVersion by extra(26)
|
||||||
val androidTargetSdkVersion by extra(34)
|
val androidTargetSdkVersion by extra(34)
|
||||||
|
|||||||
@@ -566,22 +566,6 @@ static bool prepare_environment() {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
int old_ns;
|
|
||||||
char wd[128];
|
|
||||||
if (getcwd(wd, sizeof(wd)) == nullptr) {
|
|
||||||
PLOGE("get cwd");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!switch_mnt_ns(1, &old_ns)) return false;
|
|
||||||
if (chdir(wd) == -1) {
|
|
||||||
PLOGE("chdir %s", wd);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!switch_mnt_ns(0, &old_ns)) return false;
|
|
||||||
if (chdir(wd) == -1) {
|
|
||||||
PLOGE("chdir %s", wd);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
updateStatus();
|
updateStatus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,4 +43,4 @@ if [ -f $MODDIR/lib/libzygisk.so ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$DEBUG" = true ] && export RUST_BACKTRACE=1
|
[ "$DEBUG" = true ] && export RUST_BACKTRACE=1
|
||||||
unshare -m sh -c "./bin/zygisk-ptrace64 monitor &"
|
./bin/zygisk-ptrace64 monitor &
|
||||||
|
|||||||
Reference in New Issue
Block a user