Pre-grant permissions if possible

This commit is contained in:
topjohnwu
2022-08-23 05:09:50 -07:00
parent 7a4a5c8992
commit a54114f149
3 changed files with 7 additions and 5 deletions

View File

@@ -154,6 +154,7 @@ constexpr char install_script[] = R"EOF(
APK=%s
log -t Magisk "pm_install: $APK"
log -t Magisk "pm_install: $(pm install -g -r $APK 2>&1)"
appops set com.topjohnwu.magisk REQUEST_INSTALL_PACKAGES allow
rm -f $APK
)EOF";