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