summaryrefslogtreecommitdiff
path: root/plugins/python/apkfiles/apkfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/apkfiles/apkfiles.py')
-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)