Skip to content

Instantly share code, notes, and snippets.

@pavi2410
Last active January 20, 2021 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavi2410/b1ba0ae03e4b459846c72453204394a6 to your computer and use it in GitHub Desktop.
Save pavi2410/b1ba0ae03e4b459846c72453204394a6 to your computer and use it in GitHub Desktop.
Extract JAR from AAR
import zipfile, os
for file in os.listdir():
if file.endswith('.aar'):
print('aar:', file)
with zipfile.ZipFile(file) as aar:
aar.extract('classes.jar')
os.rename('classes.jar', os.path.splitext(file)[0] + '.jar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment