mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Wrap the underlying raw source stream in ProgressInputStream before decompression and compare against rawSize (entry.compressedSize for DEFLATED zip entries) so that progress percentages and transfer speeds reflect actual I/O instead of skewed decompressed output on sparse images. Also remove the redundant InflaterInputStream.close() override in ZipChannel since Android's libcore unconditionally ends the Inflater on close(). Assisted-by: Gemini 4 Argon