summaryrefslogtreecommitdiff
path: root/plugins/python/abackup
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/abackup')
-rw-r--r--plugins/python/abackup/plugin.py23
1 files changed, 7 insertions, 16 deletions
diff --git a/plugins/python/abackup/plugin.py b/plugins/python/abackup/plugin.py
index d8f52b1..aea9a9c 100644
--- a/plugins/python/abackup/plugin.py
+++ b/plugins/python/abackup/plugin.py
@@ -34,27 +34,18 @@ from .password import PasswordReader
class AndroidBackupPlugin(PluginModule):
"""Open and process Android backup files."""
+ _name = 'AndroidBackup'
+ _desc = 'Add suppport for the Android backup 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' : 'AndroidBackup',
- 'desc' : 'Add suppport for the Android backup file format',
- 'version' : '0.1',
-
- 'actions' : ( PluginModule.PGA_CONTENT_EXPLORER, )
-
- }
-
- super(AndroidBackupPlugin, 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)
try:
backup = AndroidBackup(content)