FlowDroid
FlowDroid copied to clipboard
[Question]How to get a SootMethod data from sinks file?
Dear Developer:
I want to get a control flow graph from an APK. I don't need all method control flow graph, just some method I want, for example org.apache.http.client.HttpClient.execute()
.
But I can only get SootMethodAndClass
from sinks file, not SootMethod
type.
My code :
String sourceSinkFile = config.getAnalysisFileConfig().getSourceSinkFile();
ISourceSinkDefinitionProvider parser = PermissionMethodParser.fromFile(sourceSinkFile);
Set<?> sinks = parser.getSinks();
Iterator<?> iter = sinks.iterator();
MethodSourceSinkDefinition sd = (MethodSourceSinkDefinition) iter.next();
SootMethodAndClass ms = sd.getMethod();