Files
Magisk/app
topjohnwu cefa2730d4 Classify patch input files with PatchFileClassifier
Add ZipChannel, a zip archive backed by a DataChannel. open() returns
a random access DataChannel of STORED entries, and openStream()
returns a sequential stream of STORED or DEFLATED entries.

Add PatchFileClassifier to inspect the format of input files and
locate the payload to patch: RawFile, BootZip, PayloadBin, or Tar.
Zip archives are inspected with ZipChannel, and nested zips such as
the inner image zip of factory images are transparently inspected
instead. The payload is accessed as either a DataChannel or a
decompressed InputStream based on its type.

MagiskInstaller now relies on PatchFileClassifier to process inputs.
WholeFilePatcher now accepts an InputStream, as whole file formats
are always processed sequentially. ZipExtractor is removed as it is
fully superseded.

Add unit tests for ZipChannel with in-memory zips, and update
existing tests to go through PatchFileClassifier.

Assisted-by: Claude Opus 5.5
2026-10-07 16:53:36 -07:00
..
2026-10-04 03:30:08 -07:00
2026-08-18 17:56:10 +00:00
2026-01-19 23:29:02 +08:00
2026-10-04 03:30:08 -07:00
2025-06-16 02:17:29 -07:00
2025-06-16 02:17:29 -07:00
2026-10-04 03:30:08 -07:00