Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,12 @@ protected boolean invokesSetContentView(InvokeExpr inv) {
|| curClass.getName().equals("android.support.v7.app.ActionBarActivity")
|| curClass.getName().equals("android.support.v7.app.AppCompatActivity"))
return true;
if (curClass.declaresMethod("void setContentView(int)"))
return false;
// As long as the class is subclass of android.app.Activity,
// it can be sure that the setContentView method is what we expected.
// Following 2 statements make the overriding of method
// setContentView ignored.
// if (curClass.declaresMethod("void setContentView(int)"))
// return false;
curClass = curClass.hasSuperclass() ? curClass.getSuperclass() : null;
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public void setSootOptions(Options options, InfoflowConfiguration config) {
List<String> excludeList = new LinkedList<String>();
excludeList.add("java.*");
excludeList.add("sun.*");
excludeList.add("android.*");
// exclude classes of android.* will cause layout class cannot be
// loaded for layout file based callback analysis.
// excludeList.add("android.*");
excludeList.add("org.apache.*");
excludeList.add("org.eclipse.*");
excludeList.add("soot.*");
Expand Down