summaryrefslogtreecommitdiff
path: root/plugins/androhelpers/androhelpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/androhelpers/androhelpers.c')
-rw-r--r--plugins/androhelpers/androhelpers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/androhelpers/androhelpers.c b/plugins/androhelpers/androhelpers.c
index f7360f8..c61ce02 100644
--- a/plugins/androhelpers/androhelpers.c
+++ b/plugins/androhelpers/androhelpers.c
@@ -27,7 +27,11 @@
#include <string.h>
+#include <format/dex/dex.h>
+
+
#include "params.h"
+#include "switch.h"
#include "try_n_catch.h"
@@ -92,16 +96,25 @@ bool execute_action_on_binary(GPluginModule *plugin, GLoadedBinary *binary, Plug
{
bool result; /* Bilan à retourner */
+ if (!G_IS_DEX_FORMAT(g_loaded_binary_get_format(binary)))
+ return false;
+
result = true;
if (action == PGA_BINARY_DISASSEMBLED)
result &= replace_parameters(binary);
else if (action == PGA_BINARY_LINKED)
+ {
+ result &= extract_switch_info(binary, true);
result &= process_exception_handlers(binary, true);
+ }
else if (action == PGA_BINARY_PRINTED)
+ {
+ result &= extract_switch_info(binary, false);
result &= process_exception_handlers(binary, false);
+ }
return result;