Skip to content

Commit

Permalink
Add flashing APatch tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Dec 30, 2024
1 parent 7b62462 commit 485c665
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions magisk-loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,19 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
dependsOn(flashKsuTask)
commandLine(adb, "shell", "su", "-c", "/system/bin/svc", "power", "reboot")
}
val flashAPatchTask = task<Exec>("flashAPatch${variantCapped}") {
group = "LSPosed"
dependsOn(pushTask)
commandLine(
adb, "shell", "su", "-c",
"apd module install /data/local/tmp/${zipFileName}"
)
}
task<Exec>("flashAPatchAndReboot${variantCapped}") {
group = "LSPosed"
dependsOn(flashAPatchTask)
commandLine(adb, "shell", "su", "-c", "/system/bin/svc", "power", "reboot")
}
}

afterEvaluate {
Expand Down

0 comments on commit 485c665

Please sign in to comment.