Skip to content

Commit 0f231ee

Browse files
Fix 5: Enable Both slot Flash options
1 parent 3e22a7e commit 0f231ee

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class SlotViewModel(
507507
_wasFlashSuccess.value = false
508508
val files = File(context.filesDir.canonicalPath)
509509
val flashScript = File(files, "flash_ak3.sh")
510-
val slot_inactive_state = isActive ? "active" : "inactive"
510+
val slot_inactive_state = if(isActive) "active" else "inactive"
511511
val result = Shell.Builder.create().setFlags(Shell.FLAG_MOUNT_MASTER or Shell.FLAG_REDIRECT_STDERR).build().newJob().add("F=$files Z=\"$zip\" S=\"slot_inactive_state\" P=\"slot_suffix\" /system/bin/sh $flashScript").to(flashOutput).exec()
512512
if (result.isSuccess) {
513513
log(context, "Kernel flashed successfully")

0 commit comments

Comments
 (0)