Use the pyaxmlparser Python package
masterYou can integrate pyaxmlparser into your Python projects by using the APK class. Initialize the class with the path to an APK file to access its properties such as package name, version details, and icon data.
from pyaxmlparser import APK
apk = APK('/foo/bar.apk')
print(apk.package)
print(apk.version_name)
print(apk.version_code)
print(apk.icon_info)
print(apk.icon_data)
print(apk.application)