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

APK = r"C:\Users\Administrator\Desktop\notiMessage\reverse\apks\seabank_ph_base.apk"
needles = [
    b"rooted or jailbroken",
    b"factory settings",
    b"cannot be accessed",
    b"bke_toast_not_support_root",
    b"not_support_root",
]
with zipfile.ZipFile(APK) as zf:
    for name in zf.namelist():
        if not (name.endswith(".dex") or name.endswith(".xml") or name.endswith(".json")):
            continue
        data = zf.read(name)
        for n in needles:
            if n in data:
                print(name, n.decode())
