From f6e4a27fdd5d0a5cd511319515102079adbb890b Mon Sep 17 00:00:00 2001 From: Wang Han Date: Tue, 6 Apr 2021 21:01:46 +0800 Subject: [PATCH] Don't export $API when initializing shell * This becomes meanless after 9c0e189. --- app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt b/app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt index 14f2bd2a3..bfec87cd7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt @@ -78,7 +78,6 @@ class AppShellInit : BaseShellInit() { fun getBool(name: String) = getVar(name).toBoolean() shell.newJob().apply { - add("export API=${Build.VERSION.SDK_INT}") add(context.rawResource(R.raw.manager)) if (shell.isRoot) { add(context.assets.open("util_functions.sh"))