hieuwu / android-groceries-store

A Groceries Store app with basic order flow. 🍕 Help you learn modern Android development skills in real production environment. ❤️
https://hieuwu.github.io/android-groceries-store/
MIT License
213 stars 55 forks source link

Bug Report: IOException with Monkey Runner Execution #244

Open HoangMinhKhoiPham opened 2 months ago

HoangMinhKhoiPham commented 2 months ago

Describe the bug

When running Monkey Runner with event 600 and seed 5000, an IOException is encountered with the following message: "flipjava.io.FileNotFound Exception: /dev/input/event0: open failed: Eacces (permission denied)."

To Reproduce

Steps to reproduce the behavior:

Run Monkey Runner. Set the event to 600 and the seed to 5000. Execute the Monkey Runner script. Encounter the IOException with the mentioned error message. Expected behavior

The Monkey Runner script should execute without encountering permission denied errors related to opening files.

Screenshots

N/A

Desktop (please complete the following information):

N/A

Smartphone (please complete the following information):

N/A

Additional context

This issue suggests a permissions problem, particularly related to accessing the file /dev/input/event0. This file might require specific permissions that are not granted to the process running Monkey Runner, leading to the permission denied error. Ensuring that the necessary permissions are granted to access this file should resolve the issue.

hieuwu commented 2 months ago

Could you please elaborate the purpose of using Monkey Runner? Which aspect are you testing? The app does not access any file