aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Martinz <amartinz@shiftphones.com>2022-12-20 15:26:42 +0100
committerAlexander Martinz <amartinz@shiftphones.com>2022-12-20 15:35:33 +0100
commitb948f7846a25a97aa16eb602ef84f2c23144e882 (patch)
tree9812ac9d4eeb004d139f8d2c35bd3f71bc90464a
parent3e75e10a52e5ba039e07408bfabf55928e2f4d84 (diff)
recovery: fix applying updates
We need to break after applying from either ADB or Storage to return the status of the installation. Otherwise the log is stuck until you press on the back arrow, you are able to start sideload multiple times and other shenanigans. Change-Id: I06c9dcf6161dd1a0199417cfed2465914837d795 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 2b868cf8..75430a2b 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -246,6 +246,7 @@ static InstallResult apply_update_menu(Device* device, Device::BuiltinAction* re
} else {
status = ApplyFromStorage(device, volumes[chosen - 1]);
}
+ break;
}
return status;
}