maestro
maestro copied to clipboard
[v1.31.0] All flows fail with error: Unable to clear state for app
Describe the bug
Maestro flows which run successfully on few devices, fail on other devices with the error (Unable to clear state for app <package>)
To Reproduce Steps to reproduce the behavior, e.g.:
- Connect the device through adb
- Run
maestro test flow.yml
where flow.yml is a flow with clearState=true - The flow fails at start within 1-2sec.
Expected behavior The flow success should be consistent across devices
Environment information:
- Maestro version: v1.31.0
- Platform: Android 11.0
- Framework: Native Android
- Device model and OS version: Oppo CPH2349, Android 11
- Physical device
- Host: Mac M1
Additional context
Some interesting observations:
The device security app flags dev.mobile.maestro
and dev.mobile.maestro.test
packages as a security concern. This may be interfering with maestro functionality. Attaching the device logcat for dev.mobile.maestro
filter: maestro-logcat.txt