Check path when start daemon

This commit is contained in:
vvb2060
2022-05-29 14:28:56 +08:00
committed by topjohnwu
parent c0981174a8
commit d19fcd5e21
2 changed files with 8 additions and 7 deletions

View File

@@ -76,13 +76,6 @@ void restorecon() {
}
void restore_tmpcon() {
if (MAGISKTMP == "/system/bin") {
// Running with emulator.sh
if (SDK_INT >= 26)
lsetfilecon("/system/bin/magisk", EXEC_CON);
return;
}
if (MAGISKTMP == "/sbin")
setfilecon(MAGISKTMP.data(), ROOT_CON);
else