Commit Graph

433 Commits

Author SHA1 Message Date
Ole André Vadla Ravnås 496e994272 Implement marshaling of uint8[] variants 2021-07-01 21:30:42 +02:00
Ole André Vadla Ravnås ec17c8b5b8 Implement marshaling of array variants 2021-06-21 19:28:46 +02:00
Ole André Vadla Ravnås 9c8708a447 Fix a couple of stylistic inconsistencies 2021-06-21 19:28:43 +02:00
Ole André Vadla Ravnås 7fadd26b08 Tweak style to improve readability 2021-06-17 17:57:22 +02:00
Grant Douglas abfbe016c3 Add Device.query_system_parameters() 2021-06-17 02:47:06 +02:00
Ole André Vadla Ravnås f46e476474 Implement marshaling of nested variant dicts 2021-06-16 20:34:03 +02:00
Ole André Vadla Ravnås 5979c3f1f7 Restore Python 2 support for now
We will drop it soon, but not in this release cycle.

This reverts commit 12f1fdcdfd.
2021-06-15 22:09:42 +02:00
Ole André Vadla Ravnås aaf7f0ce6d Add Script.is_destroyed property 2021-06-12 02:14:54 +02:00
Ole André Vadla Ravnås 0eb90247fb Add Session.is_detached property 2021-06-12 02:13:33 +02:00
Ole André Vadla Ravnås f3dc04cdc1 Add Device.is_lost property 2021-06-12 02:12:36 +02:00
Ole André Vadla Ravnås f256733d0b Fix a couple of stylistic inconsistencies 2021-06-09 01:09:51 +02:00
Ole André Vadla Ravnås 12f1fdcdfd Simplify __repr__ implementations by using “%R” 2021-06-09 00:41:34 +02:00
Ole André Vadla Ravnås 4b2a512a7e Fix double free when argument parsing succeeds partially
As PyArg_ParseTupleAndKeywords() may have written to one or more
out-parameters, which we obviously shouldn't free in case of failure.
2021-06-09 00:33:31 +02:00
Ole André Vadla Ravnås ad6f4e0bbf Wire up Relay members and __repr__ 2021-06-09 00:26:37 +02:00
Ole André Vadla Ravnås 99480dd678 Rename “session_persist_timeout” to “persist_timeout”
For consistency with the underlying API.
2021-06-08 18:39:20 +02:00
Ole André Vadla Ravnås 4cc9209c3d Add support for the new frida-core APIs 2021-06-08 02:25:25 +02:00
Ole André Vadla Ravnås 3e37f6d742 Update to the new attach() core API 2020-12-16 03:38:43 +01:00
Ole André Vadla Ravnås ba74dabc9c Skip PyEval_InitThreads() on newer versions of Python
It has no effect starting with 3.7, and is deprecated as of 3.9.
2020-12-03 00:13:16 +01:00
Ole André Vadla Ravnås f8a31480ed Rename to match the revised remote device API 2020-04-30 05:05:31 +02:00
Ole André Vadla Ravnås 336eeb6c6d Fix Py_ssize_t deprecation warnings 2020-04-24 07:22:43 +02:00
Ole André Vadla Ravnås 6e02f082f4 Fix tp_vectorcall_offset assignments on Python >= 3.8
Struct layout is the same, but type is different.
2020-04-18 04:20:58 +02:00
Ole André Vadla Ravnås faec367cf7 Add Cancellable.get_pollfd()
Useful for integrating with an existing event loop.
2020-02-26 22:50:41 +01:00
Ole André Vadla Ravnås 2488e35b1c Fix error message encoding on Python 2.x
Error messages coming from Frida are UTF-8 encoded strings.
2020-01-04 05:50:08 +01:00
Ole André Vadla Ravnås 1a90214c37 Add support for the new channels API 2019-09-24 05:59:45 +02:00
Ole André Vadla Ravnås 863d4b1ec8 Refactor Bytes marshalling logic 2019-09-24 05:32:17 +02:00
Ole André Vadla Ravnås bf7801f8e3 Fix some minor inconsistencies in the docstrings 2019-09-24 05:30:05 +02:00
Ole André Vadla Ravnås 7def1ad210 Make DeviceManager.close() cancellable 2019-09-04 02:21:12 +02:00
Ole André Vadla Ravnås 66bdd0ed30 Wire up get_device() instead of emulating it
This way it is automatically cancellable, and we get the performance
benefit of not having to wait for all backends to start.
2019-09-03 10:47:04 +02:00
Ole André Vadla Ravnås 03a85fea8e Fix Cancellable.raise_if_cancelled() 2019-09-03 01:39:49 +02:00
Ole André Vadla Ravnås c2dcacc8f4 Improve the Cancellable API
- Implement a context manager.
- Expose more of the underlying API.
2019-09-03 01:29:00 +02:00
Ole André Vadla Ravnås eac26b292e Update to the new cancellable core APIs 2019-08-31 05:07:16 +02:00
Ole André Vadla Ravnås 1f1497818e Add support for specifying script options 2019-05-10 21:10:53 +02:00
Ole André Vadla Ravnås 4989a997b2 Fix assertion usage in implementation vs test code
Implementation code should never use g_assert_cmp*(), and test code
should never use g_assert().
2019-04-12 22:30:21 +02:00
Ole André Vadla Ravnås 6b81b45420 Add Crash summary 2019-02-04 14:26:39 +01:00
Ole André Vadla Ravnås 5e8cd65665 Add support for the new crash reporting APIs 2019-01-29 00:01:42 +01:00
Ole André Vadla Ravnås 2ed895b881 Add support for the new eternalize() API 2018-09-17 22:15:27 +02:00
Ole André Vadla Ravnås 6f914eb268 Disable assertions and checks in production builds 2018-08-21 20:12:49 +02:00
Ole André Vadla Ravnås b3e7b5b792 Improve spawn() to support unicode aux options
On Python 2.x.
2018-07-26 00:45:16 +02:00
Ole André Vadla Ravnås b615a25e14 Remove dangling subdir reference 2018-07-11 00:59:29 +02:00
Ole André Vadla Ravnås 72899a4315 Drop convenience APIs and split out tools (#142)
Most use-cases will need to use some JS API that we're not bridging, so
it's better to keep our bindings simple.

It has also become clear that our CLI tools should be split out so Frida-based
tools don't have to depend on colorama, prompt_toolkit, and pygments.
2018-07-10 20:08:56 +02:00
Hugo 4fcb17c450 Only declare support for maintained Python versions (#140) 2018-06-29 01:00:29 +02:00
Hugo 0fb0e9d90c Show long description with Markdown on PyPI (#139) 2018-06-29 00:59:20 +02:00
Ole André Vadla Ravnås 86c95ac59a Update to the new core API 2018-06-29 00:44:00 +02:00
Moritz cf4033d906 Fix crash when tracer scripts send() arbitrary data (#138) 2018-06-06 15:19:59 +02:00
Ole André Vadla Ravnås 0c011ef984 Fix deadlock on interpreter shutdown
Caused by trying to acquire the GIL from a different thread while the
interpreter is shutting down, which typically happens because a Script's
`destroyed` signal is emitted.
2018-06-04 23:57:55 +02:00
Ole André Vadla Ravnås 86e52547a6 Add upper bounds to the dependency version specs 2018-06-03 14:46:38 +02:00
Ole André Vadla Ravnås d88bd6aa2f Revert "Bump requirements"
To make packaging easier.

This reverts commit 928ff2a797.
2018-06-01 18:32:29 +02:00
Ole André Vadla Ravnås 928ff2a797 Bump requirements 2018-06-01 05:09:45 +02:00
Ole André Vadla Ravnås ca93d07fce Update website URL in the metadata 2018-06-01 05:09:21 +02:00
Ole André Vadla Ravnås ddbff97300 Fix the spawn() program vs argv detection logic 2018-05-05 04:47:30 +02:00