Restart the device in the flash LSPosed with the root (#2812)
This commit is contained in:
parent
f8927757e8
commit
50004a55cb
|
|
@ -259,7 +259,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
||||||
task<Exec>("flashMagiskAndReboot${variantCapped}") {
|
task<Exec>("flashMagiskAndReboot${variantCapped}") {
|
||||||
group = "LSPosed"
|
group = "LSPosed"
|
||||||
dependsOn(flashMagiskTask)
|
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}") {
|
val flashKsuTask = task<Exec>("flashKsu${variantCapped}") {
|
||||||
group = "LSPosed"
|
group = "LSPosed"
|
||||||
|
|
@ -272,7 +272,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
||||||
task<Exec>("flashKsuAndReboot${variantCapped}") {
|
task<Exec>("flashKsuAndReboot${variantCapped}") {
|
||||||
group = "LSPosed"
|
group = "LSPosed"
|
||||||
dependsOn(flashKsuTask)
|
dependsOn(flashKsuTask)
|
||||||
commandLine(adb, "shell", "/system/bin/svc", "power", "reboot")
|
commandLine(adb, "shell", "su", "-c", "/system/bin/svc", "power", "reboot")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue