Android: Understanding the use of code comments


Are you addicted to mobile apps, or even developing your own apps? Have you wondered what developers jot down in the comments of Android apps?

We are on a journey to learn how we can better understand the development of mobile apps in order to provide more suitable tools for professional developers. In this project, we focus on the comments found in open-source code of Android apps. Although comments are (hopefully) used by all developers, and many studies already tried to shed light on this topic, the security aspect of comments has been widely ignored.


A few problems you'll be confronted with:

State of the art

There exist tools which can enumerate comments [1] [2] [3], however, Android is an ecosystem which changes continuously and thus potentially introduces incompatibility issues with every new release.

We found that no tool provides a ``does it all\'' solution.


In this seminar project, we want to explore the use of comments in application code, and if possible, define and extract features helpful for a future security audit.

Your task will consist of:

Guiding research questions


[1] Some hints on how to parse comments in Java
[2] JavaNCSS, a Java-based tool capable of counting lines of code but without comments. Analyses Java code only.
[3] Cloc, a Perl script capable of counting lines of code but without comments. Analysis Java, Kotlin, and dozens of other languages. Also available as compiled binary.


Pascal Gadient PhD