def run(classes, dependencies, sharedobjs): log.info("Analysis: String Decryption Check") methodParams = { 'Returns': 'Ljava/lang/String;', 'Parameters': 'Ljava/lang/String;' } methods = analysisUtils.findFunctionsBySignature(classes, methodParams) for m in methods: analysisUtils.findInvocationSites(classes, m)
def run(classes, dependencies, sharedobjs): log.info("Analysis: String Decryption Check") methodParams = {'Returns':'Ljava/lang/String;','Parameters':'Ljava/lang/String;'} methods = analysisUtils.findFunctionsBySignature(classes,methodParams) for m in methods: analysisUtils.findInvocationSites(classes,m)
def run(classes, dependencies, sharedobjs): global result log.info("Analysis: Network Connection Check") if analysisUtils.findInvocationSites(classes,"getActiveNetworkInfo").__len__ > 0 or \ analysisUtils.findInvocationSites(classes,"isConnectedOrConnecting").__len__ > 0: result = True
def usesRoot(classes): global result if analysisUtils.findInvocationSites(classes,"getRootDirectory").__len__ > 0: result["Root"] = True
def usesCache(classes): global result if analysisUtils.findInvocationSites(classes,"getDownloadCacheDirectory").__len__ > 0: result["Download/Cache Directory"] = True
def usesDataDir(classes): global result if analysisUtils.findInvocationSites(classes,"getDataDirectory").__len__ > 0: result["Data Directory"] = True
def usesExternalStorage(classes): global result if analysisUtils.findInvocationSites(classes,"getExternalStorageDirectory").__len__ > 0 or \ analysisUtils.findInvocationSites(classes,"getExternalStoragePublicDirectory").__len__ > 0 : result["External Storage"] = True
def run(classes, dependencies, sharedobjs): global result log.info("Analysis: Device ID Query Check") if analysisUtils.findInvocationSites(classes, "getDeviceId").__len__ > 0: result = True
def run(classes, dependencies, sharedobjs): global result log.info("Analysis: Device ID Query Check") if analysisUtils.findInvocationSites(classes,"getDeviceId").__len__ > 0: result = True