From 1f4c595cd31d2f88005887bf52a992b76a652138 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 16 Jan 2021 23:59:31 -0800 Subject: [PATCH] Revert to old `su -c` behavior --- gradle.properties | 2 +- native/jni/su/su.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7ab901f01..9979fa826 100644 --- a/gradle.properties +++ b/gradle.properties @@ -27,6 +27,6 @@ android.injected.testOnly=false kapt.incremental.apt=true # Magisk -magisk.versionCode=21302 +magisk.versionCode=21303 magisk.ndkVersion=21d magisk.fullNdkVersion=21.3.6528147 diff --git a/native/jni/su/su.cpp b/native/jni/su/su.cpp index 1b9bccd87..22a6c3729 100644 --- a/native/jni/su/su.cpp +++ b/native/jni/su/su.cpp @@ -105,9 +105,7 @@ int su_client_main(int argc, char *argv[]) { for (int i = optind - 1; i < argc; ++i) { if (!su_req.command.empty()) su_req.command += ' '; - su_req.command += '\''; su_req.command += argv[i]; - su_req.command += '\''; } optind = argc; break;