FIX: the path parsing and the database file name have improved parsing
This commit is contained in:
parent
fd45cf6123
commit
19851a88eb
|
@ -24,6 +24,7 @@ class AndroidAppPull:
|
|||
if (0 < stdout.find('failed')):
|
||||
logging.error("Error executing adb shell")
|
||||
logging.info("Make sure adb is in root mode, 'adb root'")
|
||||
return dir_names
|
||||
|
||||
strings = stdout.split('\n')
|
||||
for sstr in strings:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
import os
|
||||
import re
|
||||
import json
|
||||
import sqlite3
|
||||
|
@ -73,8 +74,9 @@ class FingerprintDB:
|
|||
|
||||
try:
|
||||
# extract file name from path+filename
|
||||
self.metadata['db-name'] = ToolBox.parseFilenameIncExt(filein)
|
||||
except:
|
||||
self.metadata['db-name'] = os.path.basename(filein)
|
||||
except Exception as ex:
|
||||
logging.error(ex)
|
||||
self.metadata['db-name'] = filein
|
||||
try:
|
||||
# read database schema, parse the schema
|
||||
|
|
Loading…
Reference in New Issue