get_app_details
Read an installed app's version name/code and launchable activity, or inspect a local APK's package ID, version and launcher activity without a device.
Instructions
Report an installed app's version name/code and its launchable activity (dumpsys package + resolve-activity) — to confirm what build is installed and find the activity to launch. Pass apk_path instead of package to read a local .apk (package id, version, launcher activity) with no device attached — handy right after gradle_build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| package | No | Installed application package name (e.g. com.example.app). Required unless apk_path is given. | |
| apk_path | No | Local path to an .apk to read instead of querying a device: returns its package id, version and launcher activity via aapt2. Needs no device; use it right after a build to get the applicationId. |