From 1426ee2ebd27060b9bb8b415afd8bc5b96bf663e Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Wed, 10 Feb 2021 01:09:25 +0800 Subject: [PATCH] Fix Android build version sdk in script --- app/src/main/java/com/topjohnwu/magisk/core/utils/ShellInit.kt | 2 +- 1 file changed, 1 insertion(+), 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 ec7fff286..338ed5aa1 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 @@ -76,7 +76,7 @@ class AppShellInit : BaseShellInit() { fun getBool(name: String) = getVar(name).toBoolean() shell.newJob().apply { - add("export SDK_INT=${Build.VERSION.SDK_INT}") + add("export API=${Build.VERSION.SDK_INT}") add(context.rawResource(R.raw.manager)) if (shell.isRoot) { add(context.assets.open("util_functions.sh"))