MOD: merged changes from Nathan'

This commit is contained in:
JohnE 2016-02-18 19:54:15 -08:00
parent 6c4a5b62e6
commit dbdfadbe5a
2 changed files with 9 additions and 8 deletions

View File

@ -3,20 +3,17 @@
Action Items from the code review:
-Create a document describing the index file and include an example
-Add function to query the index for a specific MD5 table (database schema)
-Add a feature to add a fingerprint to the existing index (it currently recreates an index)
-Add a table to the Index to list all the applications that have a fingerprint (include the app version)
-more functionality can result from this information in the index
-Create a document describing the index file and include an example
-Create an example of the FingerprintDB class usage with a standalone tool
-Add a feature to add a fingerprint to the existing index (it currently recreates an index)
-Add function to query the index for a specific MD5 table (database schema)
-Add automated app version discovery to the android pull feature
Get App Version
http://stackoverflow.com/questions/11942762/get-application-version-name-using-adb

View File

@ -29,7 +29,11 @@ class FingerprintIndex:
#
def openIndex(self, fp_dir):
fq_fpidx = fp_dir + os.path.sep + INDEX_FILENAME
if os.path.isdir(fp_dir):
fq_fpidx = fp_dir + os.path.sep + INDEX_FILENAME
else:
fq_fpidx = fp_dir
try:
if (os.path.isfile(fq_fpidx)):
self.db_conn = sql.connect(fq_fpidx)