mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
EUR-916: Device Accounts should be created one per file instead of one per device
Address Codacy comments in previous commit
This commit is contained in:
parent
57f1a17bff
commit
e246e8ee7d
@ -86,9 +86,6 @@ class CallLogAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
|
|
||||||
def analyze(self, dataSource, fileManager, context):
|
def analyze(self, dataSource, fileManager, context):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
absFiles = fileManager.findFiles(dataSource, "logs.db")
|
absFiles = fileManager.findFiles(dataSource, "logs.db")
|
||||||
absFiles.addAll(fileManager.findFiles(dataSource, "contacts.db"))
|
absFiles.addAll(fileManager.findFiles(dataSource, "contacts.db"))
|
||||||
absFiles.addAll(fileManager.findFiles(dataSource, "contacts2.db"))
|
absFiles.addAll(fileManager.findFiles(dataSource, "contacts2.db"))
|
||||||
|
@ -84,7 +84,7 @@ class TangoMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create a 'Device' account using the data source device id
|
# Create a 'Device' account using the data source device id
|
||||||
datasourceObjId = dataSource.getDataSource().getId()
|
datasourceObjId = dataSource.getDataSource().getId()
|
||||||
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
|
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
|
||||||
deviceID = ds.getDeviceId()
|
deviceID = ds.getDeviceId()
|
||||||
|
@ -60,8 +60,6 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
|
|
||||||
def analyze(self, dataSource, fileManager, context):
|
def analyze(self, dataSource, fileManager, context):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
|
||||||
absFiles = fileManager.findFiles(dataSource, "mmssms.db")
|
absFiles = fileManager.findFiles(dataSource, "mmssms.db")
|
||||||
for abstractFile in absFiles:
|
for abstractFile in absFiles:
|
||||||
try:
|
try:
|
||||||
|
@ -88,7 +88,7 @@ class WWFMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create a 'Device' account using the data source device id
|
# Create a 'Device' account using the data source device id
|
||||||
datasourceObjId = dataSource.getDataSource().getId()
|
datasourceObjId = dataSource.getDataSource().getId()
|
||||||
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
|
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
|
||||||
deviceID = ds.getDeviceId()
|
deviceID = ds.getDeviceId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user