Skip to content

Support "recursive ZIPs" #26

@JodanJodan

Description

@JodanJodan

I'm trying to extract two small files within a ZipFile within another ZipFile. Could this functionality be supported, or could an example be provided if already supported? ZipFile(RemoteZip(url).open(internal_zip_filename)) results in reading the entire internal ZipFile. The root ZipFile stores the internal one uncompressed, so it theoretically shouldn't need to be extracted.

Example:

Factory Images for Nexus and Pixel Devices
14.0.0 (UQ1A.240205.004, Feb 2024)

husky-uq1a.240205.004/
husky-uq1a.240205.004/radio-husky-g5300i-230927-231102-b-11040898.img
husky-uq1a.240205.004/flash-all.bat
husky-uq1a.240205.004/flash-all.sh
husky-uq1a.240205.004/image-husky-uq1a.240205.004.zip
husky-uq1a.240205.004/bootloader-husky-ripcurrent-14.1-11208047.img
husky-uq1a.240205.004/flash-base.sh

husky-uq1a.240205.004/image-husky-uq1a.240205.004.zip

android-info.txt
boot.img
init_boot.img
...
super_empty.img

I want to download/extract only boot.img and init_boot.img from the internal ZipFile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions