crappy test script

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2023-08-31 18:05:13 +02:00
parent cfc8e4743e
commit 9788d77b74
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target /target
/venv_maturin /venv_maturin
/test.apk

12
test.py Normal file
View file

@ -0,0 +1,12 @@
import androscalpel as asc
import zipfile as z
APK_NAME = "test.apk"
DEX_NAME = "classes.dex"
with z.ZipFile(APK_NAME) as zipf:
with zipf.open(DEX_NAME, "r") as dex:
dex = dex.read()
apk = asc.Apk()
apk.add_dex_file(dex)