You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
launch_app: monkey aborts on devices without hardware keys ("SYS_KEYS has no physical keys"), app never opens #234
On devices without hardware navigation keys (the stock Android emulator images, for example) monkey aborts before injecting the event:
** SYS_KEYS has no physical keys but with factor 2.0%.
The method still returns True, so the agent believes the app is open while the screen stays on the home launcher (mCurrentFocus=...NexusLauncherActivity). The run then spends steps trying to recover.
Steps to reproduce
Start an Android emulator (Pixel image, API 34/35).
Run any task that launches an installed app by package name.
adb shell monkey -p <package> -c android.intent.category.LAUNCHER 1 prints the abort line above; the app does not open.
Suggested fix
Either of these worked for us:
pass --pct-syskeys 0 to monkey, or
resolve the launcher activity and start it explicitly, which also works when the activity class lives in a different Java namespace than the applicationId:
Activity