Skip to content

Commit 75a0896

Browse files
Fix 6: Enable Both slot Flash options
1 parent 0f231ee commit 75a0896

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
@@ -508,7 +508,7 @@ class SlotViewModel(
508508
val files = File(context.filesDir.canonicalPath)
509509
val flashScript = File(files, "flash_ak3.sh")
510510
val slot_inactive_state = if(isActive) "active" else "inactive"
511-
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()
511+
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")
514514
_wasFlashSuccess.value = true

0 commit comments

Comments
 (0)