Last active
May 27, 2024 21:31
-
-
Save obfusk/9d63d59f20de246fd83efa559bf9c348 to your computer and use it in GitHub Desktop.
This file contains 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 | |
import dataclasses | |
import json | |
import sys | |
import repro_apk.binres as binres | |
data = {} | |
for apkfile in sys.argv[1:]: | |
try: | |
m = binres.get_manifest_info_apk(apkfile) | |
data[apkfile] = dataclasses.asdict(m) | |
except binres.Error as e: | |
data[apkfile] = dict(error=str(e)) | |
json.dump(data, sys.stdout, indent=2) | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment