Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in addMedia on Android 28 and below #2061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Naoki-Hidaka
Copy link

Proposed changes

I fixed an issue where the addMedia function was crashing on Android 28 and below. The crash was caused by the lack of declaration and permission for WRITE_EXTERNAL_STORAGE, which is required on these Android versions.

To resolve this, I added the WRITE_EXTERNAL_STORAGE permission declaration and implemented a process to grant the permission using adb shell pm. With these changes, the crash in addMedia on Android 28 and below has been resolved.

Testing

I have confirmed the success of running maestro test on emulators for Android versions 24 to 28.

Issues fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant