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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
apk-pathAbsolute path to the APK file to installyes
pre-script-pathPath to pre-script that runs after APK installation (e.g., login process, token injection)no""
run-script-pathPath to script that runs the APK via ADB commands (e.g., start pages, UI automation)no""
api-levelAndroid API level for the emulatorno29
targetAndroid target (google_apis or default)nogoogle_apis
archAndroid architecture (x86_64 or x86)nox86_64
profileAVD hardware profilenoNexus 6
emulator-optionsAdditional emulator startup optionsno-no-snapshot-save -no-window -gpu swiftshader_indirect -no-audio -no-boot-anim -camera-back none -camera-front none -memory 2048
disable-linux-hw-accelDisable hardware acceleration on Linux (useful for environments without KVM)nofalse
working-directoryWorking directory for the emulator runnerno.
sudo-passwordSudo password for self-hosted Linux runners (use GitHub secrets like CI_LINUX_SUDO_PASSWORD)no""
emulator-boot-timeoutTimeout in seconds to wait for emulator to boot (default: 600)no600
namedescription
emulator-nameName of the created Android emulator
device-serialDevice serial number of the emulator
package-namePackage name of the installed APK