Skip to content

feat: reuse decompiled APK contents between runs #205

Description

@lyyako

Context

When patching large apps (TikTok, ~500MB), most of the time per run goes to unpacking and decompiling the APK into the temp folder.

Problem

Even with -t / --temporary-files-path set, morphe-cli seems to decompile from scratch every time. That gets painful fast when you're iterating on patches.

Proposal

An option to reuse already-unpacked files from a previous run if they're sitting in the temp directory. Either:

  • a --reuse-cache / --incremental flag, or
  • auto-detecting valid unpacked content in --temporary-files-path and skipping extraction/decoding if it's there.

Motivation

Patching heavy apps is mostly waiting on the same unpacking and decompiling step, over and over, even when nothing changed since the last run.

Use case: tweak one patch, run morphe-cli a dozen times in a row, wait through the same extraction every time. On large APKs that's minutes, not seconds.

Caching the unpacked files would cut that repeat work and make iteration a lot faster - especially for anyone actively developing and debugging patches, not just running them once in production.

Acknowledgements

  • I have checked all open and closed feature requests and this is not a duplicate.
  • I have chosen an appropriate title.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions