From 66cf2c984a4d450b45ece15f9a6c370fd3fa8023 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 8 Jan 2022 01:34:46 +0800 Subject: [PATCH] Don't fix env when patch boot --- .../java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt index 0abe51e02..5f683fbf3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt @@ -324,11 +324,7 @@ abstract class MagiskInstallImpl protected constructor( // Fix up binaries srcBoot.delete() - if (shell.isRoot) { - "fix_env $installDir".sh() - } else { - "cp_readlink $installDir".sh() - } + "cp_readlink $installDir".sh() return true }