"""Find SecurityErrorActivity onCreate signature."""
import re
import zipfile

APK = r"C:\Users\Administrator\Desktop\notiMessage\reverse\apks\tng\base.apk"
with zipfile.ZipFile(APK) as z:
    data = b"".join(z.read(n) for n in z.namelist() if n.endswith(".dex"))

for pat in [
    b"SecurityErrorActivity",
    b"launchProcessNextSecurityState",
    b"addIntoQueueAndLaunch",
    b"SecurityErrorBaseActivity;->onCreate",
]:
    print("===", pat.decode(), "===")
    for m in sorted(set(re.findall(pat + rb"[^\x00]{0,120}", data))):
        print(m.decode("ascii", "ignore")[:150])
    print()
