add flowdroid tests
This commit is contained in:
parent
0b92b87bbe
commit
9b4eccfc70
6 changed files with 24 additions and 0 deletions
Binary file not shown.
3
test_apks/reflection/soot_test/source_sink.txt
Normal file
3
test_apks/reflection/soot_test/source_sink.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<com.example.theseus.Utils: java.lang.String source()> -> _SOURCE_
|
||||
<com.example.theseus.Utils: java.lang.String source(java.lang.String)> -> _SOURCE_
|
||||
<com.example.theseus.Utils: void sink(android.app.Activity,java.lang.String)> -> _SINK_
|
||||
14
test_apks/reflection/soot_test/test.sh
Normal file
14
test_apks/reflection/soot_test/test.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SDK_TOOLS="${HOME}/Android/Sdk/"
|
||||
VERSION='34.0.0'
|
||||
VERSION_B=$(echo "${VERSION}" | sed 's/\..*//')
|
||||
ANDROID_JAR="${SDK_TOOLS}/platforms/android-${VERSION_B}/android.jar"
|
||||
|
||||
FOLDER=$(dirname "$(realpath $0)")
|
||||
|
||||
FLOWDROID="${FOLDER}/soot-infoflow-cmd-jar-with-dependencies.jar"
|
||||
SOURCE_SINK="${FOLDER}/source_sink.txt"
|
||||
JAVA='/usr/lib/jvm/java-17-openjdk/bin/java'
|
||||
|
||||
"${JAVA}" -jar "${FLOWDROID}" -a "${1}" -p "${ANDROID_JAR}" -s "${SOURCE_SINK}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue