Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating API call graph with FlowDroid #753

Open
AMS003010 opened this issue Jul 26, 2024 · 1 comment
Open

Creating API call graph with FlowDroid #753

AMS003010 opened this issue Jul 26, 2024 · 1 comment

Comments

@AMS003010
Copy link

Hello @StevenArzt πŸ–οΈπŸ˜

I am very new to FlowDroid and loved the features that the application provides. Its Amazing !!!

I had a apk file and wanted to generate a API call graph for it. I have set MAVEN_HOME and ANDROID_HOME environment variables. I had a successful build with maven after executing the below commands

git checkout origin/develop
mvn -DskipTests install

image

The fact is I have no clue as to how to proceed anymore. Would be great if anyone could help be with this. I know its a lot !! πŸ˜…
Would be great if you do....

@StevenArzt
Copy link
Member

You have built FlowDroid from source code, which is a good first step. For constructing a callgraph, you create your own Java program and reference FlowDroid as a Maven dependency. You will need two dependencies:

	<dependencies>
		<dependency>
			<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
			<artifactId>soot-infoflow-android</artifactId>
			<version>2.14.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
			<artifactId>soot-infoflow</artifactId>
			<version>2.14.0-SNAPSHOT</version>
		</dependency>
	</dependencies>

You can then instantiate the SetupApplication class and call the constructCallgraph method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants