Skip to content

Commit 4800a28

Browse files
committed
Merge branch 'master' of github.com:secure-software-engineering/FlowDroid into develop
2 parents ad71bd3 + 0193fa6 commit 4800a28

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/callbacks/AbstractCallbackAnalyzer.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,12 @@ protected boolean invokesSetContentView(InvokeExpr inv) {
615615
|| curClass.getName().equals("android.support.v7.app.AppCompatActivity")
616616
|| curClass.getName().equals("androidx.appcompat.app.AppCompatActivity"))
617617
return true;
618-
if (curClass.declaresMethod("void setContentView(int)"))
619-
return false;
618+
// As long as the class is subclass of android.app.Activity,
619+
// it can be sure that the setContentView method is what we expected.
620+
// Following 2 statements make the overriding of method
621+
// setContentView ignored.
622+
// if (curClass.declaresMethod("void setContentView(int)"))
623+
// return false;
620624
curClass = curClass.hasSuperclass() ? curClass.getSuperclass() : null;
621625
}
622626
return false;

soot-infoflow-android/src/soot/jimple/infoflow/android/config/SootConfigForAndroid.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public void setSootOptions(Options options, InfoflowConfiguration config) {
2525
List<String> excludeList = new LinkedList<String>();
2626
excludeList.add("java.*");
2727
excludeList.add("sun.*");
28-
excludeList.add("android.*");
28+
// exclude classes of android.* will cause layout class cannot be
29+
// loaded for layout file based callback analysis.
30+
// excludeList.add("android.*");
2931
excludeList.add("org.apache.*");
3032
excludeList.add("org.eclipse.*");
3133
excludeList.add("soot.*");

0 commit comments

Comments
 (0)