Metadata-Version: 2.1
Name: aapt2
Version: 0.0.1
Summary: Android Asset Packaging Tool for Python3
Home-page: https://github.com/trevorwang/aapt
Author: Trevor Wang
Author-email: trevor.wang@qq.com
License: UNKNOWN
Keywords: aapt2,apktool
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >3.3
Description-Content-Type: text/markdown

# Aapt

Android Asset Packaging Tool 2 for Python3

## Install

`pip3 install aapt2`

## Example

```python
from aapt2 import aapt

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

ls = aapt.ls('./xx.apk')
print(ls)

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

# 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 = Image.open(byte_stream)
img.save('./1.png')

# upload file

requests.post(url, files={'file': apk_info['icon_byte_value']})

```

## API

* 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)


