Skip to content

Commit

Permalink
update-binary: Also perform a direct install if /system/bin/recovery …
Browse files Browse the repository at this point in the history
…exists

Fixes: #131

Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Sep 7, 2022
1 parent e345eb4 commit f122fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/magisk/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ui_print() {
printf "ui_print %s\nui_print\n" "${*}" > /proc/self/fd/"${OUTFD}"
}

if [ -f /sbin/recovery ]; then
if [ -f /sbin/recovery ] || [ -f /system/bin/recovery ]; then
# Installing via recovery. Always do a direct install.
set -exu

Expand Down Expand Up @@ -37,4 +37,4 @@ else
. /data/adb/magisk/util_functions.sh

install_module
fi
fi

0 comments on commit f122fcf

Please sign in to comment.