No need to modify customize.sh for Magisk

This commit is contained in:
Nullptr
2023-01-30 19:21:50 +08:00
parent aaec97fe16
commit 50a50a8d39
2 changed files with 1 additions and 2 deletions

View File

@@ -7,4 +7,3 @@ It is possible to run Zygisksu on Magisk with a few steps:
1. `mkdir /data/adb/ksu`
2. `ln -s /data/adb/modules /data/adb/ksu/modules`
3. `cp $(which resetprop) /data/adb/ksu/resetprop`
4. Remove ` && [ "$KSU" == "true" ]` in `customize.sh`

View File

@@ -103,7 +103,7 @@ androidComponents.onVariants { variant ->
val installMagiskTask = task<Exec>("installMagisk$variantCapped") {
group = "module"
dependsOn(pushTask)
commandLine("adb", "shell", "su", "-c", "magisk --install-module /data/local/tmp/$zipFileName")
commandLine("adb", "shell", "su", "-c", "KSU=true magisk --install-module /data/local/tmp/$zipFileName")
}
task<Exec>("installKsuAndReboot$variantCapped") {