FlowDroid icon indicating copy to clipboard operation
FlowDroid copied to clipboard

[Question]How to get a SootMethod data from sinks file?

Open j1nse opened this issue 4 years ago • 0 comments

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();

j1nse avatar Aug 01 '20 16:08 j1nse