summaryrefslogtreecommitdiff
path: root/plugins/python/apkfiles
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
commitd110791309783e6e30df837a81cf8e14e1ac9641 (patch)
tree75e65909e080cc3ace578c7beb6f0bdae6dc18c1 /plugins/python/apkfiles
parentf3e136eab9fd6adcb51988c9f70ca7f35552abc4 (diff)
Updated the plugin system and its Python documentation.
Diffstat (limited to 'plugins/python/apkfiles')
-rw-r--r--plugins/python/apkfiles/apkfiles.py23
1 files changed, 7 insertions, 16 deletions
diff --git a/plugins/python/apkfiles/apkfiles.py b/plugins/python/apkfiles/apkfiles.py
index 47dfac4..98d31c7 100644
--- a/plugins/python/apkfiles/apkfiles.py
+++ b/plugins/python/apkfiles/apkfiles.py
@@ -12,27 +12,18 @@ import zipfile
class ApkFiles(PluginModule):
"""Open and process APK files."""
+ _name = 'ApkFiles'
+ _desc = 'Add suppport for the APK file format'
+ _version = '0.1'
+ _url = 'https://www.chrysalide.re/'
- def __init__(self):
- """Initialize the plugin for Chrysalide."""
+ _actions = ( PluginModule.PluginAction.CONTENT_EXPLORER, )
- interface = {
- 'name' : 'ApkFiles',
- 'desc' : 'Add suppport for the APK file format',
- 'version' : '0.1',
-
- 'actions' : ( PluginModule.PGA_CONTENT_EXPLORER, )
-
- }
-
- super(ApkFiles, self).__init__(**interface)
-
-
- def handle_binary_content(self, action, content, wid, status):
+ def _handle_binary_content(self, action, content, wid, status):
"""Process an operation on a binary content."""
- assert(action == PluginModule.PGA_CONTENT_EXPLORER)
+ assert(action == PluginModule.PluginAction.CONTENT_EXPLORER)
pseudo_file = io.BytesIO(content.data)