From bf37509b1d584bd6e030be2b113418a96b153bfb Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" Date: Fri, 20 Sep 2019 10:16:39 -0400 Subject: [PATCH] Moved missed attachDatabase refactor --- InternalPythonModules/android/whatsapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/InternalPythonModules/android/whatsapp.py b/InternalPythonModules/android/whatsapp.py index 0582a558c7..5dfa3c8f16 100644 --- a/InternalPythonModules/android/whatsapp.py +++ b/InternalPythonModules/android/whatsapp.py @@ -89,8 +89,6 @@ class WhatsAppAnalyzer(general.AndroidComponentAnalyzer): helper = CommunicationArtifactsHelper( current_case.getSleuthkitCase(), self._PARSER_NAME, calllog_and_message_db.getDBFile(), Account.Type.WHATSAPP) - calllog_and_message_db.attachDatabase(dataSource, "wa.db", - calllog_and_message_db.getDBFile().getParentPath(), "wadb") self.parse_calllogs(calllog_and_message_db, helper) self.parse_messages(calllog_and_message_db, helper) @@ -170,6 +168,9 @@ class WhatsAppAnalyzer(general.AndroidComponentAnalyzer): def parse_messages(self, messages_db, helper): try: + messages_db.attachDatabase(dataSource, "wa.db", + messages_db.getDBFile().getParentPath(), "wadb") + messages_parser = WhatsAppMessagesParser(messages_db) while messages_parser.next(): helper.addMessage(