add get_frontmost_application example

This commit is contained in:
iddoeldor 2019-04-29 14:09:54 +03:00 committed by GitHub
parent 372a7bacc8
commit 52a7557c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1405,7 +1405,7 @@ frida_script = """
}); });
""" """
device = frida.get_usb_device() device = frida.get_usb_device()
pid = device.spawn(["com.example"]) pid = device.spawn(["com.example"]) # or .get_frontmost_application()
session = device.attach(pid) session = device.attach(pid)
script = session.create_script(frida_script) script = session.create_script(frida_script)
script.on('message', on_message) script.on('message', on_message)