SUPERAndroidAnalyzer / super

Secure, Unified, Powerful and Extensible Rust Android Analyzer
https://superanalyzer.rocks/
GNU General Public License v3.0
421 stars 59 forks source link

Add SDK version strings #81

Closed Razican closed 7 years ago

Razican commented 8 years ago

We currently show SDKs as version 15, 17, 23 etc. We should also add version information such as "KitKat", "Lollipop" etc.

Br1oP commented 8 years ago

These links might help: https://source.android.com/source/build-numbers.html https://developer.android.com/reference/android/os/Build.VERSION_CODES.html

Razican commented 7 years ago

Moving this to SUPER 0.5.0.

Cxarli commented 7 years ago

Could you please tell me where these SDK numbers are printed? I can't seem to find them

Razican commented 7 years ago

Hi! sure,

In the templates, the code to show the SDK versions is in templates/super/report.hbs lines 21 - 22. The information gets serialized to the template in src/results/mod.rs lines 307 - 311. In this case, you will probably want to serialize a new element, something like sdk_string, that would be the codename of the version number.

A clean option would be to stop using a u32 as a SDK version and start using an enum that can be parsed from an integer in the released versions, and that has an as_str() method that shows the codename. Something similar to what we do with permissions in the manifest.