[Xiaomi Redmi Note 5 Pro Questions & Answers] peter-k:
PROBLEM:

Unable to install any PIE ROM by flashing with TWRP. Any flashing attempt of a PIE ROM will be terminated with the error 7 and the Log message the ROM failed to decrompress. OTA updates works, and flashing Oreo ROMs works.

WHAT I TRIED:

- deleting the assert line from updater script

- several different TWRP recoveries, including Orange Fox and official TWRP

- checking "use rm-rf" in TWRP

- decompressing the ROM with 7zip works always

I am at the end of my creativity. Has anyone an idea what else I can try?

LOG (Excerpt):

_____ __ _ _____ __ _
/ ___/__ __/ /_ ___ _____(_)___ _ / ___/__ __/ /_ ___ _____(_)___ _
\__ \/ / / / __ \/ _ \/ ___/ / __ `/ \__ \/ / / / __ \/ _ \/ ___/ / __ `/
___/ / /_/ / /_/ / __/ / / / /_/ / ___/ / /_/ / /_/ / __/ / / / /_/ /
/____/\__, /_.___/\___/_/ /_/\__,_/ /____/\__, /_.___/\___/_/ /_/\__,_/
/____/ /____/

ANDROID 9.0.0 ANDROID 9.0.0

Extracted file "/tmp/install/bin/backuptool.functions"
Extracted file "/tmp/install/bin/backuptool.sh"
Extracted 2 file(s)
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
grep: /postinstall/tmp/addon.d/*sh: No such file or directory
/tmp/addon.d/99-magisk.sh: .: line 3: can't open '/data/adb/magisk/addon.d.sh'
/tmp/addon.d/99-magisk.sh: .: line 3: can't open '/data/adb/magisk/addon.d.sh'
/tmp/addon.d/99-magisk.sh: .: line 3: can't open '/data/adb/magisk/addon.d.sh'
**************** Software *****************
OS version: Syberia-v2.2

Android version: 9

Security patch: 2019-01-05

SDK version: 28

Build ID: PQ1A.190105.004

Build date: Sun Feb 3 12:19:08 PST 2019
**************** Hardware *****************
Device codename: whyred

Manufacturer: Xiaomi

LCD density: 480

*******************************************
Flashing Syberia system files...
performing update
**************** Software ***************** OS version: Syberia-v2.2 Android version: 9 Security patch: 2019-01-05 SDK version: 28 Build ID: PQ1A.190105.004 Build date: Sun Feb 3 12:19:08 PST 2019 **************** Hardware ***************** Device codename: whyred Manufacturer: Xiaomi LCD density: 480 *******************************************blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/2bdde8504898ccfcd2c59f20bb8c9c25f73bb524/
Flashing Syberia system files...246562816 bytes free on /cache (0 needed)
/cache/recovery/last_command doesn't exist.
erasing 496969 blocks
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
[COLOR="Blue"]Decompression failed with BLOCK_LENGTH_2
missing 1197185 bytes of new data
failed to execute command [new 2,17257,18281]
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.error: 1001
Updater process ended with ERROR: 7
Are you installing onto the correct device? Search online for error 7.[/COLOR]
I:eek:rangeFox: installed Treble (Custom) ROM: /sdcard1/syberia_whyred-v2.2-20190203-2021-OFFICIAL.zip
I:flash_zip: installer code = 11
Error installing zip file '/sdcard1/syberia_whyred-v2.2-20190203-2021-OFFICIAL.zip'
I:DEBUG - found white led on /sys/class/leds/white/ pathI:Cannot find file /sys/class/leds/white/max_brightness
I:Cannot find file /sys/class/leds/white/brightness
Updating partition details...
I:Data backup size is 0MB, free: 42312MB.
I:Can't probe device /data/media/0
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:DEBUG - found white led on /sys/class/leds/white/ pathI:Cannot find file /sys/class/leds/white/max_brightness
I:Cannot find file /sys/class/leds/white/brightness
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'