Skip to content

Commit

Permalink
adapt the new version of soot-infoflow-android to solve similar bugs: s…
Browse files Browse the repository at this point in the history
  • Loading branch information
l3yx committed Jan 7, 2025
1 parent 4f854b0 commit 2597260
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
// implementation("de.fraunhofer.sit.sse.flowdroid:soot-infoflow:2.10.0")
// implementation("de.fraunhofer.sit.sse.flowdroid:soot-infoflow-android:2.10.0")

implementation("io.github.nkbai:soot-infoflow-android:2.10.4")
implementation("de.fraunhofer.sit.sse.flowdroid:soot-infoflow-android:2.14.1")

implementation("org.eclipse.jdt:org.eclipse.jdt.core:3.24.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ object AndroidUtils {
Log.logDebug("Load resource")
resources = ARSCFileParser()
try {
resources!!.parse(targetAPK.absolutePath)
resources!!.parse(File(targetAPK.absolutePath)) // use proper Files instead of strings and set the proper root directory (https://github.com/secure-software-engineering/FlowDroid/commit/cc921a6b714ca8418da92806a743f8c6ef06c40d)
} catch (e: IOException) {
e.printStackTrace()
}
Expand Down Expand Up @@ -346,7 +346,7 @@ object AndroidUtils {
TargetSdk = manifest.targetSdkVersion
Log.logDebug("TargetSdk $TargetSdk")
layoutFileParser = LayoutFileParser(manifest.packageName, resources)
layoutFileParser!!.parseLayoutFileDirect(apkPath)
layoutFileParser!!.parseLayoutFileDirect(File(apkPath)) // use proper Files instead of strings and set the proper root directory (https://github.com/secure-software-engineering/FlowDroid/commit/cc921a6b714ca8418da92806a743f8c6ef06c40d)
parseAllComponents(manifest)
this.manifestVulnerability?.check(manifest)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ class PLLocalPointer : PLPointer {

fun SootMethod.shortSignature(): String {
if (shortNameEnable) {
return "${this.declaringClass.shortName}:${this.name}.${this.number}"
return "${this.declaringClass.shortName}:${this.name}" // soot remove some numbers which are actually not really needed (https://github.com/soot-oss/soot/commit/554dbc3815b12165086850b27517a8d1fda72488)
}
return this.signature
}

fun SootField.shortSignature(): String {
if (shortNameEnable) {
return "${this.declaringClass.shortName}:${this.name}.${this.number}"
return "${this.declaringClass.shortName}:${this.name}" // soot remove some numbers which are actually not really needed (https://github.com/soot-oss/soot/commit/554dbc3815b12165086850b27517a8d1fda72488)
}
return this.signature
}
Expand Down

0 comments on commit 2597260

Please sign in to comment.