mirror of
https://github.com/LSPosed/LSPosed.git
synced 2026-10-19 14:22:42 +08:00
Restart the device in the flash LSPosed with the root (#2812)
This commit is contained in:
@@ -259,7 +259,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
||||
task<Exec>("flashMagiskAndReboot${variantCapped}") {
|
||||
group = "LSPosed"
|
||||
dependsOn(flashMagiskTask)
|
||||
commandLine(adb, "shell", "/system/bin/svc", "power", "reboot")
|
||||
commandLine(adb, "shell", "su", "-c", "/system/bin/svc", "power", "reboot")
|
||||
}
|
||||
val flashKsuTask = task<Exec>("flashKsu${variantCapped}") {
|
||||
group = "LSPosed"
|
||||
@@ -272,7 +272,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
||||
task<Exec>("flashKsuAndReboot${variantCapped}") {
|
||||
group = "LSPosed"
|
||||
dependsOn(flashKsuTask)
|
||||
commandLine(adb, "shell", "/system/bin/svc", "power", "reboot")
|
||||
commandLine(adb, "shell", "su", "-c", "/system/bin/svc", "power", "reboot")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user