Restart the device in the flash LSPosed with the root (#2812)

This commit is contained in:
rawer886
2023-10-13 12:02:53 +08:00
committed by GitHub
parent f8927757e8
commit 50004a55cb
+2 -2
View File
@@ -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")
}
}