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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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")
}
}