Last active
February 1, 2023 17:51
-
-
Save obfusk/ee5c27569e636df5c59c2121abb35b13 to your computer and use it in GitHub Desktop.
add zipflinger virtual entry to unsigned APK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # encoding: utf-8 | |
| # SPDX-FileCopyrightText: 2023 FC Stegerman <[email protected]> | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| import argparse | |
| from apksigcopier import copy_apk | |
| if __name__ == "__main__": | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--zfe-size", type=int, default=132) | |
| parser.add_argument("input_apk", metavar="INPUT_APK") | |
| parser.add_argument("output_apk", metavar="OUTPUT_APK") | |
| args = parser.parse_args() | |
| copy_apk(args.input_apk, args.output_apk, exclude=lambda _: False, | |
| zfe_size=args.zfe_size) | |
| # vim: set tw=80 sw=4 sts=4 et fdm=marker : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment