Skip to main content

Android Asset Packaging Tool for Python3

Project description


Android Asset Packaging Tool for Python3


import aapt

help = aapt.aapt('--help')

ls ='./xx.apk')

apk_info = aapt.get_apk_info('./xxx.apk')

# save icon
from PIL import Image
apk_info = aapt.get_apk_and_icon('./xxx.apk')
byte_stream = io.BytesIO(apk_info['icon_byte_value'])
img ='./1.png')

# upload file, files={'file': apk_info['icon_byte_value']})


  • aapt(args)
  • ls(file_path)
  • dump(file_path, values)
  • packagecmd(file_path, command)
  • remove(file_path, files)
  • add(file_path, files)
  • crunch(resource, output_folder)
  • single_crunch(input_file, output_file):
  • version()
  • get_apk_info(file_path)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aapt, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size aapt-1.0.2.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page