Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 3715b6f

Browse files
committed
hardcode /system/bin/sh in case of $SHELL is not exist (it is also hardcoded in AOSP)
1 parent b08a8a2 commit 3715b6f

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
@@ -520,7 +520,7 @@ class SlotViewModel(
520520
val updateBinary = File(akHome, "update-binary")
521521
Shell.cmd("unzip -p \"$zip\" META-INF/com/google/android/update-binary > $akHome/update-binary").exec()
522522
if (updateBinary.exists()) {
523-
val result = Shell.Builder.create().setFlags(Shell.FLAG_MOUNT_MASTER or Shell.FLAG_REDIRECT_STDERR).build().newJob().add("AKHOME=$akHome \$SHELL $akHome/update-binary 3 1 \"$zip\"").to(flashOutput).exec()
523+
val result = Shell.Builder.create().setFlags(Shell.FLAG_MOUNT_MASTER or Shell.FLAG_REDIRECT_STDERR).build().newJob().add("AKHOME=$akHome /system/bin/sh $akHome/update-binary 3 1 \"$zip\"").to(flashOutput).exec()
524524
if (result.isSuccess) {
525525
log(context, "Kernel flashed successfully")
526526
_wasFlashSuccess.value = true

0 commit comments

Comments
 (0)