Skip to content

Commit 471d972

Browse files
authored
Fix A-only addon.d retaining PREINITDEVICE on 30300+
- broken after 742913e so use get_flags to be more futureproof
1 parent 01cb75e commit 471d972

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/addon.d.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ case "$1" in
137137
# Back up PREINITDEVICE from existing partition before OTA on A-only devices
138138
if ! $backuptool_ab; then
139139
initialize
140-
RECOVERYMODE=false
140+
# Suppress ui_print for this stage
141+
ui_print() { return; }
142+
get_flags
141143
find_boot_image
142144
$MAGISKBIN/magiskboot unpack "$BOOTIMAGE"
143145
$MAGISKBIN/magiskboot cpio ramdisk.cpio "extract .backup/.magisk config.orig"

0 commit comments

Comments
 (0)