Prompt users to use reboot button in System Updates

So the update engine can write verify info of partitions which fixes bootloop on newer Pixel devices
This commit is contained in:
残页 2024-01-22 16:40:19 +08:00 committed by John Wu
parent b04e1394c0
commit 4d5510be4f
2 changed files with 4 additions and 2 deletions

View File

@ -521,9 +521,10 @@ abstract class MagiskInstallImpl protected constructor(
return false
}
console.add("***************************************")
console.add("*************************************************************")
console.add(" Next reboot will boot to second slot!")
console.add("***************************************")
console.add(" Go back to System Updates and press Restart to complete OTA")
console.add("*************************************************************")
return true
}

View File

@ -72,6 +72,7 @@ class FlashViewModel : BaseViewModel() {
MagiskInstaller.Direct(outItems, logItems).exec()
}
Const.Value.FLASH_INACTIVE_SLOT -> {
showReboot = false
MagiskInstaller.SecondSlot(outItems, logItems).exec()
}
Const.Value.PATCH_FILE -> {