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

Feature suggestions #24

Open ohyeah521 opened 6 months ago

ohyeah521 commented 6 months ago

Hello, I recently saw your open source project, which is very good. I have several functional suggestions: for example, adding functions such as extracting application name, version, mainactivity, packagename, iconfile, etc. These functions are often used in static analysis so that they can be used in UI displays basic information of the application

erev0s commented 6 months ago

Hi @ohyeah521, thank you for the suggestions. It is something that has been added in my backlog for quite some time now (https://github.com/androguard/androguard/issues/855#issuecomment-1877843427). In my little spare time I am working on some new features which I will release in the upcoming months.

ohyeah521 commented 6 months ago

Thanks for your reply, looking forward to the release of the new version, this will be very useful

erev0s commented 3 months ago

@ohyeah521 introduced a fast(lite) parsing of initial element of the AndroidManifest. This returns a dictionary with the relevant elements it reads. The more elements you define it to read the slower it will become.

Example:

apk_path = '/path/com.airbnb.android_21059188.apk'
parse_apk_for_manifest(apk_path, lite=True)

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

very practical, can you add an apk application icon extraction function?