crappy test script
This commit is contained in:
parent
cfc8e4743e
commit
9788d77b74
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
/venv_maturin
|
||||
/test.apk
|
||||
|
|
|
|||
12
test.py
Normal file
12
test.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue