[Android Software/Hacking General [Developers Only]] Captain_Throwback:
Hi [MENTION=4544860]osm0sis[/MENTION]!

I just started using LineageOS as my daily and have several system modification zips I need to re-flash after an OTA install, so I decided to try your FlashAfterUpdate script. I'm getting some interesting errors in the recovery log:

about to run program [/tmp/install/bin/backuptool.sh] with 2 args
Segmentation fault
Segmentation fault
find: /system/vendor/pittpatt: No such file or directory
detected filesystem ext4 for /dev/block/bootdevice/by-name/system
detected filesystem ext4 for /dev/block/bootdevice/by-name/system
script succeeded: result was [1.000000]Archive: /sdcard/FlashAfterUpdate/01-Sense_8_Home_rooted_device.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/02-HtcWeatherClockWidget_rooted_device.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/03-WorldClock_rooted_device.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/04-Weather_rooted_device.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/05-Weather_videos_rooted_device.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/06-HTC_Camera_n_Gallery.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/07-HTC_VideoPlayer.zip
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
wrong updater binary API; expected 1, 2, or 3; got /tmp/flashafterupd/META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/08-Magisk-v12.1-b2.zip
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
Archive: /sdcard/FlashAfterUpdate/08-Magisk-v12.1-b2.zip
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script

It seems the only zip that flashes properly is Magisk, which uses a dummy updater and shell update-binary, while the previous zips are all just standard zips. The zips flash fine in TWRP if done outside of the FlashAfterUpdate process, so it seems odd that they'd be throwing an error. It seems to be picking up the updater-script instead of the update-binary in those zips. Any idea why?