sweetraingarden/Android Emulator Setup and APK Runner
Setup Android emulator environment, install APK, run pre-script for initialization, and execute app via ADB commands
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| apk-path | Absolute path to the APK file to install | yes | — |
| pre-script-path | Path to pre-script that runs after APK installation (e.g., login process, token injection) | no | "" |
| run-script-path | Path to script that runs the APK via ADB commands (e.g., start pages, UI automation) | no | "" |
| api-level | Android API level for the emulator | no | 29 |
| target | Android target (google_apis or default) | no | google_apis |
| arch | Android architecture (x86_64 or x86) | no | x86_64 |
| profile | AVD hardware profile | no | Nexus 6 |
| emulator-options | Additional emulator startup options | no | -no-snapshot-save -no-window -gpu swiftshader_indirect -no-audio -no-boot-anim -camera-back none -camera-front none -memory 2048 |
| disable-linux-hw-accel | Disable hardware acceleration on Linux (useful for environments without KVM) | no | false |
| working-directory | Working directory for the emulator runner | no | . |
| sudo-password | Sudo password for self-hosted Linux runners (use GitHub secrets like CI_LINUX_SUDO_PASSWORD) | no | "" |
| emulator-boot-timeout | Timeout in seconds to wait for emulator to boot (default: 600) | no | 600 |
Outputs
| name | description |
|---|---|
| emulator-name | Name of the created Android emulator |
| device-serial | Device serial number of the emulator |
| package-name | Package name of the installed APK |