mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Refactor DataSourceChannel into an abstract DataChannel with nested DataChannel.File and DataChannel.Http implementations, separating local file and remote HTTP stream backends. Additionally: - Rename Payload to OtaPayloadExtractor and ExtractImage to ZipExtractor to better reflect their responsibilities. - Standardize both extractors with a uniform constructor and a consume(channel: DataChannel) method that handles channel lifecycle. - Make OtaPayloadExtractor stateless by passing channel, manifest, and data offsets directly through method arguments. Assisted-by: Gemini 3.8 Flash