Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Read and write arbitrary files in APK files #272

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Commits on Feb 11, 2024

  1. feat: Read and write arbitrary files in APK files

    This commit allows reading and writing arbitrary files in an APK file. Additionally it allows deleting files from APK files. A `RawResourcePatch` class has been added which has access to `ResourceContext` but ReVanced Patcher will not decode APK resources. A regular `ResourcePatch` can read and write arbitrary files from an APK file, unless they are decoded to `PatcherConfig.apkFiles`. On attempt to get a file from `PatcherConfig.apkFiles` if the second parameter is true, it will read and write the raw resource file from the original APK to `PatcherConfig.apkFiles` if it does not exist. With this commit, many APIs have been deprecated as well, such as `DomFileEditor` and instead a `Document` has been added.
    oSumAtrIX committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    e7f7ace View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f9dd66 View commit details
    Browse the repository at this point in the history