12 lines
236 B
Python
12 lines
236 B
Python
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)
|