erev0s / apkInspector

apkInspector is a tool designed to provide detailed insights into the zip structure of APK files, offering the capability to extract content and decode the AndroidManifest.xml file.
Apache License 2.0
45 stars 6 forks source link

Axml object creation #30

Closed erev0s closed 3 months ago

erev0s commented 3 months ago

Introducing a "lite" parsing, which allows faster partial parsing of the AndroidManifest.xml with the intention to retrieve certain details from it as fast as possible.

A quick test against the APK of the Airbnb applications showed that the "lite" parsing method averaged an execution time of 0.1385 seconds over 10 runs. In contrast, the traditional full parsing approach, which thoroughly processes the entire AndroidManifest.xml, averaged 0.3534 seconds over the same number of runs. This translates to the "lite" parsing being approximately 60.8% faster than the normal full parsing method.

Example output of lite parsing:

{'versionCode': '21059188', 'versionName': '20.32', 'installLocation': '0', 'targetSandboxVersion': '2', '': '10', 'package': 'com.airbnb.android', 'platformBuildVersionCode': '29', 'platformBuildVersionName': '10', 'minSdkVersion': '21', 'targetSdkVersion': '28'}
codecov-commenter commented 3 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 87.81250% with 39 lines in your changes missing coverage. Please review.

Project coverage is 88.34%. Comparing base (b1a7036) to head (6c34d3f). Report is 11 commits behind head on main.

Files Patch % Lines
apkInspector/axml.py 84.27% 36 Missing :warning:
apkInspector/indicators.py 93.33% 2 Missing :warning:
tests/test_pack.py 98.36% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #30 +/- ## ========================================== + Coverage 85.95% 88.34% +2.39% ========================================== Files 7 7 Lines 847 1047 +200 ========================================== + Hits 728 925 +197 - Misses 119 122 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.