maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[v1.31.0] All flows fail with error: Unable to clear state for app

Open saihemanth121 opened this issue 1 year ago • 5 comments

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.:

  1. Connect the device through adb
  2. Run maestro test flow.yml where flow.yml is a flow with clearState=true
  3. 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

saihemanth121 avatar Aug 24 '23 09:08 saihemanth121