From c2f96975cef433a67dc036fdd6ea3736f69d6763 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Mon, 22 Aug 2022 15:56:47 +0800 Subject: [PATCH] Pre grant as much as possible --- native/src/core/scripting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/core/scripting.cpp b/native/src/core/scripting.cpp index e5223ceb9..98df02128 100644 --- a/native/src/core/scripting.cpp +++ b/native/src/core/scripting.cpp @@ -153,7 +153,7 @@ void exec_module_scripts(const char *stage, const vector &modules) constexpr char install_script[] = R"EOF( APK=%s log -t Magisk "pm_install: $APK" -log -t Magisk "pm_install: $(pm install -r $APK 2>&1)" +log -t Magisk "pm_install: $(pm install -g -r $APK 2>&1)" rm -f $APK )EOF";