Skip to content

Conversation

@gaojun0816
Copy link
Contributor

For the case where customized activity extends from androidx.appcompat.app.AppCompatActivity, the invocation of the method setContentView is used to find the corresponding layout XML file and the method invokesSetContentView is used to judge the invocation of setContentView. However, invokesSetContentView treated the situation that one of the superclass except than android.app.Activity, android.support.v7.app.ActionBarActivity and android.support.v7.app.AppCompatActivity with declaring of method setContentView as no invocation of setContentView. Since overriding method in the subclass is common such as it did in androidx.appcompat.app.AppCompatActivity, this is obviously incorrect and caused the skip of layout file analysis and lead to the missing of layout-resided callbacks in the call graph.

Also, for the case when activities extended from android.support.v7.app.AppCompatActivity. As the default configuration sets in SootConfigForAndroid that all classes start with android are excluded, during layout class loading in LayoutFileParser, relevant layout classes cannot be found thus leading to the skip of the layout file analysis.

@StevenArzt StevenArzt merged commit 0193fa6 into secure-software-engineering:master Apr 14, 2020
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

Successfully merging this pull request may close these issues.

2 participants