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}") {
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue