Last active
January 20, 2021 05:21
-
-
Save pavi2410/b1ba0ae03e4b459846c72453204394a6 to your computer and use it in GitHub Desktop.
Extract JAR from AAR
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
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