# -*- coding: utf-8 -*-
import zipfile

APK = r"C:\Users\Administrator\Desktop\notiMessage\reverse\apks\seabank_ph_base.apk"
needles = [b"-1201", b"1201", b"ErrorCode", b"error has occurred"]
with zipfile.ZipFile(APK) as zf:
    data = b"".join(zf.read(n) for n in zf.namelist() if n.endswith(".dex"))
    for n in needles:
        idx = data.find(n)
        if idx >= 0:
            print(n.decode(), "at", idx, "context:", data[max(0,idx-40):idx+60])
