Inspect the user's APK as an untrusted build artifact. Do not install or run it.
Workflow
- Confirm the
.apkpath exists and record file name and file size. - Locate Android SDK tooling cross-platform: try tools available in PATH, then locations discoverable through
ANDROID_HOME, then any path supplied by the user. Never hard-code a macOS path. - Invoke
android-apk-analyzer. - Use
apkanalyzerwhere available to gather package/version, manifest data, permissions, DEX/resources/files, ABI libraries and major size contributors. - Invoke
android-apk-signing-verifierwhen signature confirmation is requested or needed for release delivery. - Invoke
android-artifact-report-generatorwhen the user requests a report or final deliverable.
Rules
- Report only fields confirmed through tool output.
- Treat tokens, credentials and sensitive metadata as redacted content.
- List unavailable SDK tools as verification limitations.
- Never modify the input APK.
Output
Provide the inspected artifact, tools used/unavailable, confirmed metadata, findings ordered by severity, verification steps and report path when generated.